Servlet.init() for servlet axis threw exception
来源:互联网 发布:c语言好考么 编辑:程序博客网 时间:2024/04/28 21:50
Servlet.init() for servlet action threw exception 异常解决办法
分类:
版权声明:本文为博主原创文章,未经博主允许不得转载。
tomcat 经常会报一些莫名其妙的异常:如下
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet action threw exceptionorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NullPointerExceptionorg.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1003)org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)org.apache.struts.action.ActionServlet.init(ActionServlet.java:482)com.dc.idm.ui.action.init.InitServlet.init(InitServlet.java:68)javax.servlet.GenericServlet.init(GenericServlet.java:211)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)java.lang.Thread.run(Thread.java:595)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
这个问题主要是由于配置文件对应不上造成的,也就是说你的web.xml文件中关于struts的配置说明( struts -[*-config.xml])在指定的目录下没找到造成的,如:
<init-param>
<param-name>config/console/workflow</param-name>
<param-value>
/WEB-INF/struts-conf/struts-flow.xml
</param-value>
</init-param>
而在 /WEB-INF/struts-conf/struts-flow.xml 下并没有找到 struts-flow.xml文件,此时,就会报这个错!!请校正~
- 顶
- 1
- 踩
- 5
参考知识库
.NET知识库
Java SE知识库
Java EE知识库
Java 知识库
- 猜你在找
关闭
查看评论
- 5楼 jianye111 2016-11-11 09:32发表 [回复]
- 有解决的具体步骤吗
- 4楼 sinat_29262085 2015-11-27 10:02发表 [回复]
- 有的时候项目jar包版本也会导致这个问题 就是spring-web和spring-webmvc版本要保持一致
- 3楼 sinat_29262085 2015-11-27 10:01发表 [回复]
- 有的时候项目jar包版本也会导致这个问题 就是spring-web和spring-webmvc版本要保持一致
- 2楼 sinat_27065243 2015-04-01 22:19发表 [回复]
- 这个具体该怎么解决 。。急急急 很急
- 1楼 sd6221637123 2012-07-18 00:12发表 [回复]
- 哎。。。我也遇到这个问题了。我才莫名其妙呢。
0 0
- Servlet.init() for servlet axis threw exception
- Servlet.init() for servlet [springServlet] threw exception
- javax.servlet.ServletException: Servlet.init() for servlet springmvc_rest threw exception
- javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exception
- javax.servlet.ServletException: Servlet.init() for servlet springMVC threw exception
- javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exception
- Servlet.init() for servlet action threw exception 异常解决办法
- HTTP Status 500 - Servlet.init() for servlet CXFServlet threw exception
- HTTP Status 500 - Servlet.init() for servlet springMVC threw exception
- Java Web Servlet.init() for servlet springMVC threw exception解决
- HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
- HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
- HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
- HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
- Servlet.init() for servlet mvc-dispatcher threw exception
- Servlet.init() for servlet despatcherServlet threw exception,AopProxyUtils.getSingletonTarget(Ljava/
- 启动服务器时报异常javax.servlet.ServletException: Servlet.init() for servlet action threw exception
- javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception 错误
- 无锁的对象引用:AtomicReference(转)
- Jquery中each的三种遍历方法
- 访问者模式使用反射
- 关于jQuery选择器的空格问题
- boost如何序列化 和反序列化 指针类(本身类也可以)
- Servlet.init() for servlet axis threw exception
- easyui为tabs添加右键菜单
- FLV文件格式解析
- 欢迎使用CSDN-markdown编辑器
- MySQL数据库操作及SQL语句笔记
- mmap内存映射/dev/mem到用户空间 + kernel config
- 懵逼Java
- linux mysql
- Gif图片的解析