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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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: 915

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: 915

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileNotFoundException in Eclipse when creating a webservice
 
Similar Threads
Error while generatting webservice client
The server does not support version 2.0 of the Unknown module specification
Help...
Error occured when creating web service - IWAB0014E Unexpected exception occured
Error generating client stubs using eclipse