• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to Deploy a web service on WAS 5.0  RSS feed

 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dharamvir (DV) Punia
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!