• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Unable to Deploy a web service on WAS 5.0

 
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.
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was my understanding that in order to deploy a web service using axis, you needed to install it. This goes a bit beyond putting it's jar files in the lib directory of the applications. Speaking from a tomcat perspective, axis deploys as a separate WAR file. Then in order to publish a web service using axis, you need to make your classes and jars available to the axis application and modify some configs (there's more than one way to do this).

My suggestion (and it may be a bad one) is to create a .war file called axis and import the axis stuff into it. Deploy the .war file using the admin console for WebSphere. Then push you web services to the axis app.

Go here for installation instructions. Of course, this is for tomcat but you'll have to be intuitive to figure out what to do as far a WAS is concerned.
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I got an fix to my problem. Instead of relying on WSAD's WebSphere 5.0 runtime environment for developing web services I used WSAD's AXIS runtime environment and without any changes I am able to deploy in standalone WAS 5.0

Thank you all anyway,
Kumar.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!