strut2异常问题的解决
编写struts2时候出现的异常情况:
导入核心包
xwork-2.1.2.jar
commons-logging-1.0.4.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
出现异常:
Struts2 Unable to load configuration. - bean - jar ..... WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178
。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。
解决方法:
继续导入包:
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
问题解决:
2009-3-27 10:38:49 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: C:\Program Files\Java\jdk1.6.0_07\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
2009-3-27 10:38:49 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-3-27 10:38:49 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 418 ms
2009-3-27 10:38:50 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-3-27 10:38:50 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2009-3-27 10:38:50 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-3-27 10:38:50 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-3-27 10:38:50 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-3-27 10:38:50 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-3-27 10:38:51 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-3-27 10:38:51 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-3-27 10:38:52 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-3-27 10:38:52 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-3-27 10:38:52 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-3-27 10:38:52 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-3-27 10:38:52 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-3-27 10:38:52 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-3-27 10:38:52 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16 config=null
2009-3-27 10:38:52 org.apache.catalina.startup.Catalina start
信息: Server startup in 2860 ms
OK!!!!!!!!!!!!!
哥们,这能显示么?