Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.lang.LinkageError with JAX-RPC dynamic proxy

843834Jul 19 2003 — edited Jul 21 2003
Having 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2003
Added on Jul 19 2003
1 comment
151 views