NutzCN Logo
问答 工作流初始化错误 Resource can't map to Class,
发布于 3349天前 作者 qq_b76927b4 2693 次浏览 复制 上一个帖子 下一个帖子
标签:

2015-10-27 10:30:14.515 INFO [localhost-startStop-1] Resource can't map to Class, Resource activiti/cmd/HistoryProcessInstanceDiagramCmd.class
java.lang.NoClassDefFoundError: org/activiti/engine/impl/interceptor/Command
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)

activiti工作流的包我已经用maven加上了,版本5.18
6 回复

@IocBy写了啥?

@wendal
@IocBy(type=ComboIocProvider.class,args={
"*json","thisconfig",
"*anno","com.auto"})

这是wizzer的源码,我没动过,只是把avitivi的库换成了maven远程。

把前后的log多贴一些, 看看在扫描啥, wzflow这个demo? 我跑过, 不改版本号, 跑起来很正常

2015-10-27 10:30:14.428 DEBUG [localhost-startStop-1] MainModule: <com.auto.modules.MainModule>
2015-10-27 10:30:14.428 DEBUG [localhost-startStop-1] >> app.root = E:/workspaceweb/.metadata/.plugins/org.eclipse.wst.server.core/tmp17/wtpwebapps/wzflow
2015-10-27 10:30:14.468 DEBUG [localhost-startStop-1] Using 91 castor for Castors
2015-10-27 10:30:14.468 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*json", "thisconfig", "*anno", "com.auto"],init=[])
2015-10-27 10:30:14.478 DEBUG [localhost-startStop-1] Found 3 resource by src( thisconfig ) , regex( ^(.+[.])(js|json)$ )
2015-10-27 10:30:14.478 DEBUG [localhost-startStop-1] loading ioc js config from [datasource.json]
2015-10-27 10:30:14.488 DEBUG [localhost-startStop-1] loading ioc js config from [fileserver.json]
2015-10-27 10:30:14.488 DEBUG [localhost-startStop-1] loading ioc js config from [upload.json]
2015-10-27 10:30:14.488 DEBUG [localhost-startStop-1] Loaded 6 bean define from path=[thisconfig] --> [dataSource, filePool, dao, uploadCtx, fileServer, upload]
2015-10-27 10:30:14.513 DEBUG [localhost-startStop-1] Found 130 resource by src( com/auto/ ) , regex( ^.+[.]class$ )
2015-10-27 10:30:14.515 INFO [localhost-startStop-1] Resource can't map to Class, Resource activiti/cmd/HistoryProcessInstanceDiagramCmd.class
java.lang.NoClassDefFoundError: org/activiti/engine/impl/interceptor/Command
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at org.nutz.lang.Lang.loadClass(Lang.java:1805)
at org.nutz.resource.Scans.rs2class(Scans.java:377)
at org.nutz.resource.Scans.scanPackage(Scans.java:268)
at org.nutz.resource.Scans.scanPackage(Scans.java:253)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:967)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:113)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:97)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:373)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:101)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:77)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4854)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5542)
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$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.activiti.engine.impl.interceptor.Command
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
... 39 more
是wzflow,我改了maven里对activiti的引用

原版跑通没? 没有的话先把原版弄好

我把它适配到5.18.0了,上传到github了

wzflow 已经适配为 5.18.0版

添加回复
请先登陆
回到顶部