java.lang.LinkageError with JAX-RPC dynamic proxy
843834Jul 19 2003 — edited Jul 21 2003Having worked through most of my problems with JAX-RPC using static stubs, I have decided to dive headfirst into dynamic proxies and DII. My simple deployed service and WSDL are available, but when my client code attempts to connect to it with a dynamic proxy it fails with this error:
[java] loader constraints violated when linking org/xml/sax/InputSource class
My client code is fairly simple:
ServiceFactory factory = ServiceFactory.newInstance();
QName serviceName =
new QName("http://www.mentor-communications.com/wsdl/MyNicePostageMeter", "PostageMeterService");
URL wsdlURL =
new URL("http://localhost:8080/postage/MyPostageMeter?WSDL");
//and here is where it fails...
Service service = factory.createService(wsdlURL, serviceName);
I have validated the qualified service name (from the targetNamespace of the <definitions> element of the WSDL) and the local name (the name of the <service> element. These also match the names in the configuration file used by wscompile. And, of course, the service is deployed and available. Any ideas?