I am using Netbeans 6.5, jdk 1.5,
tomcat 5.5 and Axis2-1.4.1. I am trying 2 create a simple web service app.
Courtesy:
http://www.netbeans.org/kb/docs/websvc/gs-axis.html#axis_options_tomcat Only thing was that I used a top-down approach of creating a
java class file using 'Axis2 Service from WSDL'.
Everything was working fine until when I clicked on finish to create a Java file I got this exception which couldn't create the necessary java file .
--------------
init:
wsdl2java-TemperatureConverter:
Deleting directory C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\SimpleService\build\axis2
Exception in
thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:150)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: IO Error: java.io.FileNotFoundException: C:\Documents (The system cannot find the file specified)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:297)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:105)
... 2 more
Caused by: java.io.FileNotFoundException: C:\Documents (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:205)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:250)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:233)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:285)
... 3 more
Java Result: 1
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\SimpleService\nbproject\axis2-build.xml:22: C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\SimpleService\build\axis2\src not found.
BUILD FAILED (total time: 1 second)
----------------------
I also have tried doing the same thing using Eclipse
Courtesy:
http://wso2.org/library/1719#comment-3277 Followed the tutorial and all working OK until, I press the Finish button of the Code Gen Wizard to generate the WSDL file - I get the Error dialoge "java.lang.reflect.InvocationTargetException".
----------------
I have also tried to debug the plug-in
Courtesy:
http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ Somebody Please help me ASAP...javascript: x()
banghead coz I atlest need to get started 2 go for a big project.