Eclipse4.2 WTP Wizard does not create WSDL file for AXIS2-Tomcat Webservice

I followed the steps in the tutorial to create a web service.

Everything works fine, but no WSDL file is created!

I have a dynamic WebProject in which I create a Webservice .... no errors, but no wsdl file was created

I also cannot generate the wsdl aftwewards file with the 2 axis codegen pugin for Eclipse. I keep getting error class not found exception

My ax2 tomcat installation seems to be working properly - see my happiness page for axis 2 below ....

I have tried every suggested souloution from here on stackoverflow, but to no avail!

What else can I try to get this to work .....

my configuration:

Eclipse Java EE IDE for web developers. Version: Juno Release Build ID: 20120614-1722

Fedora 17x64 AXIS2 1.6.2 Tomcat 7

Installing AXIS2 looks simple:

 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 
+4
source share
1 answer

10 minutes ago I ran into the same problem (for hours). I have a dynamic web project and I can create a web service from the java class via the context menu. the service is deployed on my local tomcat installation (containing axis 2), but wsdl is not created.

But then I right-clicked on my project and selected "run as" → "run on server". Now it displays the Apache Software Foundation page. there is a "service" link on it. after clicking on the link, it displays the "Available Services" page with my deployed web service. then I clicked on my own deployed web service and displayed the wsdl I was looking for. The url is as follows:

 http://localhost:8080/test/services/myservice?wsdl 

"test" is my project name. Wsdl is not in my "WEB-INF / wsdl" eclipse folder (as in every tutorial I have found so far). But I can access it only at the above address.

+2
source

Source: https://habr.com/ru/post/1435739/


All Articles