Pranav Gangani

Greenhorn
+ Follow
since Jul 08, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pranav Gangani

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.
9 years ago
But what about this. I have two classes .
My BeerSelect class is in C:\MyProjects\beerV1\src\com\example\web.
Whereas BeerExpert class is in C:\MyProjects\beerV1\src\com\example\model.
Then too I get the same import error when I import BeerExpert in BeerSelect.
Compiler says "no such directory exists".


10 years ago
Hello guys. I passed my SCJP 1.5 with just 63% last week. Now I am studying for SCWCD. Is it worth studying for SCWCD when I just got 63% in SCJP? Shall I move on or dig again with SCJP? I am a looking for a job in Web Develpoment.
10 years ago
Hi. I am getting a compile error in class B.
I am using a normal import and then too I am getting an error even for this small piece of code.
But when I import java api classes it compiles fine.
I am using EditPlus v2.11
Would you PLEASE help me out ASAP.


//Class A



//Class B


---------- Compile ----------
B.java:1: '.' expected
import A;
^
1 error

Output completed (0 sec consumed) - Normal Termination
10 years ago
Hello to all JAVA PPL. I am a java beginner. I studied for SCJP 1.5 for 2 months. I passed with jus 63% yesterday. Is it worth it?
10 years ago