简体   繁体   English

Web服务中的WSDL异常

[英]WSDL Exception in webservice

I created my first axis2 webservice and I got following error when I try to invoke the web service through my client which is created using stub. 我创建了我的第一个axis2 Web服务,当尝试通过使用存根创建的客户端调用Web服务时,出现以下错误。

Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
at com.test.first.TestStub.populateAxisService(TestStub.java:41)
at com.test.first.TestStub.<init>(TestStub.java:88)
at com.test.first.TestStub.<init>(TestStub.java:77)
at com.test.first.TestStub.<init>(TestStub.java:126)
at com.test.first.TestStub.<init>(TestStub.java:118)
at com.test.first.TestTest.main(TestTest.java:11)
Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Laun``cher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more

What could be the root cause for this exception? 造成此异常的根本原因是什么?

Note: I have included wsdl4j and log4j libraries. 注意:我包括了wsdl4j和log4j库。

Likely a classpath issue? 可能是类路径问题? Can't find javax.wsdl.WSDLException. 找不到javax.wsdl.WSDLException。 Ensure this is available. 确保可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM