日期:2014-05-16  浏览次数:20704 次

struts1.2+hibernate3.0 +spring 2.0 +mysql 开发时问题
2008-2-29 20:38:48 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/OrderTicket]
INFO - Shutting down Log4J
INFO - Set web app root system property: 'webapp.root' = [D:\java\Tomcat 5.5\webapps\OrderTicket\]
INFO - Initializing Log4J from [D:\java\Tomcat 5.5\webapps\OrderTicket\WEB-INF\classes\log4j.properties]
ERROR - action: null
java.lang.NullPointerException
at org.springframework.web.struts.ContextLoaderPlugIn.getServletContext(ContextLoaderPlugIn.java:258)
at org.hj.orderticket.util.StrutsContextLoaderPlugIn.<init>(StrutsContextLoaderPlugIn.java:15)

像这样的问题我认为是在struts 的资源文件找不到的原因引起的 空指针异常,从而导致action无法启动造成的,这个问题我是重新设置一下ApplicationResources.propertie而得到解决的,不知是不是我乱碰而碰巧解决的,所以在这和各位高手讨论一下!
1 楼 橡树心 2008-02-28  
空指针问题,好像action指向不对~
2 楼 gaoran2008 2008-02-28  
Servlet /OrderTicket threw load() exception
仔细看看这里。