8 Replies Latest reply on Nov 13, 2010 8:03 AM by f rj

    Cannog get BPM-BPEL on jBoss AS 5.0

    Ilya Newbie

      I've tried to deploy jBPM-BPEL on jBoss AS 5.0.
      Doing all, what I did in 4.2.3.GA, but unsuccessull.

      Instruction is here: http://docs.jboss.com/jbpm/bpel/v1.1/userguide/getstarted.html#getstarted.jbpmbpel
      After ant deploy.ear I've got this error:

      15:48:57,307 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 1m:15s:455ms
      15:50:02,043 WARN [HDScanner] Scan failed
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jbpm-bpel.ear)
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Error determining structure: jbpm-bpel.ear
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
       at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
       ... 14 more
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
      
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
       ... 18 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:667)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
       at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
       ... 21 more



      Have anyone already solved this problem?

        • 1. Re: Cannog get BPM-BPEL on jBoss AS 5.0
          Alejandro Guizar Master

          JBoss 5.0.0.GA is not supported in jBPM BPEL 1.1.1, because JBoss 5 was still at beta status when 1.1.1 was released. Support for JBoss 5 has already been requested in BPEL-294 and will be delivered in a future jBPM BPEL release.

          • 2. Re: Cannog get BPM-BPEL on jBoss AS 5.0
            Sarish Jain Newbie

            We are trying to get this working on JBoss 5.0, Need some directions on whether or not it is possible.
            1. We have fixed the first error that comes up by correcting the application.xml that comes with bpel.ear
            2. Next we are hitting multiple errors
            a) JMS destinations JBPMQueue is not getting deployed and hence the war file is not getting deployed.
            b) Disabled the war file and tried just the ear with ejbs only deployment, still got an issue in cmp related to type-mapping not defined on datasource not deployed. Is that something?

            Please give some directions on how to resolve this.
            Also do you think this exercise is meaningless and we might hit more issues during runtime?

            • 3. Re: Cannog get BPM-BPEL on jBoss AS 5.0
              Alejandro Guizar Master

              (a), JBoss 5 does not create missing queues automatically as JBoss 4 did, so you need to deploy one yourself. You can follow this descriptor as example.

              (b) Hard to tell without a stack trace.

              • 4. Re: Cannog get BPM-BPEL on jBoss AS 5.0
                Sarish Jain Newbie

                Thanks a lot alex.. Here is the updated status

                a) Resolved by configuring the queues, do you advise using Jboss messaging instead of jboss:mq?

                b) was my good up with the hibernate tables not created, fixed it

                Now getting this exception, looking at it ..

                org.jbpm.JbpmException: ejb timer entity lookup problem
                 at org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory.getTimerEntityHome(EntitySchedulerServiceFactory.java:43)
                 at org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory.openService(EntitySchedulerServiceFactory.java:50)
                 at org.jbpm.svc.Services.getService(Services.java:150)
                 at org.jbpm.svc.Services.getSchedulerService(Services.java:192)
                 at org.jbpm.bpel.web.JbpmConfigurationLoader.contextInitialized(JbpmConfigurationLoader.java:55)
                 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
                 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
                 at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                 at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                 at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                 at $Proxy36.start(Unknown Source)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:613)
                Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ejb not bound]
                 at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1348)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:813)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:829)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
                 at javax.naming.InitialContext.lookup(InitialContext.java:351)
                 at org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory.getTimerEntityHome(EntitySchedulerServiceFactory.java:41)
                 ... 63 more
                Caused by: javax.naming.NameNotFoundException: ejb not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
                 at javax.naming.InitialContext.lookup(InitialContext.java:351)
                 at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1342)
                 ... 68 more
                
                


                • 5. Re: Cannog get BPM-BPEL on jBoss AS 5.0
                  Sarish Jain Newbie

                  Further update

                  Got around the above error by removing the JbpmConfigurationLoader from the web.xml, it seems this was just for startup and would work otherwise as well, correct me if i am wrong

                   <!-- <listener>
                   <description>
                   Loads and closes the jBPM configuration when the servlet context is initialized and
                   destroyed, respectively.
                   </description>
                   <listener-class>org.jbpm.bpel.web.JbpmConfigurationLoader</listener-class>
                   </listener> -->
                  


                  Now deployment and create schema is fine,
                  while running examples
                  1. again got xmlns problem in hello.war
                  2. Getting the following error, have tried create a jms destination with name caller
                  13:07:32,062 ERROR [[/hello]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.integration.server.IntegrationConfigurator
                  org.jbpm.bpel.BpelException: could not retrieve jms destination: caller
                   at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.lookupDestination(PartnerLinkEntriesBuilder.java:170)
                   at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.buildEntry(PartnerLinkEntriesBuilder.java:119)
                   at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.visit(PartnerLinkEntriesBuilder.java:83)
                   at org.jbpm.bpel.graph.def.AbstractBpelVisitor.visit(AbstractBpelVisitor.java:47)
                   at org.jbpm.bpel.integration.jms.IntegrationControl.buildPartnerLinkEntries(IntegrationControl.java:418)
                   at org.jbpm.bpel.integration.jms.IntegrationControl.enableInboundMessageActivities(IntegrationControl.java:323)
                   at org.jbpm.bpel.integration.server.IntegrationConfigurator.contextInitialized(IntegrationConfigurator.java:63)
                   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                   at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
                   at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
                   at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                   at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                   at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                   at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                   at $Proxy36.start(Unknown Source)
                   at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                   at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                   at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                   at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                   at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                   at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                   at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                   at org.jboss.system.ServiceController.start(ServiceController.java:460)
                   at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                   at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                   at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                   at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                   at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                   at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                   at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                   at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                   at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                   at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                   at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                   at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                   at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                   at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
                   at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                   at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
                   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
                   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                   at java.lang.Thread.run(Thread.java:613)
                  Caused by: javax.naming.NameNotFoundException: caller not bound
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                   at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                   at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
                   at javax.naming.InitialContext.lookup(InitialContext.java:351)
                   at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.lookupDestination(PartnerLinkEntriesBuilder.java:165)
                   ... 69 more
                  


                  • 6. Re: Cannog get BPM-BPEL on jBoss AS 5.0
                    Sarish Jain Newbie

                    I have got successful deployment for both the main ear file and one of the test war files.
                    To fix 2 below, i added two more destinations with name A/B..

                    Now the issue is with the runtime, while running the test class to test the hello.war results in weird errors
                    1. java.lang.NoClassDefFoundError for org/jboss/virtual/VirtualFile while executing the test case

                    2. if i add that jar *vfs-jar file in unit test classpath. i get this error.
                    java.io.IOException: unknown protocol: vfszip while unmarshalling, i am really stuck at this, help needed !!
                    I see some threads regarding this error related to WS4EE and Jboss AS 5, though i have not found any resolution for the same.

                    stack is

                    javax.naming.NamingException: Cannot unmarshall service ref meta data [Root exception is java.io.IOException: unknown protocol: vfszip]
                     at org.jboss.ws.core.jaxrpc.client.ServiceObjectFactoryJAXRPC.getObjectInstance(ServiceObjectFactoryJAXRPC.java:120)
                     at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
                     at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1447)
                     at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1464)
                     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:818)
                     at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:153)
                     at $Proxy1.lookup(Unknown Source)
                     at javax.naming.InitialContext.lookup(InitialContext.java:351)
                     at org.jbpm.bpel.tutorial.atm.AtmFrontEndTest.setUp(AtmFrontEndTest.java:42)
                     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
                     at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
                     at junit.extensions.TestSetup.run(TestSetup.java:23)
                    Caused by: java.io.IOException: unknown protocol: vfszip
                     at java.net.URL.readObject(URL.java:1217)
                     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                     at java.io.ObjectInputStream.access$300(ObjectInputStream.java:185)
                     at java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2069)
                     at java.io.ObjectInputStream.readFields(ObjectInputStream.java:518)
                     at org.jboss.metadata.serviceref.VirtualFileAdaptor.readObject(VirtualFileAdaptor.java:135)
                     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
                     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
                     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
                     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                     at org.jboss.ws.core.jaxrpc.client.ServiceObjectFactoryJAXRPC.getObjectInstance(ServiceObjectFactoryJAXRPC.java:115)


                    • 7. Re: Cannog get BPM-BPEL on jBoss AS 5.0
                      Sarish Jain Newbie

                      Deployment was successful, but while executing the process on 5.0.1, partner service invocations are failing with this exception,

                      
                      org.jbpm.bpel.BpelException: no port implements the required port type: portType={http://jbpm.org/examples/ticket}TicketIssuer
                       at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:97)
                       at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:52)
                       at org.jbpm.bpel.integration.jms.IntegrationControl.createCaller(IntegrationControl.java:261)
                       at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:162)
                       at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:75)
                       at sun.reflect.GeneratedMethodAccessor403.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
                       at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
                       at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
                       at org.jbpm.graph.def.Node.execute(Node.java:335)
                       at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:123)
                       at org.jbpm.graph.def.Transition.take(Transition.java:151)
                       at org.jbpm.graph.def.Node.leave(Node.java:390)
                       at org.jbpm.bpel.graph.def.Activity.proceed(Activity.java:241)
                       at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:229)
                       at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
                       at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
                       at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
                       at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:98)
                       at sun.reflect.GeneratedMethodAccessor396.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
                       at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_92.deliverMessage(ReceiveAction_$$_javassist_92.java)
                       at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:219)
                       at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:165)
                       at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:229)
                       at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:1043)
                       at org.jboss.messaging.util.OrderedExecutorFactory$ChildExecutor.run(OrderedExecutorFactory.java:120)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                       at java.lang.Thread.run(Thread.java:613)
                      
                      


                      May be some code fix is required within the BPEL source files


                      Not the invocation of that service (configured to be invoked as part of the workflow) worked
                      Call call = createCall("http://localhost:8080/ticket/ticketIssuer","http://jbpm.org/examples/ticket","createTicket");
                       String ret = (String) call.invoke(new Object[] { });
                      
                       System.out.println("Sent 'Hello!', got '" + ret + "'");
                      


                      Any pointers on this one?

                      • 8. Re: Cannog get BPM-BPEL on jBoss AS 5.0
                        f rj Newbie

                        did you overcome all issues and run process successfully on JBoss5.0.1 at last?