Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException in Eclipse when creating a webservice

 
salvin francis
Bartender
Posts: 1263
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
1.png
screen1
[Thumbnail for 1.png]
2.png
screen2
[Thumbnail for 2.png]
3.png
screen3
[Thumbnail for 3.png]
 
Amit ChaudhariC
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set Axis home in eclipse ?
Also add the needed jars in the classpath and it should work.

Regards,
Amit
 
salvin francis
Bartender
Posts: 1263
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jasi Ambalangadan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic