Hi!!

I really really really need help on this...

I have a client application which calls a webservice, which in turn
calls a class (packaged in a jar file in the class path and in
WEB-INF/lib) which in turn calls an EJB and returns a string value.

1. The EJB-Client and the EJB work fine
2. The WS Client calls the WS with no problems
3. The class in the jar file is instantiated without any errors
4. Though when I try and call a method (of the ejb client) in the WS I  
get the following error :  java.lang.reflect.InvocationTargetException

i have included the code both for the working and not-working WS

WS Code (which return the error)
--------------------------------
package org.hope;

import org.acme.HelloWorldClient;
public class HelloWorldService {
        public String getMessage(String str){
                HelloWorldClient z = new HelloWorldClient();
                System.out.println("Yikes!");
                return z.getString("a");
        }
}

Though this works fine:
----------------------
package org.hope;

import org.acme.HelloWorldClient;
public class HelloWorldService {
        public String getMessage(String str){
                HelloWorldClient z = new HelloWorldClient();
                System.out.println("Yikes!");
                return "a";
        }
}






Reply via email to