This content has been marked as final.
Show 1 reply
-
1. Re: create() throws NullPointerException
wolfc Jan 11, 2007 7:16 AM (in response to paras.java)Most likely the lookup in init fails. Is there an exception before the NPE?
You could change the code in init to:try { ... } catch(Exception e) { e.printStackTrace(); throw new ServletException(e); }
This should prevent a servlet to become alive after a fault.
If a NamingException is the case, you should find the correct name using JNDIView in JMX-Console.