项目run正常,从tomcat上启动就报错了

King_brant 发布于 2015/06/13 11:13
阅读 988
收藏 0
严重: Error configuring application listener of class lab.s2jh.core.web.listener.ApplicationContextPreListener
java.lang.ClassNotFoundException: lab.s2jh.core.web.listener.ApplicationContextPreListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4932)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

六月 13, 2015 10:46:01 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class lab.s2jh.core.web.listener.ApplicationContextPostListener
java.lang.ClassNotFoundException: lab.s2jh.core.web.listener.ApplicationContextPostListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4932)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

六月 13, 2015 10:46:01 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class lab.s2jh.core.web.listener.AuthLogonHistRefreshListener
java.lang.ClassNotFoundException: lab.s2jh.core.web.listener.AuthLogonHistRefreshListener
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4932)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

六月 13, 2015 10:46:01 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
六月 13, 2015 10:46:01 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
六月 13, 2015 10:46:01 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/s2jh4net] startup failed due to previous errors
六月 13, 2015 10:46:01 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
六月 13, 2015 10:46:01 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
六月 13, 2015 10:46:01 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 7070 ms

加载中
0
笑莫问
笑莫问

找不到这个类啊。lab.s2jh.core.web.listener.AuthLogonHistRefreshListener

看你的lib目录是不是少了啥Jar

如比如比
如比如比
对地,看log是jar不全 被引用的在这儿啦 https://github.com/xautlx/s2jh OSCgit上也有一个。 https://git.oschina.net/xautlx/s2jh
0
xiaoyaoyoufang
xiaoyaoyoufang
看你的web.xml加载正常吗
0
pantrick
pantrick
java.lang.ClassNotFoundException: lab.s2jh.core.web.listener.ApplicationContextPreListener
0
南湖船老大
南湖船老大
Java报错看起来多,实际上很简单的啊
0
yeliuping
yeliuping
这个一般是编译不全,出错或包重复了
King_brant
King_brant
嗯,编译不全,我clean了几次然后重启tomcat就好了
返回顶部
顶部