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