Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » exception: java.lang.reflect.InvocationTargetException
exception: java.lang.reflect.InvocationTargetException [message #171073] Mon, 12 June 2006 17:24 Go to next message
Eclipse UserFriend
Originally posted by: eclipseSubscribers.healthright.com

All,
exception: java.lang.reflect.InvocationTargetException

I get the above error when I try to call a method in a web service. I use
the bottom up method to make a web service out of the java class Ding.
My web service has 3 methods. Two of them are implemented locally. The third
one calls into a jar file which in the the same eclipse v3.1 project.
I get this exception only when I call the method inside the jar file.
When I run call the class Ding from a java file with a main inside it all
three methods work fine.

I guess that when my class Ding is depoyed to the web service environment
the jar file somehow doesnt get deployed or the link for find the jar file
is not created in the web service.

Any ideas on how to resolve this would be appreciated.

Thanks and regards,
Eshr
Re: exception: java.lang.reflect.InvocationTargetException [message #171837 is a reply to message #171073] Wed, 21 June 2006 14:53 Go to previous message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
Eshr,
if the classes your third method uses are in a standalone jar, copy the jar into
your Web project's web-inf/lib directory. If the classes your third method uses
are in another Java project, open properties on your Web project and use the
J2EE Module Dependencies page to select the Java project for inclusion (as a
jar) in the deployed WAR.

Cheers - CB.

eshr wrote:

> All,
> exception: java.lang.reflect.InvocationTargetException
>
> I get the above error when I try to call a method in a web service. I use
> the bottom up method to make a web service out of the java class Ding.
> My web service has 3 methods. Two of them are implemented locally. The third
> one calls into a jar file which in the the same eclipse v3.1 project.
> I get this exception only when I call the method inside the jar file.
> When I run call the class Ding from a java file with a main inside it all
> three methods work fine.
>
> I guess that when my class Ding is depoyed to the web service environment
> the jar file somehow doesnt get deployed or the link for find the jar file
> is not created in the web service.
>
> Any ideas on how to resolve this would be appreciated.
>
> Thanks and regards,
> Eshr
Previous Topic:AXIS 2
Next Topic:RE: publishing dataset via a web service
Goto Forum:
  


Current Time: Thu Apr 18 03:05:35 GMT 2024

Powered by FUDForum. Page generated in 0.02508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top