7 Replies Latest reply on Jul 8, 2006 7:59 AM by Ronald van Kuijk

    JBPM 3.1.1 & ActiveMQ

    Oscar Guadilla Newbie

      Good morning,

      I am trying to send a jms message using activemq client from an action and I have encounter some problems.

      I have included in the classpath some jars (activemq-core-4.0-RC2.jar, geronimo-j2ee-management_1.0_spec-1.0.jar, backport-util-concurrent-2.1.jar and commons-logging-1.0.4.jar) and now the jbpm-server included in the starters kit doesn't startup correctly.

      I think it is something related with log management in jbpm and activemq. Both of them use log4j.

      Any idea?

      Thanks in advance,
      Oscar

        • 1. Re: JBPM 3.1.1 & ActiveMQ
          Ronald van Kuijk Master

          how can we see wat is wrong with this limited amount of information. Please provide more information.

          • 2. Re: JBPM 3.1.1 & ActiveMQ
            Oscar Guadilla Newbie

            Ronald,

            Sorry for the lack of information. The data was in the laptop at home and I opened the question at the office.

            ---- The bpm is the following:

            <?xml version="1.0" encoding="UTF-8"?>
            <process-definition
            xmlns="urn:jbpm.org:jpdl-3.1" name="first_proceeding">
            <start-state name="start_first_proceeding">


            </start-state>



            Mi First Numeric Task







            My Second Numeric Task




            <end-state name="end_first_proceeding"></end-state>
            </process-definition>

            ---- The ActionHandler which uses ActiveMQ is the following
            package com.ejie.pocsoa;

            import java.io.FileOutputStream;
            import java.io.PrintWriter;
            import java.util.Date;

            import javax.jms.Connection;
            import javax.jms.JMSException;
            import javax.jms.MessageConsumer;
            import javax.jms.MessageProducer;
            import javax.jms.Session;
            import javax.jms.TextMessage;

            import org.apache.activemq.ActiveMQConnectionFactory;
            import org.apache.activemq.command.ActiveMQTopic;
            import org.jbpm.graph.def.ActionHandler;
            import org.jbpm.graph.exe.ExecutionContext;
            import org.jbpm.graph.exe.Token;

            public class Task1 implements ActionHandler {

            private static final long serialVersionUID = 1L;

            /**
            * The message member gets its value from the configuration in the
            * processdefinition. The value is injected directly by the engine.
            */
            String message;

            /**
            * A message process variable is assigned the value of the message
            * member. The process variable is created if it doesn't exist yet.
            */
            public void execute(ExecutionContext context) throws Exception {
            context.getContextInstance().setVariable("message", message);
            /*FileOutputStream fos=new FileOutputStream("D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-designer/workspace/procesos");
            PrintWriter pw=new PrintWriter(fos);
            pw.write("\n--------- TASK1 ------>>>>>>>>>>>>>> "+message);
            pw.close();*/
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            System.out.println("\n--------- TASK1_SM ------>>>>>>>>>>>>>> "+message);
            this.publish();
            /*Token next=(Token)context.getToken().getChildren().values().iterator().next();
            next.signal();*/
            }

            public void publish() throws JMSException {
            ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616");
            ActiveMQTopic pubTopic = new ActiveMQTopic("ejie.pocsoa.inputBPMSignal");
            ActiveMQTopic subTopic = new ActiveMQTopic("demo.org.servicemix.result");

            System.out.println("Connecting to JMS server.");
            Connection connection = factory.createConnection();
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            MessageProducer producer = session.createProducer(pubTopic);
            MessageConsumer consumer = session.createConsumer(subTopic);
            connection.start();

            System.out.println("Sending request.");
            TextMessage m=session.createTextMessage(""+new Date()+"");
            //m.setStringProperty("SERVICE","S1");
            producer.send(m);
            m = (TextMessage) consumer.receive(1000*10);
            if( m == null ) {
            System.out.println("Response timed out.");
            } else {
            System.out.println("Response was: "+m.getText());
            }

            System.out.println("Closing.");
            connection.close();
            }
            }

            ---- The included libraries in lib/endorsed folder are (I got them from servicemix 3.0 M1):
            activemq-core-4.0-RC2.jar
            backport-util-concurrent-2.1.jar
            geronimo-jms_1.1_spec-1.0.jar
            commons-logging-1.0.4.jar

            ---- The error I get when I startup jboss server is:
            ===============================================================================
            .
            JBoss Bootstrap Environment
            .
            JBOSS_HOME: D:\oscar\proyectos\soa\jbpm-starters-kit-3.1.1\jbpm-server\bin\\..

            .
            JAVA: D:\java\j2sdk1.4.2_05\bin\java
            .
            JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
            .
            CLASSPATH: D:\java\j2sdk1.4.2_05\lib\tools.jar;D:\oscar\proyectos\soa\jbpm-sta
            rters-kit-3.1.1\jbpm-server\bin\\run.jar
            .
            ===============================================================================
            .
            01:11:54,445 INFO [Server] Starting JBoss (MX MicroKernel)...
            01:11:54,455 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBo
            ss_4_0_3_SP1 date=200510231054)
            01:11:54,455 INFO [Server] Home Dir: D:\oscar\proyectos\soa\jbpm-starters-kit-3
            .1.1\jbpm-server
            01:11:54,455 INFO [Server] Home URL: file:/D:/oscar/proyectos/soa/jbpm-starters
            -kit-3.1.1/jbpm-server/
            01:11:54,465 INFO [Server] Patch URL: null
            01:11:54,465 INFO [Server] Server Name: jbpm
            01:11:54,465 INFO [Server] Server Home Dir: D:\oscar\proyectos\soa\jbpm-starter
            s-kit-3.1.1\jbpm-server\server\jbpm
            01:11:54,465 INFO [Server] Server Home URL: file:/D:/oscar/proyectos/soa/jbpm-s
            tarters-kit-3.1.1/jbpm-server/server/jbpm/
            01:11:54,465 INFO [Server] Server Temp Dir: D:\oscar\proyectos\soa\jbpm-starter
            s-kit-3.1.1\jbpm-server\server\jbpm\tmp
            01:11:54,465 INFO [Server] Root Deployment Filename: jboss-service.xml
            01:11:54,826 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
            01:11:54,826 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04
            ,Sun Microsystems Inc.
            01:11:54,826 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
            01:11:55,457 INFO [Server] Core system initialized
            01:11:57,340 INFO [WebService] Using RMI server codebase: http://ej008657:8083/

            01:11:57,370 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
            ce:log4j.xml
            01:11:57,580 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=
            1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server Socket
            Factory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
            01:11:59,793 WARN [ServiceController] Problem starting service jboss.web:servic
            e=WebServer
            java.lang.ExceptionInInitializerError
            at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:344)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:230)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
            .java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:943)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:319)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:192)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
            bstractDeploymentScanner.java:265)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:230)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:943)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
            at org.jboss.Main.boot(Main.java:187)
            at org.jboss.Main$1.run(Main.java:438)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
            ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by
            java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig
            urationException: java.lang.NullPointerException (Caused by java.lang.NullPointe
            rException))
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
            Impl.java:543)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
            Impl.java:235)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
            Impl.java:209)
            at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
            at org.apache.commons.modeler.Registry.(Registry.java:126)
            ... 97 more
            Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullP
            ointerException (Caused by java.lang.NullPointerException)
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
            actoryImpl.java:397)
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
            Impl.java:529)
            ... 101 more
            Caused by: java.lang.NullPointerException
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
            actoryImpl.java:374)
            ... 102 more
            01:12:01,736 INFO [RARDeployment] Required license terms exist, view META-INF/r
            a.xml in .../deploy/jboss-local-jdbc.rar
            01:12:01,856 INFO [RARDeployment] Required license terms exist, view META-INF/r
            a.xml in .../deploy/jboss-xa-jdbc.rar
            01:12:01,986 INFO [RARDeployment] Required license terms exist, view META-INF/r
            a.xml in .../deploy/jms/jms-ra.rar
            01:12:02,207 DEBUG [JbpmService] Creating jboss.jbpm:name=DefaultJbpm,service=Jb
            pmService
            01:12:02,207 DEBUG [JbpmService] Created jboss.jbpm:name=DefaultJbpm,service=Jbp
            mService
            01:12:03,559 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
            oss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
            01:12:03,779 DEBUG [JbpmService] Starting jboss.jbpm:name=DefaultJbpm,service=Jb
            pmService
            01:12:03,779 DEBUG [JbpmService] starting jbpm service...
            01:12:03,799 WARN [ServiceController] Problem starting service jboss.jbpm:name=
            DefaultJbpm,service=JbpmService
            java.lang.ExceptionInInitializerError
            at org.jbpm.db.jmx.JbpmService.startService(JbpmService.java:40)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:230)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:943)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at org.jboss.system.ServiceController.start(ServiceController.java:446)
            at org.jboss.system.ServiceController.start(ServiceController.java:446)
            at org.jboss.system.ServiceController.start(ServiceController.java:446)
            at org.jboss.system.ServiceController.start(ServiceController.java:446)
            at org.jboss.system.ServiceController.start(ServiceController.java:446)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.ja
            va:273)
            at $Proxy29.start(Unknown Source)
            at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:185)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:319)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:192)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
            bstractDeploymentScanner.java:265)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:230)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:943)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
            at org.jboss.Main.boot(Main.java:187)
            at org.jboss.Main$1.run(Main.java:438)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
            ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by
            java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig
            urationException: java.lang.NullPointerException (Caused by java.lang.NullPointe
            rException))
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
            Impl.java:543)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
            Impl.java:235)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
            Impl.java:209)
            at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
            at org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:425)
            ... 112 more
            Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullP
            ointerException (Caused by java.lang.NullPointerException)
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
            actoryImpl.java:397)
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
            Impl.java:529)
            ... 116 more
            Caused by: java.lang.NullPointerException
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
            actoryImpl.java:374)
            ... 117 more
            01:12:03,969 INFO [JbpmQueue] Bound to JNDI name: queue/JbpmQueue
            01:12:04,129 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
            0.0:8093
            01:12:04,189 INFO [DLQ] Bound to JNDI name: queue/DLQ
            01:12:04,370 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
            oss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
            01:12:04,400 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

            --- Packages waiting for a deployer ---
            org.jboss.deployment.DeploymentInfo@973c6bc6 { url=file:/D:/oscar/proyectos/soa/
            jbpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/http-invoker.sar/invoker.
            war/ }
            deployer: null
            status: Starting
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/http-invoker.sar/invoker.war/
            altDD: null
            lastDeployed: 1152313920734
            lastModified: 1151525213831
            mbeans:

            org.jboss.deployment.DeploymentInfo@1822fe35 { url=file:/D:/oscar/proyectos/soa/
            jbpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jbossweb-tomcat55.sar/ROO
            T.war/ }
            deployer: null
            status: Starting
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jbossweb-tomcat55.sar/ROOT.war/
            altDD: null
            lastDeployed: 1152313920734
            lastModified: 1151525264824
            mbeans:

            org.jboss.deployment.DeploymentInfo@cb0e9d2a { url=file:/D:/oscar/proyectos/soa/
            jbpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jms/jbossmq-httpil.sar/jb
            ossmq-httpil.war/ }
            deployer: null
            status: Starting
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
            altDD: null
            lastDeployed: 1152313920734
            lastModified: 1151525214272
            mbeans:

            org.jboss.deployment.DeploymentInfo@f06a57e { url=file:/D:/oscar/proyectos/soa/j
            bpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jbpm.war }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jbpm.war
            altDD: null
            lastDeployed: 1152313924400
            lastModified: 1152313924400
            mbeans:

            org.jboss.deployment.DeploymentInfo@e43bba85 { url=file:/D:/oscar/proyectos/soa/
            jbpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jmx-console.war/ }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jmx-console.war/
            altDD: null
            lastDeployed: 1152313924400
            lastModified: 1151525267969
            mbeans:

            --- Incompletely deployed packages ---
            org.jboss.deployment.DeploymentInfo@f06a57e { url=file:/D:/oscar/proyectos/soa/j
            bpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jbpm.war }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jbpm.war
            altDD: null
            lastDeployed: 1152313924400
            lastModified: 1152313924400
            mbeans:

            org.jboss.deployment.DeploymentInfo@e43bba85 { url=file:/D:/oscar/proyectos/soa/
            jbpm-starters-kit-3.1.1/jbpm-server/server/jbpm/deploy/jmx-console.war/ }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/D:/oscar/proyectos/soa/jbpm-starters-kit-3.1.1/jbpm-server/server
            /jbpm/deploy/jmx-console.war/
            altDD: null
            lastDeployed: 1152313924400
            lastModified: 1151525267969
            mbeans:

            --- MBeans waiting for other MBeans ---
            ObjectName: jboss.web:service=WebServer
            State: FAILED
            Reason: java.lang.ExceptionInInitializerError
            I Depend On:
            jboss.security:service=JaasSecurityManager
            jboss:service=TransactionManager
            Depends On Me:
            jboss.mq:service=InvocationLayer,type=HTTP

            ObjectName: jboss.jbpm:name=DefaultJbpm,service=JbpmService
            State: FAILED
            Reason: java.lang.ExceptionInInitializerError
            I Depend On:
            jboss.jca:name=DefaultDS,service=DataSourceBinding

            ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
            State: CONFIGURED
            I Depend On:
            jboss.mq:service=Invoker
            jboss.web:service=WebServer

            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: jboss.web:service=WebServer
            State: FAILED
            Reason: java.lang.ExceptionInInitializerError
            I Depend On:
            jboss.security:service=JaasSecurityManager
            jboss:service=TransactionManager
            Depends On Me:
            jboss.mq:service=InvocationLayer,type=HTTP

            ObjectName: jboss.jbpm:name=DefaultJbpm,service=JbpmService
            State: FAILED
            Reason: java.lang.ExceptionInInitializerError
            I Depend On:
            jboss.jca:name=DefaultDS,service=DataSourceBinding


            01:12:04,560 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBos
            s_4_0_3_SP1 date=200510231054)] Started in 10s:85ms

            Thanks in advance for your help,
            Oscar

            • 3. Re: JBPM 3.1.1 & ActiveMQ
              Ronald van Kuijk Master

              this is no jbpm error. Look at the stacktrace. It is a log4j logging error, probably (but that is just guessing) caused by you adding commons-logging to the classpath

              • 4. Re: JBPM 3.1.1 & ActiveMQ
                Oscar Guadilla Newbie

                Ronald

                As you said it is a problem related with commons-logging addition.

                I have tried changing the configuration of jbpm to use log4j_jbpm.xml instead of the default log4j.xml without success.

                Any clue would be appreciated.

                Oscar

                • 5. Re: JBPM 3.1.1 & ActiveMQ
                  Oscar Guadilla Newbie

                  Ronald,

                  I got the solution.

                  It was a problemm related with the Web Container configuration used by JBoss. It uses also commons-logging library and it looks as it has a defined configuration for the version included.

                  The solution is:
                  - do not add any jar in the jbpm-server/lib/endorsed
                  - add the following jars in jbpm-server/server/jbpm/lib (do not add commons-logging-xx.jar):
                  - activemq-core-4.0-RC2.jar
                  - backport-util-concurrent-2.1.jar
                  - activeio-core-3.0-beta1.jar

                  Oscar

                  • 6. Re: JBPM 3.1.1 & ActiveMQ
                    Ronald van Kuijk Master

                    as said it is no jBPM error, try using the JBoss AS forum, but I think the answer will be the same. You added a commons-logging jar. Try removing it. Why did you assume changing the log4j config file would some this issue?

                    • 7. Re: JBPM 3.1.1 & ActiveMQ
                      Ronald van Kuijk Master

                      Oscar

                      Sorry, two posts by you, I missed the second one.

                      Good that you solved it, and thanks for reporting back.