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 Help deploying simple web service using Axis/Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help deploying simple web service using Axis/Tomcat" Watch "Help deploying simple web service using Axis/Tomcat" New topic
Author

Help deploying simple web service using Axis/Tomcat

Dan Harabox
Greenhorn

Joined: Nov 16, 2003
Posts: 7
Hi,

I'm very new to webservices and axis in general and I'm having a horrible time getting Axis to work correctly.

Some background:
I'm basically trying to deploy a simple web service over RPC. The service is supposed to query a DB and return some values encapsulated in simple java objects.
I have two complex types I am using: BasicChannel and ContentItem.
Both are composed only of Java primitives and string objects and contain nothing except accessor methods.

The Problem
I am able to successfully generate client stubs using WSDL2Java, however, when I try to call the webservice I get an InvocationTargetException. It's driving me nuts as I've achieved some limited success in the past but each time I add a little more complexity the entire thing falls over and I am back to square one.
Below is the code I am using, including the WSDD to deploy my service.
Any help would be wonderful. I'm afraid I will lose my mind soon

ContentProvider.java (my Webservice, with implementation highlights)




BasicChannel.java (minus method implementations)


ContentItem.java (again, minus implementations)


the error!

[Balaji]Edited to place the error message at the end.

[ August 27, 2004: Message edited by: Balaji Loganathan ]
[ August 27, 2004: Message edited by: Balaji Loganathan ]
Dan Harabox
Greenhorn

Joined: Nov 16, 2003
Posts: 7
*sigh*
I wish this board had a preview function. I posted my wsdd twice instead of the exception I was getting:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help deploying simple web service using Axis/Tomcat