• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

FileNotFoundException in Eclipse when creating a webservice

 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for 1.png]
screen1
2.png
[Thumbnail for 2.png]
screen2
3.png
[Thumbnail for 3.png]
screen3
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic