• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unknown problem with Tomcat and Axis2

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody, I'm a student and I need to work on web services for one of my courses.
I've tried some examples from my teacher and some code of mine, but everytime i run the client code i receive in output exceptions like these:



I really don't undestand what's the matter.
In the specific case the WS implements an inventory service. the client asks for availability of one product by passing its code and number of items requested. The server check if the product is available (controlling a products.xml file that contains all the information) and returns the result. This in theory, while in practice I receive this messages of error.

This is the client code:


And this is the server:


This is an example of how the products.xml file is:


The project provides also two auxiliary class for creating and accessing the product elements, a service.xml file and a build file for creating the .aar file for deployment.

I really hope that someone can help me to understand where's the fault.
And off course, if you need any other information just ask me

Thank you all!!!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you see the service properly deployed? The Axis web app provides a page listing all available services.
 
Vito Czz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the service is properly deployed.
 
Vito Czz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is still present... does anyone knows how can fix it?
Can it be a problem related to ServletContext method getRealPath?
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic