本文主要是介绍和web.xml继续奋斗HTTP Status 500 – Internal Server Error,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
和web.xml继续奋斗
上次报了Proxool池连接错误,就在web.xml里加入了
<!-- start proxool连接池 --><servlet><display-name>proxool</display-name><servlet-name>ServletConfigurator</servlet-name><servlet-class>org.logicalcobwebs.proxool.configuration.ServletConfigurator</servlet-class><init-param><param-name>xmlFile</param-name><param-value>WEB-INF/proxool.xml</param-value></init-param><load-on-startup>1</load-on-startup></servlet><servlet><servlet-name>wkxtAdmin</servlet-name><servlet-class>org.logicalcobwebs.proxool.admin.servlet.AdminServlet</servlet-class></servlet><servlet-mapping><servlet-name>wkxtAdmin</servlet-name><url-pattern>/wkxtAdmin</url-pattern></servlet-mapping><!-- end proxool连接池 -->
然后又报了另一个错误。
HTTP Status 500 – Internal Server Error
Type Exception ReportMessage java.lang.NullPointerExceptionDescription The server encountered an unexpected condition that prevented it from fulfilling the request.Exceptionjavax.servlet.ServletException: java.lang.NullPointerExceptionorg.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)javax.servlet.http.HttpServlet.service(HttpServlet.java:634)javax.servlet.http.HttpServlet.service(HttpServlet.java:741)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Causejava.lang.NullPointerExceptioncom.lyt.cache.CacheUtil.setCacheJournal(CacheUtil.java:32)com.wkxt.journal.JournalServiceImpl.loadJournal(JournalServiceImpl.java:118)com.wkxt.article.web.action.ShowOldVolumnENAction.execute(ShowOldVolumnENAction.java:33)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)javax.servlet.http.HttpServlet.service(HttpServlet.java:634)javax.servlet.http.HttpServlet.service(HttpServlet.java:741)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.Apache Tomcat/9.0.10
这篇关于和web.xml继续奋斗HTTP Status 500 – Internal Server Error的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!