我在与Web应用程序部署相关的JBoss EAP 6.2(在群集模式下配置)存在以下问题。
我的网络应用程序是一个war文件,其中包含:使用JBPM2和REST服务定义的进程,用于启动进程,检索任务等。
我使用JBPM 6.0.1.Final库来定义和访问我的流程和任务。
该体系结构基于Spring,它创建了一个org.kie.api.runtime.manager.RuntimeManager对象:
@PostConstruct
public void init() {
if (runtimeManager == null) {
RuntimeEnvironment environment = (RuntimeEnvironment) RuntimeEnvironmentBuilder.getDefault()
.entityManagerFactory(entityManagerFactory)
.userGroupCallback(userGroupCallback)
.addAsset(ResourceFactory.newClassPathResource("test.bpmn2"), ResourceType.BPMN2)
.get();
((SimpleRegisterableItemsFactory)environment.getRegisterableItemsFactory())。addWorkItemHandler(“Log”,SystemOutWorkItemHandler.class);
runtimeManager = org.kie.api.runtime.manager.RuntimeManagerFactory.Factory.get()。newSingletonRuntimeManager(environment);
}
}
但是当我使用下划线部署我的web-app行代码时,我收到以下错误:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/example]] (ServerService Thread Pool -- 181) JBWEB000289: Servlet example threw load() exception: java.lang.ClassNotFoundException: org.drools.audit.WorkingMemoryLogger from [Module "deployment.example.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final-redhat-2]
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_55]
at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_55]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.Module.loadModuleClass(Module.java:548) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jbpm.runtime.manager.impl.DefaultRegisterableItemsFactory.getProcessEventListeners(DefaultRegisterableItemsFactory.java:77) [jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
at org.jbpm.runtime.manager.impl.AbstractRuntimeManager.registerItems(AbstractRuntimeManager.java:85) [jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
at org.jbpm.runtime.manager.impl.SingletonRuntimeManager.init(SingletonRuntimeManager.java:99) [jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newSingletonRuntimeManager(RuntimeManagerFactoryImpl.java:71) [jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newSingletonRuntimeManager(RuntimeManagerFactoryImpl.java:62) [jbpm-runtime-manager-6.0.1.Final.jar:6.0.1.Final]
但是,在独立模式下配置JBoss EAP 6.2,一切正常。
有人可以帮助我。
此致