NamingExceptionthen first print the class name and message of this
NamingException, followed by the text ". The stack trace of the root exception is: ", followed by the stack trace of the exception which caused this exception.
If there is no root exception associated with this
NamingException then print the stack trace of this
The output from this goes to