我已按照教程中的步骤创建 Web 服务。
一切正常,但没有生成 WSDL 文件!
我有一个动态 WebProject,我在其中创建了 Webservice.... 没有错误,但没有生成 wsdl 文件
之后我也无法使用 Eclipse 的axis2 codegen 插件生成wsdl 文件。我不断收到错误class not found exception
我的axis2 tomcat安装似乎工作正常 - 请参阅下面我的axis2幸福页面......
我已经在 Stack Overflow 中尝试了所有建议的解决方案,但没有成功!
我还能尝试什么让这个工作......
我的配置是:
面向 Web 开发人员的 Eclipse Java EE IDE。
版本:Juno 发布版本
ID:20120614-1722
Fedora 17x64
AXIS2 1.6.2
Tomcat 7
AXIS2 安装似乎很顺利:
Axis2 Happiness Page
Examining webapp configuration
Essential Components
Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
at /home/pk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWebService/WEB-INF/lib/axis2-transport-http-1.6.2.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
at /home/pk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWebService/WEB-INF/lib/commons-logging-1.1.1.jar
Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
at an unknown location
Found Streaming API for XML implementation (org.codehaus.stax2.XMLStreamWriter2)
at /home/pk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWebService/WEB-INF/lib/wstx-asl-3.2.9.jar
The core axis2 libraries are present.
Note: Even if everything this page probes for is present, there is no guarantee your Axis Service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient
Examining Version Service
Found Axis2 default Version service and Axis2 is working properly.
Now you can drop a service archive in axis2/WEB-INF/services. Following output was produced while invoking Axis2 version service
Hi - the Axis2 version is 1.6.2
Examining Application Server
Servlet version 3.0
Platform Apache Tomcat/7.0.12
Examining System Properties
java.runtime.name OpenJDK Runtime Environment
sun.boot.library.path /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/amd64
java.vm.version 23.2-b09
shared.loader
java.vm.vendor Oracle Corporation
java.vendor.url http: //java.oracle.com/
path.separator :
java.vm.name OpenJDK 64-Bit Server VM
tomcat.util.buf.StringCache.byte.enabled true
file.encoding.pkg sun.io
user.country DE
sun.java.launcher SUN_STANDARD
sun.os.patch.level unknown
java.vm.specification.name Java Virtual Machine Specification
user.dir /home/pk/Documents
java.runtime.version 1.7.0_06-icedtea-mockbuild_2012_08_31_14_28-b00
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.endorsed.dirs /home/pk/Tomcat70/endorsed
os.arch amd64
java.io.tmpdir /tmp
line.separator
java.vm.specification.vendor Oracle Corporation
java.naming.factory.url.pkgs org.apache.naming
os.name Linux
sun.jnu.encoding UTF-8
java.library.path /usr/java/packages/lib/amd64: /usr/lib64: /lib64: /lib: /usr/lib
tomcat.util.scan.DefaultJarScanner.jarsToSkip bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,commons-beanutils*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-logging*.jar,commons-pool*.jar,ant.jar,jmx.jar,jmx-tools.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,dnsns.jar,ldapsec.jar,localedata.jar,sunjce_provider.jar,sunpkcs11.jar,tools.jar,apple_provider.jar,AppleScriptEngine.jar,CoreAudio.jar,dns_sd.jar,j3daudio.jar,j3dcore.jar,j3dutils.jar,jai_core.jar,jai_codec.jar,mlibwrapper_jai.jar,MRJToolkit.jar,vecmath.jar
java.specification.name Java Platform API Specification
java.class.version 51.0
sun.management.compiler HotSpot 64-Bit Tiered Compilers
os.version 3.5.3-1.fc17.x86_64
user.home /home/pk
user.timezone Europe/Vienna
catalina.useNaming true
java.awt.printerjob sun.print.PSPrinterJob
java.specification.version 1.7
file.encoding UTF-8
catalina.home /home/pk/Tomcat70
user.name pk
java.class.path /home/pk/Tomcat70/bin/bootstrap.jar: /home/pk/Tomcat70/bin/tomcat-juli.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/lib/tools.jar
java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
package.definition sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
java.vm.specification.version 1.7
sun.arch.data.model 64
java.home /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre
sun.java.command org.apache.catalina.startup.Bootstrap start
java.specification.vendor Oracle Corporation
user.language de
awt.toolkit sun.awt.X11.XToolkit
java.vm.info mixed mode
java.version 1.7.0_06-icedtea
java.ext.dirs /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/ext: /usr/java/packages/lib/ext
sun.boot.class.path /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/resources.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/rt.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/sunrsasign.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/jsse.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/jce.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/charsets.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/netx.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/plugin.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/rhino.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/lib/jfr.jar: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/classes
java.vendor Oracle Corporation
server.loader
catalina.base /home/pk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
file.separator /
java.vendor.url.bug http: //bugreport.sun.com/bugreport/
common.loader ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
sun.cpu.endian little
sun.io.unicode.encoding UnicodeLittle
wtp.deploy /home/pk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
package.access sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
sun.cpu.isalist