aspose file tools*
The moose likes Web Services and the fly likes FileNotFoundException in Eclipse when creating a webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "FileNotFoundException in Eclipse when creating a webservice" Watch "FileNotFoundException in Eclipse when creating a webservice" New topic
Author

FileNotFoundException in Eclipse when creating a webservice

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

I am using Eclipse Version: 3.4.1

I am stuck up at creating a simple web service:

I created a test project called TestWS (File > New > Dynamic Project)
Following one online tutorial to create a web service, I created a class as:



Next, I right Clicked Hello.java > Web services > Create Web service

Type: Bottom up Java bean web service
Service implementation: com.tutorial.Hello


Upon clicking finish, i get the error:



I tried downloading the file saaj.jar and copying it to the location:

C:\eclipse_3.4\eclipse\plugins\org.apache.axis_1.4.0.v200807230600\lib

and

C:\eclipse_3.4\eclipse\plugins\org.apache.axis_1.4.0.v200905122109\lib

but i still get the same error.

There is no other folder in my eclipse plugin directory containing the word axis.



[Thumbnail for 1.png]


[Thumbnail for 2.png]


[Thumbnail for 3.png]


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Amit ChaudhariC
Ranch Hand

Joined: Aug 06, 2009
Posts: 33
Did you set Axis home in eclipse ?
Also add the needed jars in the classpath and it should work.

Regards,
Amit
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

Eclipse points to the axis installation directory:

Window > Preferences > Web Services > Axis2 Preferences > Axis2 runtime location

It even displays "Axis2 runtime loaded successfully."

The error still happens.
Amit ChaudhariC
Ranch Hand

Joined: Aug 06, 2009
Posts: 33
not sure what is causing this.
btw, you can always try using the command line option of compling , creating a aar and pushing the web service to your web server and i believe that it is much easier to use.

Regards,
Amit
Jaseemsoft Ambalangadan
Greenhorn

Joined: Oct 15, 2008
Posts: 3
Stop server and close all applications which uses java including eclipse.
Open eclipse installation folder
Go to Plugins folder.
Search javax.xml.soap_1.3.0.*
Delete the javax.xml.soap_1.3.0.*****.jar file
Now open eclipse and try with your webservice.


Regards
Jaseem Ambalangadan
Vikramjit Saha
Greenhorn

Joined: Oct 06, 2011
Posts: 2
Well this is a common problem. I am sharing the steps that worked out for me :

1) go the folder where eclipse is installed--> go to the plugins folder [\eclipse\plugins]

2) look for any jar or folder that starts with the name "javax.xml.soap_1.3.0"

3) Delete that jar / folder.

4) Restart the eclipse if it is running....

5) start your webservice
 
wood burning stoves
 
subject: FileNotFoundException in Eclipse when creating a webservice
 
Similar Threads
Help...
Error occured when creating web service - IWAB0014E Unexpected exception occured
The server does not support version 2.0 of the Unknown module specification
Error while generatting webservice client
Error generating client stubs using eclipse