首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

struts1.2+hibernate3.0 +spring 2.0 +mysql 开发时有关问题

2012-11-09 
struts1.2+hibernate3.0 +spring 2.0 +mysql 开发时问题2008-2-29 20:38:48 org.apache.catalina.startup.

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
仔细看看这里。

热点排行