jforum 2.1.8 启动失败

sunrong 发布于 2011/11/24 09:53
阅读 964
收藏 0

https://github.com/rafaelsteil/jforum2下载下来,放到tomcat里就是启动失败。

看了tomcat日志

 

2011-11-24 9:41:05 org.apache.catalina.core.StandardContext listenerStart

严重: Error configuring application listener of class net.jforum.ForumSessionListener

java.lang.ClassNotFoundException: net.jforum.ForumSessionListener

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3915)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)

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:546)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

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:519)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

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:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2011-11-24 9:41:05 org.apache.catalina.core.StandardContext listenerStart

严重: Skipped installing application listeners due to previous error(s)

 

看来是net.jforum.ForumSessionListener 找不到,但是我C:\apache-tomcat-6.0.26\webapps\jforum\src\net\jforum  目录下明明有这个文件啊?

在国外网站上看到 有人回答:

It can't find that class on the CLASSPATH, you need to make sure that the jforum jar is on the CLASSPATH and that it's the right version (e.g. it contains that class)


我的classpath是CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_29\lib;C:\Program Files\Java\jdk1.6.0_29\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_29\lib\tools.jar

就是改成了CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_29\lib;C:\Program Files\Java\jdk1.6.0_29\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_29\lib\tools.jar;C:\apache-tomcat-6.0.26\webapps\jforum\lib;C:\apache-tomcat-6.0.26\webapps\jforum\www\website\WEB-INF\lib;C:\apache-tomcat-6.0.26\webapps\jforum\www\website\WEB-INF\lib



还是不行,为什麽啊?



 

加载中
0
红薯
红薯
没编译吧?
0
小范
清空下project 重新编译下试试 work删掉
0
sunrong
sunrong

谢谢红薯!

谢谢小范。

问题解决了。

返回顶部
顶部