Struts2 404 问题

wudi221364 2012-05-11 01:27:11
tomact 运行为下2012-5-11 13:21:28 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\Administrator.AEYKPV1SPULHJKB\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Users\Administrator.AEYKPV1SPULHJKB\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\bin
2012-5-11 13:21:28 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-5-11 13:21:28 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 615 ms
2012-5-11 13:21:28 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-5-11 13:21:28 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
2012-5-11 13:21:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2012-5-11 13:21:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2012-5-11 13:21:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2012-5-11 13:21:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Initializing Struts-Spring integration...
2012-5-11 13:21:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger fatal
严重: ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
Looks like the Spring listener was not configured for your web app!
Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
You might need to add the following to web.xml:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
2012-5-11 13:21:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Dispatcher initialization failed
java.lang.NullPointerException
at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:209)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:519)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:490)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:446)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
2012-5-11 13:21:31 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
... 2012-5-11 13:21:31 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2012-5-11 13:21:31 org.apache.catalina.core.StandardContext start
严重: Context [/My] startup failed due to previous errors
2012-5-11 13:21:32 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-5-11 13:21:32 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-5-11 13:21:32 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/35 config=null
2012-5-11 13:21:32 org.apache.catalina.startup.Catalina start
信息: Server startup in 3954 ms



哪个好心的高手帮我解决一下,我把工程打包发过去(qq邮箱之类的),是一个测试工程,只有一个jsp。。。权当复习了,功德无量
...全文
139 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wudi221364 2012-05-11
  • 打赏
  • 举报
回复
问题已经解决了,我估计是编译器版本的问题,我的是1.6的 改成1.5就好了
宏Lee 2012-05-11
  • 打赏
  • 举报
回复
你有没有加上 <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>?
五哥 2012-05-11
  • 打赏
  • 举报
回复
你的项目有使用spring ?
五哥 2012-05-11
  • 打赏
  • 举报
回复
发给俺看看,行么 ?
wudi221364 2012-05-11
  • 打赏
  • 举报
回复
自己顶

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧