jforum 2.1.8 启动失败
从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.26webappsjforumsrcnetjforum 目录下明明有这个文件啊?
在国外网站上看到 有人回答:
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 FilesJavajdk1.6.0_29lib;C:Program FilesJavajdk1.6.0_29libdt.jar;C:Program FilesJavajdk1.6.0_29libtools.jar
就是改成了CLASSPATH=.;C:Program FilesJavajdk1.6.0_29lib;C:Program FilesJavajdk1.6.0_29libdt.jar;C:Program FilesJavajdk1.6.0_29libtools.jar;C:apache-tomcat-6.0.26webappsjforumlib;C:apache-tomcat-6.0.26webappsjforumwwwwebsiteWEB-INFlib;C:apache-tomcat-6.0.26webappsjforumwwwwebsiteWEB-INFlib
还是不行,为什麽啊?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
谢谢红薯!
谢谢小范。
问题解决了。
清空下project 重新编译下试试 work删掉
没编译吧?