[jboss-user] [JBossWS] - Cannot find service endpoint target

hansOtto do-not-reply at jboss.com
Thu Aug 23 11:35:28 EDT 2007


I have deployed several Webservices as EJB endpoints successfully on the JBoss 4.2.1 with JBossWS 1.2.1. There are many SLSBs inside the Webservices, injected by the @EJB annotation and build as local deployment.
Now, after upgrading from JBossWS 1.2.1 to JBossWS 2.0.0, I get the following error during the EAR deployment:

14:01:25,984 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/v1, warUrl=.../tmp/deploy/deploy.last-webservices.ear-webservices_ejb3.jar5109.war/
  | 14:01:26,578 INFO  [org.jboss.wsf.stack.jbws.WSDLFilePublisher] WSDL published to: file:/C:/jboss_4.2.1_WS/server/default/data/wsdl/deploy.last/webservices.ear/webservices_ejb3.jar/TestService5107.wsdl
  | 14:01:26,875 INFO  [org.jboss.wsf.spi.management.BasicEndpointRegistry] register: jboss.ws:context=v1,endpoint=TestService
  | 14:03:09,734 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss_4.2.1_WS/server/default/tmp/deploy/tmp5106webservices.ear-contents/webservices_ejb3.jar
  | javax.xml.ws.WebServiceException: Cannot find service endpoint target: jboss.j2ee:name=TestService,service=EJB3,jar=webservices_ejb3.jar,ear=webservices.ear
  |         at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.start(InvocationHandlerEJB3.java:78)
  |         at org.jboss.wsf.spi.deployment.BasicLifecycleHandler.start(BasicLifecycleHandler.java:57)
  |         at org.jboss.wsf.stack.jbws.LifecycleHandlerImpl.start(LifecycleHandlerImpl.java:40)
  |         at org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer.start(EndpointLifecycleDeployer.java:49)
  |         at org.jboss.wsf.spi.deployment.BasicDeployerManager.deploy(BasicDeployerManager.java:81)
  |         at org.jboss.wsf.container.jboss42.MainDeployerHook.deploy(MainDeployerHook.java:46)
  |         at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
  |         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
  |         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy32.start(Unknown Source)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |         at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
  |         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:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

I tried to debug the deployment process and noticed that the error occurred in line 77 of the InvocationHandlerEJB3:
if (dispatcher.getRegistered(objectName.getCanonicalName()) ==null)
  |     throw new WebServiceException("Cannot find service endpoint target: " + objectName);
  | 
The problem is, that the dispatcher wants to invoke the webservice project before it is registered. At this point, the dispatcher has all deployed projects registered except the webservice project.

If I remove all SLSB with the @EJB injections from the Webservices, the deployment runs successfully.

Has anybody an idea?

Harry


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

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



More information about the jboss-user mailing list