1 Reply Latest reply on Dec 27, 2010 6:40 AM by Shambhu Kumar Sinha

    jBPM does not loads classes added in .bar file

    Shambhu Kumar Sinha Newbie



      I am configuring EJB call in jpdl as following

                   <object expr="#{ID}" />
               <transition to="PerfomSomeAction" />


      And adding this process definition and client classes of EJB using ant build as following

      <target depends="jbpm.libs.path">
           <mkdir dir="${jbpm.home}/bardep/target" />
           <jar destfile="${jbpm.home}/bardep/target/approval.bar">
             <fileset dir="${jbpm.home}/bardep/target/classes">



      I am putting my all classes and process.jpdl.xml file inside classes directory as following





      This approval.bar is deploying correctly and also I am able to retrieve deployed classes using repositoryService.getResourceNames(deploymentDbid).

      But these classes are not available in classpath by jBPM at runtime when call for ejb process is executed this is getting error as

      Caused by: javax.naming.NamingException: Lookup failed for 'company/project/module/UserAdmin' in SerialContext  [Root exception is javax.naming.NamingException: ejb ref resolution error for remote business interface com.company.project.module.client.interfaces.UserAdminBeanRemote [Root exception is java.lang.ClassNotFoundException: com.company.project.module.client.interfaces.UserAdminBeanRemote]


      If I put jar of these classes in jBPM classpath then ejb is calling correctly.


      Please help me if I need to do here anything so that all classes added in approval.bar deployment should load for ejb client and call should execute correctly.


      Thanks in advance,