[jboss-user] [JBossWS] - How to binding web service to jndi?
studyit
do-not-reply at jboss.com
Wed Feb 7 22:57:41 EST 2007
I use web service in session bean(ejb3.0) by jsr181,Packing into bean.jar,and use application-client.xml ,jboss-client.xml in client,Packing into client.jar,Together to release bean.jar and client jar to jboss4.05GA.
when testing call endpoint method,Dished out exception:
javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.ws.WSException: Cannot obtain client config: Standard Client]
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 $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at test.JNDIClient.main(JNDIClient.java:42)
Caused by: org.jboss.ws.WSException: Cannot obtain client config: Standard Client
at org.jboss.ws.metadata.ClientEndpointMetaData.getClientConfig(ClientEndpointMetaData.java:129)
at org.jboss.ws.metadata.ClientEndpointMetaData.getHandlers(ClientEndpointMetaData.java:141)
at org.jboss.ws.metadata.ClientEndpointMetaData.toString(ClientEndpointMetaData.java:183)
at java.lang.String.valueOf(String.java:2577)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.metadata.ServiceMetaData.toString(ServiceMetaData.java:422)
at java.lang.String.valueOf(String.java:2577)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:131)
at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:112)
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:181)
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)
How to solve this problem? why always suggested "Cannot obtain client config: Standard Client]",i have include "application-client.xml ","jboss-client.xml ",why??????
help me!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012806#4012806
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012806
More information about the jboss-user
mailing list