线程“主”中的异常java.lang.ClassNotFoundException:samples.quickstart.service.pojo.StockQuoteService

时间:2019-08-22 07:02:21

标签: axis2

在使用axis2的java2wsdl抛出异常calss时出现错误,您要完成什么,我该如何解决?


 F:\soft\axis2-1.7.9\samples\quickstart\src\samples\quickstart\service\pojo 的目录

2019/08/21  16:53    <DIR>          .
2019/08/21  16:53    <DIR>          ..
2019/08/21  15:22               776 StockQuoteService.class
2018/11/16  00:01             1,251 StockQuoteService.java
               2 个文件          2,027 字节
               2 个目录 29,009,633,280 可用字节

F:\soft\axis2-1.7.9\samples\quickstart\src\samples\quickstart\service\pojo>java2wsdl.bat -cp . -cn samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl
Using AXIS2_HOME:   F:\soft\axis2-1.7.9
Using JAVA_HOME:    C:\dev\Java\jdk1.8.0_211
log4j:WARN No appenders could be found for logger (org.apache.axis2.util.Loader).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.ClassNotFoundException: samples.quickstart.service.pojo.StockQuoteService
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at org.apache.axis2.description.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:65)
        at org.apache.axis2.description.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:84)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.getSchemaTargetNamespace(Java2WSDLBuilder.java:140)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:231)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:60)
        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:47)

0 个答案:

没有答案