[JBossWS] - Cannot find service endpoint target
by hansOtto
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
17 years, 4 months
[JBossWS] - Unable to create connection to jUDDI registry
by lretief
I am trying to establish a connection to the JBossWS (2.0.0) jUDDI registry from a standalone JVM client.
First I tried, as per the samples, doing a:
ConnectionFactory factory = ConnectionFactory.newInstance();
to get the ConnectionFactory, but it told me that it could not create an instance of null.
So, reading the docs for ConnectionFactory, it said I should rather do a JNDI lookup, which I now successfully do as follows:
Context ctx = new InitialContext(jndiProps);
ConnectionFactory factory = (ConnectionFactory) ctx.lookup("JAXR");
I then set up all the properties as per docs and code:
String queryurl = System.getProperty("jaxr.query.url", "http://localhost:8080/juddi/inquiry");
String puburl = System.getProperty("jaxr.publish.url", "http://localhost:8080/juddi/publish");
Properties props = new Properties();
props.setProperty("javax.xml.registry.queryManagerURL", queryurl);
props.setProperty("javax.xml.registry.lifeCycleManagerURL", puburl);
String transportClass = System.getProperty("juddi.proxy.transportClass", "org.jboss.jaxr.juddi.transport.SaajTransport");
System.setProperty("juddi.proxy.transportClass", transportClass);
factory.setProperties(props);
That all works.
And now, the line that breaks it all:
Connection connection = factory.createConnection();
My exception:
[junit] java.lang.NullPointerException
[junit] at org.apache.juddi.proxy.RegistryProxy.getTransport(RegistryProxy.java:459)
[junit] at org.apache.juddi.proxy.RegistryProxy.init(RegistryProxy.java:189)
[junit] at org.apache.juddi.proxy.RegistryProxy.(RegistryProxy.java:125)
[junit] at org.apache.ws.scout.registry.ConnectionImpl.(ConnectionImpl.java:59)
[junit] at org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:86)
Any help much appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077337#4077337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077337
17 years, 4 months