Thanks, I will take a look into this.

If I have a jar, is it sufficient to drop it off in the WEB-INF/lib directory. Or do I need to configure the classpath. For some reason, it is not able to locate the jar file. The file permissions of the jar file is 777!

Is there any other settings I have to take care-of?

Thanks
Sesha
 

Mike Burati wrote:

  Try catching Throwable instead of Exception, in case it's a Throwable that's not an Exception?
-----Original Message-----
From: Sesha Nandyal [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 28, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: HELP PLEASE ..
 
Hello All,
   As a newbie I would need some help, since I am not seing any exceptions being thrown on the Server side making it difficult to debug.

The Client code, Client.java, calls the remote service, RepositoryServerProxy.java by the following statements:
         public static void main(String args[]) {
      try {
         RepositoryServerProxy proxy = new RepositoryServerProxyServiceLocator().getRepositoryServerProxy();
         String result = proxy.getQueryResultset();
         System.out.println("result: " + result);
      } catch(Exception e) {
         System.out.println(e);
      }
   }

On the server side, the RepositoryServerProxySoapBindingImpl.java (which implements the RepositoryServerProxy.java) calls the RepositoryServer.java  by the following statements:

public java.lang.String getQueryResultset() throws java.rmi.RemoteException {
   String err = null;
   try {
System.out.println("Creating RepositoryServer object!! ");
       RepositoryServer server = new RepositoryServer();
System.out.println("Created RepositoryServer object ..");
        return server.getQueryResultset();
   } catch(Exception e) {
System.out.println(e);
       e.printStackTrace();
        err =  e.toString();
   }
      return err;
   }

In catalina.out, I see the first debug statement being printed (Creating RepositoryServer object!!), however neither the second debug nor exception is printed in any of the logs (catalina.out or localhost_logs). One thought is that, it cannot access the RepositoryServer class.

The RepositoryServer class is in test.impl package and is jared up. The jar is located in WEB-INF/lib directory. The RepositoryServerProxySoapBindingImpl is in test.server package and the class was dropped in WEB-INF/classes/test/server directory. Am I doing anything wrong here?

On the client side I get the following error;
java.lang.reflect.InvocationTargetException

Any help would be highly appreciated.

Sesha

Reply via email to