1 Reply Latest reply on Aug 15, 2006 12:27 PM by M H

    Error creating client Service

    M H Newbie

      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