> Javier,

> Where I have to put the class? I putted it into
> [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more
> clear please!?!

> Thanks a lot!

> Fabrício

Fabricio,

The Java 1.4.2 API documentation says:

InvocationTargetException is a checked exception that wraps an exception        
         thrown by an invoked method or constructor. [...] The "target 
exception" that is provided at construction time [...] may be accessed via the 
Throwable.getCause() method.

So the JVM's class loader actually finds the classes used by the service 
implementation.
If you catch the exception and print the stack trace of its cause, you will be 
able to find what Exception was thrown by the secondary classes used by the 
service.

-----Mensagem original-----
De: Javier Gonzalez [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 16 de agosto de 2005 18:34
Para: [email protected]
Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException?

I'm not sure I'm understanding you two - calling all sorts of Java
classes is possible with axis. Are you sure you have all the needed
classes in the webapp classpath?

Does your class need special parameters for its constructor?

On 8/16/05, Fabrício <[EMAIL PROTECTED]> wrote:
> Hi Donald,
> 
> In my case, I really need to have the call to method from another class.
My
> web service is a kind of wrapper for a legacy application. And to do the
> call, it's necessary to escort stdin and stderr. And I'm doing this with
two
> threads. As:
> 
> cmd = "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs";
> process = Runtime.getRuntime().exec(cmd);
> 
> StringBuffer inBuffer = new StringBuffer();
> InputStream inStream = processo.getInputStream();
> new InputStreamHandler( inBuffer, inStream );
> 
> StringBuffer errBuffer = new StringBuffer();
> InputStream errStream = processo.getErrorStream();
> new InputStreamHandler( errBuffer , errStream );
> 
> process.waitFor();
> 
> The InputStreamHandler is another java class. I really don't know how to
> solve it without the use of these threads (another class). :'-(
> 
> --
> 
> Fabrício.
> 
> -----Mensagem original-----
> De: Chen, Donald [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 16 de agosto de 2005 16:14
> Para: [EMAIL PROTECTED]; [email protected]
> Assunto: RE: Error - java.lang.reflect.InvocationTargetException?
> 
> Yes, exactly.
> 
> The moment I let the method in the WS call another class, I got the
> problem.
> 
> Looks like we are on the same boat.
> 
> Right now, I am trying to rewrite the service provider class to avoid
> the unnecessary calling.
> 
> Also, I suspect the Tomcat is not able to find all the necessary jars to
> facilitating the call.
> 
> Let me know what's your finding?
> 
> Don
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 1:31 PM
> To: [email protected]; Chen, Donald
> Subject: Re: Error - java.lang.reflect.InvocationTargetException?
> 
> Hi,
> 
> I'm having the same problem and in my case is because my web service
> needs to
> call a method from a common java class. I need to do this, but I think
> that
> isn't possible in Axis. Does your web service has a method call to
> another
> class to?
> 
> --
> 
> Fabricio.
> 
> 
> Citando "Chen, Donald" <[EMAIL PROTECTED]>:
> 
> > Hi, there.
> >
> > I got a "Error - java.lang.reflect.InvocationTargetException" complain
> > when I tried to invoke a web service.
> >
> > Any idea on how to find out what's going wrong?  And what could be the
> > reason(s)?
> >
> > Thanks.
> >
> > Don
> > PS.  Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
> >
> 
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
> 
> 
> 


-- 
Javier Gonzalez Nicolini


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005


Reply via email to