I am using Jboss6.0.0. final version, when i run my jsp i am getting below error.
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
how we can handle these error.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2329
posted
0
By finding out which object that the code is trying to access is null. There should be a lengthy stack trace in one of the log files that gives you further information on where to look. In all likelihood, this has nothing to do with JBoss, and everything to do with your code.
velgapudi suresh
Ranch Hand
Joined: Aug 11, 2006
Posts: 32
posted
0
This page is running on Jboss4.2.3 when i come to jboss6.0.0 final neo getting
javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for JSP
Like Tim said, you'll have to check what object is null. The entire exception stacktrace will have some clues. Probably some scriplet code in your jsp is running into a NullPointerException
P.S: Please use a meaningful and descriptive subject for your threads.
I'm now going to close this thread too. You now have 3 threads talking of the same issue. Please continue the discussion in the other thread here http://www.coderanch.com/t/559050/JBoss/Jboss-Jsp-Struts. And please do not create multiple threads for the same issue.