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:javaTomcat 5.5webappsOrderTicket]
INFO – Initializing Log4J from [D:javaTomcat 5.5webappsOrderTicketWEB-INFclasseslog4j.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
仔细看看这里。