[jboss-user] [JBoss jBPM] - Executing Hello World BPEL Example

lilyprincess do-not-reply at jboss.com
Wed Apr 25 19:57:18 EDT 2007


I am trying to run the Hello World BPEL Example.  When I ran the client I am getting error.

I am using jboss-4.0.4.GA, JDK 1.5_06, jbpm-bpel-1.1.Beta3

I did the followings:

jbpm-bpel-1.1.Beta3\deploy> ant deploy-definition
jbpm-bpel-1.1.Beta3\examples\hello > ant generate-service
jbmp-bpel-1.1.Beta3\examples\hello > ant generate-artifacts
jbmp-bpel-1.1.Beta3\examples\hello > ant deploy
jbmp-bpel-1.1.Beta3\examples\hello > ant deploy-client
jbmp-bpel-1.1.Beta3\examples\hello > ant run-test

When I execute the Hello World Test, I get the 
following error in JBoss console.

16:47:56,488 INFO  [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deplo
y/tmp9730hello-exp.war/
16:47:57,256 WARN  [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.d
ef.CompositeActivity - this operation breaks ==
16:47:57,444 INFO  [IntegrationConfigurator] Message reception enabled for proce
ss: HelloWorld
16:47:57,506 INFO  [WSDLFilePublisher] WSDL published to: file:/C:/dev/jboss-4.0
.4.GA/server/default/data/wsdl/hello.war/hello-service.wsdl
16:47:57,694 INFO  [ServiceEndpointManager] WebService started: http://WDLLL3BNR
V8:8080/hello/greeter
16:48:07,893 INFO  [ClientDeployer] Client ENC bound under: jbpmbpel-client
16:48:16,808 WARN  [NestedThrowable] Duplicate throwable nesting of same base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class org
.jboss.deployment.DeploymentException
16:48:16,808 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/jbpm-
bpel-1.1.Beta3/examples/hello/target/hello-client.jar
org.jboss.deployment.DeploymentException: Failed to setup client ENC; - nested t
hrowable: (org.jboss.deployment.DeploymentException: Cannot bind webservice to c
lient environment; - nested throwable: (javax.naming.NameAlreadyBoundException))

        at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:171)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
        at sun.reflect.GeneratedMethodAccessor15.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 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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerA
daptorService.java:266)
        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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFac
tory.java:179)
        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.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.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke
(JRMPInvoker.java:819)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
420)
        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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.deployment.DeploymentException: Cannot bind webservice to c
lient environment; - nested throwable: (javax.naming.NameAlreadyBoundException)
        at org.jboss.ws.server.WebServiceClientDeployer.setupServiceRefEnvironme
nt(WebServiceClientDeployer.java:72)
        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.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 $Proxy51.setupServiceRefEnvironment(Unknown Source)
        at org.jboss.webservice.WebServiceClientHandler.setupServiceRefEnvironme
nt(WebServiceClientHandler.java:94)
        at org.jboss.deployment.ClientDeployer.setupEnvironment(ClientDeployer.j
ava:272)
        at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:167)
        ... 54 more
Caused by: javax.naming.NameAlreadyBoundException
        at org.jnp.server.NamingServer.bind(NamingServer.java:144)
        at org.jnp.server.NamingServer.bind(NamingServer.java:109)
        at org.jnp.server.NamingServer.bind(NamingServer.java:109)
        at org.jnp.interfaces.NamingContext.bind(NamingContext.java:566)
        at org.jnp.interfaces.NamingContext.bind(NamingContext.java:531)
        at org.jboss.util.naming.Util.bind(Util.java:102)
        at org.jboss.util.naming.Util.bind(Util.java:89)
        at org.jboss.ws.server.WebServiceClientDeployer.setupServiceRefEnvironme
nt(WebServiceClientDeployer.java:65)
        ... 68 more
16:48:17,043 INFO  [ClientDeployer] Removing client ENC from: jbpmbpel-client
16:48:17,105 WARN  [MainDeployer] undeploy 'file:/C:/dev/jbpm-bpel-1.1.Beta3/exa
mples/hello/target/hello-client.jar' : package not deployed

Any suggestion? Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040791#4040791

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040791



More information about the jboss-user mailing list