I am working with an EJB session bean and call a method on a java class to authenticate a user in LDAP. If there is an error I thorw a new RemoteExcpetion("Error Authenticating.")
For the fron-end I am using Struts and catch the RemoteException. When I try to print the error message with
System.out.println("Error Msg is : "+re.getMessage());
I see this:
Error Authenticating; nested exception is: java.rmi.RemoteException: Error Authenticating
why is it nesting the exception??
I am running JBoss 3.0.1 version.