| Click on JSP error to view source [message #512661] |
Fri, 05 February 2010 16:38  |
|
Originally posted by: nowhere.a.com
If I do something stupid in a JSP code snippet, the console shows what the error was, and where the error occurred in the JSP file.
However the location given is actually in the application's work directory and not within the project:
Feb 5, 2010 1:21:25 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.pages.location.edit_jsp._jspService(edit_jsp. java:78)
I can go manually to the location (in this case Tomcat, the root directory would be C:\Tomcat\work\Catalina\localhost\app, so the full path to the error would be:
C:\Tomcat\work\Catalina\localhost\app\org\apache\jsp\pages\l ocation\edit_jsp.java at line 78
So a plain text editor could be opened (with line numbers). If I see the code I can then refer back to the JSP within Eclipse.
Does Eclipse provide this, or would it be an enhancement request?
--
Wojtek :-)
|
|
|
| Re: Click on JSP error to view source [message #512817 is a reply to message #512661] |
Sun, 07 February 2010 20:52   |
 |
Nitin Dahyabhai Messages: 1853 Registered: July 2009 |
Senior Member |
|
|
On 2/5/2010 4:38 PM, Wojtek wrote:
> If I do something stupid in a JSP code snippet, the console shows what the error was, and where the error occurred in the JSP file.
>
> However the location given is actually in the application's work directory and not within the project:
>
> Feb 5, 2010 1:21:25 PM org.apache.catalina.core.ApplicationDispatcher invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
> at org.apache.jsp.pages.location.edit_jsp._jspService(edit_jsp. java:78)
>
> I can go manually to the location (in this case Tomcat, the root directory would be C:\Tomcat\work\Catalina\localhost\app, so the full path to the error would be:
>
> C:\Tomcat\work\Catalina\localhost\app\org\apache\jsp\pages\l ocation\edit_jsp.java at line 78
>
> So a plain text editor could be opened (with line numbers). If I see the code I can then refer back to the JSP within Eclipse.
>
> Does Eclipse provide this, or would it be an enhancement request?
Enhancement request, although one I'm not sure we can address due to
differences between the various servers and the limitations of JSR-45.
--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
---
Nitin Dahyabhai
Eclipse WTP, IBM
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01668 seconds