Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help deploying simple web service using Axis/Tomcat

 
Dan Harabox
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*sigh*
I wish this board had a preview function. I posted my wsdd twice instead of the exception I was getting:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic