I am getting the following error when trying to get a Service instance in a 
remote client to an example Web service I have deployed to JBoss 4.0.4GA:

java.lang.NoSuchMethodError: 
com.ibm.wsdl.xml.WSDLReaderImpl.setEntityResolver(Lorg/xml/sax/EntityResolver;)V

Here is my client code:
------------------------------------------------------------------------------
String urlstr   = "http://bldl99m4596:8090/TestJBossWS?wsdl";;    
System.out.println("Contacting webservice at " + urlstr);
URL url =  new URL(urlstr);
QName qname = new QName("http://org.jboss.ws/samples/jsr181pojo/";,
                                                "TestService");

ServiceFactory factory = ServiceFactory.newInstance();
Service        service = factory.createService(url, qname);

------------------------------------------------------------------------------

And the stack:

Exception in thread "main" java.lang.NoSuchMethodError: 
com.ibm.wsdl.xml.WSDLReaderImpl.setEntityResolver(Lorg/xml/sax/EntityResolver;)V
        at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:142)
        at 
org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
        at 
org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106)
        at 
org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:78)
        at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
        at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
        at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
        at testws.TestClient.getEndPoint(TestClient.java:54)
        at testws.TestClient.main(TestClient.java:37)

I assume I have the wrong version of some jar, any help would be appreciated.

Rick Holland


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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to