jdon+struts开发中遇见的错误

13-04-17 sinaID58862
求大神指教!谢谢....

我在web.xml中配置了过滤器,启动服务器时报错了:

谁有jdon+struts开发的实例代码呀,发一个给我,谢谢。

严重: Exception starting filter RestFilter

java.lang.NoClassDefFoundError: com/thoughtworks/paranamer/Paranamer

at com.jdon.mvc.engine.DefaultResourceManager.<init>(DefaultResourceManager.java:41)

at com.jdon.mvc.engine.BootStrapEngine.bootStrap(BootStrapEngine.java:41)

at com.jdon.mvc.engine.DispatcherFactory.build(DispatcherFactory.java:27)

at com.jdon.mvc.RestFilter.init(RestFilter.java:58)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)

at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)

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

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)

at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)

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

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

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

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

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

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

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

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

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

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

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)

Caused by: java.lang.ClassNotFoundException: com.thoughtworks.paranamer.Paranamer

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

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

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

... 31 more

[该贴被sinaID58862于2013-04-17 14:45修改过]

kof99
2013-04-19 10:08
jdonframework里面收录的例子,好像是oojdon提供的代码,但是缺少lib, 下载那个oojdon的jdonmvc的war包,里面有需要的lib.

http://www.jdon.com/jdonframework/download.html

里面的sorcefoge或googlesource的链接看看哪个能下

猜你喜欢