蚂蚁构建问题:noclassdeffoundererror



我是Ant和这个应用程序的新手。我无法解码这个错误信息。

C:Eclipsesources_intexternal-sources>ant netstudy-generate-client
Buildfile: C:Eclipsesources_intexternal-sourcesbuild.xml
netstudy-generate-client:
   [delete] Deleting directory C:Eclipseext_sources_intexternal-sourcesbuildgenerated_classe
s
    [mkdir] Created dir: C:Eclipsesources_intexternal-sourcesbuildgenerated_classes
     [java] java.lang.NoClassDefFoundError: org/apache/cxf/tools/wsdlto/WSDLToJava
     [java] Caused by: java.lang.ClassNotFoundException: org.apache.cxf.tools.wsdlto.WSDLToJava
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java] Could not find the main class: org.apache.cxf.tools.wsdlto.WSDLToJava.  Program will exit.
     [java] Exception in thread "main"
     [java] Java Result: 1
BUILD FAILED
C:Eclipsesources_intexternal-sourcesbuild.xml:183: srcdir "C:Eclipsesources_int
external-sourcesbuildgenerated_src" does not exist!

部分ant构建正在尝试运行Java应用程序。找不到主类(包含main方法的Java类)。检查您的路径,并确保包含了包含类org.apache.cxf.tools.wsdlto.WSDLToJava的jar文件。

可能是期望在它找不到的目录中找到这个类

JBoss附带了wsconsume来生成客户端。我试图强制使用wsdltojava,但它不起作用,我也有同样的问题。所以尝试使用 wsconsume

相关内容

  • 没有找到相关文章