环境为
tomcat 6.0 myeclipse 6.0 jdk好像不是1.5
运行项目就是不成功tomcat总是出现问题,以下是报错的部分代码.2009-6-17 20:58:24 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\java\SDK\jdk\bin;D:\Program Files\java\apache-tomcat-6.0.16\bin
2009-6-17 20:58:25 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-6-17 20:58:25 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1286 ms
2009-6-17 20:58:25 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-6-17 20:58:25 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-6-17 20:58:28 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Document root element "struts", must match DOCTYPE root "web-app". at (null:3:10)
org.xml.sax.SAXParseException: Document root element "struts", must match DOCTYPE root "web-app".
.....
严重: Exception starting filter struts2
Unable to load configuration. - file:/E:/j2ee/struts2/WebRoot/WEB-INF/classes/struts.xml:3:10
.....
2009-6-17 20:58:28 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-6-17 20:58:28 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
2009-6-17 20:58:29 org.apache.catalina.core.StandardContext addApplicationListener
tomcat 6.0 myeclipse 6.0 jdk好像不是1.5
运行项目就是不成功tomcat总是出现问题,以下是报错的部分代码.2009-6-17 20:58:24 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\java\SDK\jdk\bin;D:\Program Files\java\apache-tomcat-6.0.16\bin
2009-6-17 20:58:25 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-6-17 20:58:25 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1286 ms
2009-6-17 20:58:25 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-6-17 20:58:25 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-6-17 20:58:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-6-17 20:58:28 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Document root element "struts", must match DOCTYPE root "web-app". at (null:3:10)
org.xml.sax.SAXParseException: Document root element "struts", must match DOCTYPE root "web-app".
.....
严重: Exception starting filter struts2
Unable to load configuration. - file:/E:/j2ee/struts2/WebRoot/WEB-INF/classes/struts.xml:3:10
.....
2009-6-17 20:58:28 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-6-17 20:58:28 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
2009-6-17 20:58:29 org.apache.catalina.core.StandardContext addApplicationListener
解决方案 »
- 最近在研究进销存系统设计 进货单和商品的关系该怎么设计?
- 高分求教: session 没了,能否做个servlet 部署在web.xml下,自动跳转到一个页面.
- 在weblogic portal中,将一个现成的portlet(.war文件)集成进来的问题
- java 开发WebService 中使用SoapHeader身份认证的问题
- 关于ResultSet问题.......
- doGet()方法如何被激活调用?
- applet配置问题,谢谢了
- 如何让浏览器中显示的word文档不能修改和拷贝(300分)
- 有哪些页面写作工具支持JSP标志库描述项?
- ResultSet不能更新和滚动
- struts2如何读取图片?
- hibernate查询子表对象在页面上找不到!!!!
<!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>
<display-name>Archetype Created Web Application </display-name>
<filter>
<filter-name>struts2 </filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
</filter> <filter-mapping>
<filter-name>struts2 </filter-name>
<url-pattern>/* </url-pattern>
</filter-mapping> </web-app>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" /> <include file="example.xml"/> <package name="struts2" extends="struts-default">
<action name="login" class="com.struts2.action.LoginAction">
<result name="success">/result.jsp</result>
</action>
</package> <!-- Add packages here --></struts>
* JSP API 2.0
* Java 5
struts2的环境要求,貌似你的web.xml遵循的规范是2.3的哟