Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1115

ClassNotFoundException when using bpm audit

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: component-bpm
    • Labels:
      None

      Description

      When using <bpm:audit>, ClassNotFoundException is thrown due to not having xstream on the classpath. Audit creates drools KnowledgeRuntimeLogger which uses XStream for creating xml logs.

      Caused by: java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStream
      	at org.drools.audit.KnowledgeRuntimeLoggerProviderImpl.newThreadedFileLogger(KnowledgeRuntimeLoggerProviderImpl.java:39) [drools-core-5.4.0.Final.jar:5.4.0.Final]
      	at org.drools.logger.KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(KnowledgeRuntimeLoggerFactory.java:68) [knowledge-api-5.4.0.Final.jar:5.4.0.Final]
      	at org.switchyard.component.common.rules.util.drools.Audits.getLogger(Audits.java:59)
      	at org.switchyard.component.bpm.exchange.drools.DroolsBPMExchangeHandler.getStatefulSession(DroolsBPMExchangeHandler.java:451) [switchyard-component-bpm-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.component.bpm.exchange.drools.DroolsBPMExchangeHandler.handleMessage(DroolsBPMExchangeHandler.java:256) [switchyard-component-bpm-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.internal.DefaultHandlerChain.handleMessage(DefaultHandlerChain.java:148) [switchyard-runtime-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.internal.DefaultHandlerChain.handle(DefaultHandlerChain.java:121) [switchyard-runtime-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.internal.LocalDispatcher.dispatch(LocalExchangeBus.java:72) [switchyard-runtime-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.internal.ExchangeImpl.sendInternal(ExchangeImpl.java:267) [switchyard-runtime-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.internal.ExchangeImpl.send(ExchangeImpl.java:184) [switchyard-runtime-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.component.soap.InboundHandler.invoke(InboundHandler.java:216) [switchyard-component-soap-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:113) [switchyard-component-soap-0.5.0.Final.jar:0.5.0.Final]
      	at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:43) [switchyard-component-soap-0.5.0.Final.jar:0.5.0.Final]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]
      	at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]
      	at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
      	at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
      	... 31 more
      Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.XStream from [Module "org.drools:main" from local module loader @332611a7 (roots: /home/ssadeghi/projects/nav/servers/brms-eap6/modules)]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      	... 50 more
      

      A dependency to "com.thoughtworks.xstream" is needed to be added to "org.drools" module.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dward David Ward
                  Reporter:
                  ssadeghi Siamak Sadeghianfar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: