0 Replies Latest reply on Apr 26, 2013 3:31 AM by Marichamy Shanmugakkani

    JBPM Deployment in Jboss eap

    Marichamy Shanmugakkani Newbie

      Hi Friends,


      Could you please anyone help me to resolve the below issue/error? I am trying to deploy simple JBPM project into jboss-eap-5.1 server. Below are the stpes that i follwed.


      1) Created Sample JBPM project and exported that project into jar file
      2) Created Dynamic web project with sample Servlet and placed Sample JBPM jar into lib folder.
      a) Created object for ProcessMain class in Servlet class
      b) Calling the ProcessMain method to start the process.
      3) Created a war file from the Dynamic web project and placed inside the Jboss RTRA instance
      4) Placed required jars in Jboss ../jboss-eap-5.1.0\jboss-eap-5.1\jboss-as\server\RTRA\lib
      4) Started the server once server starts servlet will be invoked and call the ProcessMain method to start the process but i am getting the below Error

      2013/04/25_14:18.44.960 381091 ERROR [STDERR] (main:) java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.BPMN2ProcessProvider'
      2013/04/25_14:18.44.961 381092 ERROR [STDERR] (main:)     at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:161)
      2013/04/25_14:18.44.961 381092 ERROR [STDERR] (main:)     at org.drools.compiler.BPMN2ProcessFactory.loadProvider(BPMN2ProcessFactory.java:29)
      2013/04/25_14:18.44.961 381092 ERROR [STDERR] (main:)     at org.drools.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(BPMN2ProcessFactory.java:21)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at org.drools.compiler.BPMN2ProcessFactory.configurePackageBuilder(BPMN2ProcessFactory.java:12)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:476)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at com.test.ProcessMain.readKnowledgeBase(ProcessMain.java:28)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at com.test.ProcessMain.processMain(ProcessMain.java:17)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at com.test.TestServlet.init(TestServlet.java:17)
      2013/04/25_14:18.44.962 381093 ERROR [STDERR] (main:)     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
      2013/04/25_14:18.44.963 381094 ERROR [STDERR] (main:)     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
      2013/04/25_14:18.44.963 381094 ERROR [STDERR] (main:)     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
      2013/04/25_14:18.44.963 381094 ERROR [STDERR] (main:)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4417)

       

      In windows, through eclipse i am able to run the program as stanalone, but in jboss its not working. Because in eclipse, i will be having the jbpm installer and from there i will refer the Runtime. Do i miss any setup/jars/plugins for running in Jboss?