2 Replies Latest reply on Nov 2, 2008 5:06 AM by ye jun peng

    BPEL examples - server restart

    N/A N/A Newbie

      Hi all,

      I'm just playing with the BPEL examples which I could deploy without any warnings/errors. But when I'm restarting the JBoss server without any changes(!) the previously perfect working and deployed examples (deployed from examples ant task) do not get deployed anymore. Instead the server crashes and shows the following/attached stack trace.

      Can somebody tell me why? May it be caused by the deployment-order? I thought about that because the hello-example is deployed before the jbpm-bpel-file is deployed (just see the stack trace)...

      09:25:44,181 ERROR [MainDeployer] Could not start deployment: file:/C:/Program F
      iles/jboss/server/jboss-4.2.2.GA/server/default/deploy/hello.war
      org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss/serve
      r/jboss-4.2.2.GA/server/default/tmp/deploy/tmp57993hello-exp.war/ deployment fai
      led
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(Tom
      catDeployer.java:379)
       at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeplo
      yer.java:104)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy44.start(Unknown Source)
       at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:46
      6)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
      .java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
      rServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
      erceptor.java:87)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      ptor.java:95)
       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:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy45.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
       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:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
       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:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:595)
      09:25:44,233 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
      loy/jmx-console.war/
      09:25:44,376 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
      boss/server/jboss-4.2.2.GA/server/default/deploy/jbpm-bpel.ear
      09:25:45,520 INFO [EjbModule] Deploying CommandServiceBean
      09:25:45,568 INFO [EjbModule] Deploying SchedulerControlBean
      09:25:45,577 INFO [EjbModule] Deploying CommandListenerBean
      09:25:45,624 INFO [EjbModule] Deploying JobListenerBean
      09:25:45,690 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CommandServiceBe
      an' to jndi 'java:jbpm/CommandService'
      09:25:45,699 INFO [ProxyFactory] Bound EJB Home 'CommandServiceBean' to jndi 'j
      bpm/CommandService'
      09:25:45,708 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'SchedulerControl
      Bean' to jndi 'java:jbpm/SchedulerControl'
      09:25:45,750 WARN [JMSContainerInvoker] Could not find the queue destination-jn
      di-name=queue/JbpmCommandQueue
      09:25:45,752 WARN [JMSContainerInvoker] destination not found: queue/JbpmComman
      dQueue reason: javax.naming.NameNotFoundException: JbpmCommandQueue not bound
      09:25:45,752 WARN [JMSContainerInvoker] creating a new temporary destination: q
      ueue/JbpmCommandQueue
      09:25:45,759 INFO [JbpmCommandQueue] Bound to JNDI name: queue/JbpmCommandQueue
      
      09:25:45,812 WARN [JMSContainerInvoker] Could not find the queue destination-jn
      di-name=queue/JbpmJobQueue
      09:25:45,813 WARN [JMSContainerInvoker] destination not found: queue/JbpmJobQue
      ue reason: javax.naming.NameNotFoundException: JbpmJobQueue not bound
      09:25:45,814 WARN [JMSContainerInvoker] creating a new temporary destination: q
      ueue/JbpmJobQueue
      09:25:45,852 INFO [JbpmJobQueue] Bound to JNDI name: queue/JbpmJobQueue
      09:25:45,913 INFO [EJBDeployer] Deployed: file:/C:/Program Files/jboss/server/j
      boss-4.2.2.GA/server/default/tmp/deploy/tmp57994jbpm-bpel.ear-contents/jbpm-bpel
      -enterprise.jar
      09:25:45,945 INFO [TomcatDeployer] deploy, ctxPath=/jbpm-bpel, warUrl=.../tmp/d
      eploy/tmp57994jbpm-bpel.ear-contents/jbpm-bpel-exp.war/
      09:25:46,063 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
      s/jboss/server/jboss-4.2.2.GA/server/default/deploy/jbpm-bpel.ear
      09:25:46,065 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@c09ad783 { url=file:/C:/Program Files/jboss/
      server/jboss-4.2.2.GA/server/default/deploy/hello.war }
       deployer: MBeanProxyExt[jboss.web:service=WebServer]
       status: Deployment FAILED reason: URL file:/C:/Program Files/jboss/server/jbos
      s-4.2.2.GA/server/default/tmp/deploy/tmp57993hello-exp.war/ deployment failed
       state: FAILED
       watch: file:/C:/Program Files/jboss/server/jboss-4.2.2.GA/server/default/deplo
      y/hello.war
       altDD: null
       lastDeployed: 1202808343854
       lastModified: 1202808343793
       mbeans:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.web.deployment:war=hello.war,id=-1063594109
       State: FAILED
       Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/j
      boss/server/jboss-4.2.2.GA/server/default/tmp/deploy/tmp57993hello-exp.war/ depl
      oyment failed
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.web.deployment:war=hello.war,id=-1063594109
       State: FAILED
       Reason: org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/j
      boss/server/jboss-4.2.2.GA/server/default/tmp/deploy/tmp57993hello-exp.war/ depl
      oyment failed
      
      
      09:25:46,130 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
      080
      09:25:46,150 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      09:25:46,162 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
      s_4_2_2_GA date=200710221139)] Started in 16s:156ms


        • 1. Re: BPEL examples - server restart
          zheng xuxu Newbie

          I hava the same problem,who can help me?

          • 2. Re: BPEL examples - server restart
            ye jun peng Newbie

            I think it's this problem.

            do this configure from the jbpm-bpel.pdf on page 11

            1. Locate the org.jboss.deployment.MainDeployer-xmbean.xml file under the conf/xmdesc directory of your
            preferred server profile. For the default profile, the location is jboss-
            <version>/server/default/conf/xmdesc.
            2. Look for the EnhancedSuffixOrder attribute.
            3. In the value element, insert the jbpm-bpel.jar suffix anywhere you see fit, before the .war suffix. For example,
            250:.rar,300:-ds.xml,400:.jar,450:jbpm-bpel.ear,500:.war,550:.jse,650:.ear,800:.bsh
            4. Save the file. The change will not apply till the next restart.