2008-02-28
struts1.2+hibernate3.0 +spring 2.0 +mysql 开发时问题
关键字: struts1.2+hibernate3.0 +spring 2.0
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而得到解决的,不知是不是我乱碰而碰巧解决的,所以在这和各位高手讨论一下!
信息: 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而得到解决的,不知是不是我乱碰而碰巧解决的,所以在这和各位高手讨论一下!
评论
gaoran2008
2008-02-28
Servlet /OrderTicket threw load() exception
仔细看看这里。
仔细看看这里。
橡树心
2008-02-28
空指针问题,好像action指向不对~
- 浏览: 1647 次
- 性别:

- 来自: 合肥

- 详细资料
搜索本博客
最近加入圈子
链接
最新评论
-
教你写正则(二)
学习了··
-- by Emy -
教你写正则(二)
不好意思,平翘舌不分。谢谢了提醒。已经改了!!呵呵
-- by handsome224521 -
教你写正则(二)
第一,应该放到综合技术。第二,是正则不是正者。写东西连标题都写错了。
-- by 魔力猫咪 -
WebSphere Integration De ...
????? 不会呀
-- by xiaoqiangcn -
再学Spring Aop 原理
补充一句:AOP的代理默认使用的是JDK代理。当然Aop的事件机制里也是和JDK ...
-- by handsome224521






评论排行榜