aspose file tools*
The moose likes Web Services and the fly likes Error occurs  when creating  WSDL file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error occurs  when creating  WSDL file" Watch "Error occurs  when creating  WSDL file" New topic

Error occurs when creating WSDL file

Vid Srini
Ranch Hand

Joined: Aug 17, 2006
Posts: 35
Using objectweb Lomboz plugin,I created a new Dynamic Web Project called webserviceTest.Under this project,a new java class is created with public methods.It got compiled.

Next step,I created a new XML webservice through the wizard in Eclipse.When wsdl file is generated for webServiceTest,I get the below error.

schema_reference.4: Failed to read schema document '', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Sample1.wsdl(Sample1 is the java class)
folder structure - webserviceTest/WebContent/wsdl

My doubt is whether do I need to add any specific jar files.

I included xerces.jar,activation.jar,soap.jar...

Can any one help me out to solve this pbm

Thanks a lot in advance,
Vid Srini
Ranch Hand

Joined: Aug 17, 2006
Posts: 35
Hi all,

Pls help me out to solve this problem.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12671

Appears to be an invalid URL - at least my browser does not retrieve anything there.
If this was my problem I would carefully examine the WSDL file produced.

That error clearly does not have anything to do with missing JAR files.

Where are you attempting to deploy the service?

More information on versions might also help - Eclipse version, Java sdk version, operating system, etc.


Java Resources at
Vid Srini
Ranch Hand

Joined: Aug 17, 2006
Posts: 35
Hi William,

Sorry for the delay reply....

I created a java class with a method called hello() which returns a string.

Then I created a java proxy with bottom up web service.When i deploy this in Tomcat,I get error in WSDL file creation.

Version I use are JDK 1.5,Eclipse 3.1,Tomcat 5.0...Along with this,I used LomBoz Plugin.

Any suggestions wil be helpul for me.
I agree. Here's the link:
subject: Error occurs when creating WSDL file
Similar Threads
compiling a non packaged class
NetBeans Web Service client attempt
message /.jsp not found in JSF2.0+RichFaces3.3.3+Tomcat6.0.29
Compiling a java code having different file name and class name
Run the .jar file