首先声明,我是一个菜鸟。一下文章中涌现技术误导情况盖不负责
严峻: Servlet /Infinity threw load() exception
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:417)
at java.lang.Integer.parseInt(Integer.java:499)
at org.directwebremoting.util.VersionUtil.loadProperties(VersionUtil.java:129)
at org.directwebremoting.util.VersionUtil.getLabel(VersionUtil.java:108)
at org.directwebremoting.impl.StartupUtil.logStartup(StartupUtil.java:157)
at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:62)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2013-5-2 1:32:56 org.apache.coyote.http11.Http11Protocol start
决解办法:
明天整合ssh+dwr的时候,涌现了上面的错误。当即去网上查档,有资料说在struts的配置文件里头加添
<constant name="struts.action.excludePattern" value="/dwr/*" />
断果加添,无果。一样报上面的那个错误。
后来,淡定的听了一首歌,看别人抽了一根烟,顿时舍茅顿开。数字格式化错误啊。
速火去看配置文件里头,只有servlet载加序顺里头有数字。对,就是上面那个:
<load-on-startup>1</load-on-startup>
断果去除,再重启,大的。居然不报错了!!
PS:
虽然,木有搞明确为啥没有了就不会报错,但是,至少是决解了一下。如果,哪位大神得懂原因,还请不吝赐教。
文章结束给大家分享下程序员的一些笑话语录:
古鸽是一种搜索隐禽,在中国快绝迹了…初步的研究表明,古鸽的离去,很可能导致另一种长着熊爪,酷似古鸽,却又习性不同的猛禽类——犤毒鸟