If all class files are located properly in axis/WEB-INF/classes/.... when the axis servlet starts, then one should not get an java.lang.reflect.InvocationTargetException.
If your application classes are not in the right package path or they are added after axis has started, then axis will not find them and you will get the exception.
Just a couple of days ago I posted a question as to whether this was the correct axis behavior.... I believe that axis does not behave like an application server or web server, it does not notice and load new class files dropped into its axis/WEB-INF/classes/..., so everything has to be just right when you start.
Again, this is just empirical.
Richard
Harsh Nagpal wrote:
i finally figured out why i was getting that error though i still dont know why!
my webservice was under
axis/WEB-INF/classes/org/hope/
and my class was under
axis/WEB-INF/classes/org/acme/
i redeployed my webservice so that the class and the webservice were under the same directory (and changed the package name in the webservice) and it worked!
can anyone tell me why?
harsh
On Wed, 2003-07-30 at 11:18, Harsh Nagpal wrote:
Yes... Im instantiating class "B" in webservice "A" and then invoke a method (of class "B" from webservice "A") which just returns "Hello"
when i try to do this, i get the following error:
java.lang.reflect.InvocationTargetException
harsh
On Wed, 2003-07-30 at 10:56, Yakulis, Ross (Ross) wrote:
Are you saying instantiating a class (Class B in your example) from with the implementation of the web service A, where Class B does the actuall processing for the Webservice A?
Ross
-----Original Message----- From: Harsh Nagpal [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:26 PM To: [EMAIL PROTECTED] Subject: Calling another Class from within a webservice
Can you call a another class from with a webservice??
eg
webservice "A" calls class "B" which does processing and returns value to "A"??
Harsh
