File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Unable to Deploy a web service on WAS 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Unable to Deploy a web service on WAS 5.0" Watch "Unable to Deploy a web service on WAS 5.0" New topic
Author

Unable to Deploy a web service on WAS 5.0

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I have converted a simple 'hello world' java bean into a web service using WSAD 5.1.2. It has created a seperate ear-war projects for both server and client and I am able to access the web service from the sample web client generated by WSAD 5.1.2.

Now, before deploying this ear files in WAS 5.0 I want to make use of Apache AXIS jar files so that at the end I can deploy these ear web services successfully on both WAS 4.0 and WAS 5.0 and I dont want to rely on the soap implementations provided by each of these server versions as they can be different. So I have manually placed all the axis(axis-1_2RC1) jar files in each(client and server web applications) of web applications lib directory and exported them as ear files using WSAD and deployed these two ear files in WAS 5.0.

Now if I try access the web service using the url http://localhost:9080/HelloWorldWebServiceClientWeb/sample/HelloWorldBeanProxy/TestClient.jsp then I am getting numerous exceptions like "Error 404: File not found: services/HelloWorldBean" and "Failed to load servlet: java.lang.ClassCastException: helloworld.HelloWorldBean" etc.

Do I need to do anything other than making all the axis's jars available in web applications lib directory before I export ear files from WSAD to test the web service on WAS 5.0 ?

Please guide me friends ...




Thanks & Regards,
Kumar.


RR Kumaran
SCJP 1.4
Dharamvir (DV) Punia
Ranch Hand

Joined: Oct 04, 2004
Posts: 34
Hi,
I had similar issues when deplying on WAS because I was trying to use axis classe and it was not able to read the proper class from axis jar file, so what i did was , I dropped all the similar files which I used in wsad into "d:/Websphere/appserver/lib" and restarted the app, it worked fine for me.

-DV
 
 
subject: Unable to Deploy a web service on WAS 5.0
 
Threads others viewed
Web Services Support in WAS 4.0
Problem may be with saaj.jar and AXIS,WAS,WSAD
Problem may be with saaj.jar and AXIS,WAS,WSAD
Problem with Setting up Jakarta Logging with AXIS
Unable to Deploy a web service on WAS 5.0
IntelliJ Java IDE