web.xml里已经配了Servlet
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> <!-- Action Servlet Configuration -->
<servlet>
<servlet-name>actionServlet</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet> <!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>actionServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping> <!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list></web-app>
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> <!-- Action Servlet Configuration -->
<servlet>
<servlet-name>actionServlet</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet> <!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>actionServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping> <!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list></web-app>
解决方案 »
- 内部类怎么访问外部类的父类。。。。⊙﹏⊙b汗
- .java文件中文乱码的问题
- hibernate+struts2分页查询
- tomcat和weblogic的部署问题
- 求助在hibernate中加入自动增长列后update的问题
- 用java程序传给网页一对QQ跟密码,然后登陆网页,如何实现
- 请问一下,hibernate怎么配置?
- 请问谁有开源的知识管理系统(knowledgebase)
- 求struts标签的例子?
- 手机短信接口的编写问题!
- EJB问题
- struts-config.xml已经配对了<data-sources></data-sources>,启动Tomcat时为什么总是报缺少</data-sources>?
加油,努力,
我也在线等~~~~
启动Tomcat时候老是报缺少</data-sources>,但是struts-config.xml中明明是成对的了。
你碰到没?parsing error processing resource path /WEB-INF/struts-config.xml
org.xml.sax.SAXParseException: The element type "data-sources" must be
terminated-tag "</data-sources>".我的QQ:22213386
交流啊
不能在lib下在建立文件夹 如: WEN-INF/lib/spring/spring1-2-8.jar这样web工程是加载不了这个jar包的,是错误的。 只要将所有的jar包都移到lib下如:WEN-INF/lib/*.jar ,假如配置都对的话,这个问题应该能解决了.
在网上还有人这样说:
1楼 回复于 2006-02-16 11:41:13 得分 0
以前遇到过类似的问题,
在struts-config.xml总,加上数据源配置部分,就出现如上的错误,
但是,如果你把这个配置去掉,如果你的程序没有其他问题,那么就会正常!
你先去掉试下! Top
2楼 回复于 2006-02-16 11:47:48 得分 0
看看有没有dbcp包
commons-dbcp-1.2.1.jar 不知道最后到底是怎么解决的.郁闷阿