[jboss-user] [Installation, Configuration & Deployment] - Error creating client Service

mdhuyn do-not-reply at jboss.com
Mon Aug 14 15:12:10 EDT 2006


Hi, I'm using the tutorial to create a client accessing a web service. The end point seemed to deploy fine, but when I run a client JUnit test, I get the error:
    Cannot get resource: META-INF/standard-jbossws-client-config.xml

I also don't understand why it's trying to get standard-jbossws-client-config.xml. Shouldn't it use jboss-client.xml ?

Client code:

InitialContext iniCtx = getInitialContext();
Error => service = (Service)iniCtx.lookup("java:comp/env/service/TestServices");

Trace:

javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.ws.WSException: Cannot get resource: META-INF/standard-jbossws-client-config.xml]
	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
	at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
	at $Proxy0.lookup(Unknown Source)
	at javax.naming.InitialContext.lookup(InitialContext.java:351)  
...
Caused by: org.jboss.ws.WSException: Cannot get resource: META-INF/standard-jbossws-client-config.xml
	at org.jboss.ws.metadata.ClientEndpointMetaData.getClientConfig(ClientEndpointMetaData.java:87)
	at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:185)
	at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:122)
	at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:112)
	at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:182)
	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
	at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
	... 15 more



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

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



More information about the jboss-user mailing list