Re: Running RMI client in Tomcat 7 got ClassNotFoundException

2013-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 6/17/13 11:10 PM, William Kang wrote: > I got the following error by submitting the code from RMI client to > RMI server: java.rmi.ServerException: RemoteException occurred in > server thread; nested exception is: java.rmi.UnmarshalExcep

Re: Running RMI client in Tomcat 7 got ClassNotFoundException

2013-06-18 Thread Mark Thomas
On 18/06/2013 04:10, William Kang wrote: > I DID NOT set up the security manager in the code, I assume that Tomcat > will use its own. > //if (System.getSecurityManager() == null) { > // System.setSecurityManager(new SecurityManager()); > //} Only if you start Tomcat with a security manager.

Running RMI client in Tomcat 7 got ClassNotFoundException

2013-06-17 Thread William Kang
; in Tomcat 7 or how RMI server can find the codebase? Everything works fine before puting in Tomcat. Can anybody help? The post is listed here: http://stackoverflow.com/questions/17114804/running-rmi-client-in-tomcat-7-got-classnotfoundexception Many thanks. William