Click on JSP error to view source [message #512661] |
Fri, 05 February 2010 21:38 |
Eclipse User |
|
|
|
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] |
Mon, 08 February 2010 01:52 |
|
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 Web Tools Platform
|
|
|
|
Re: Click on JSP error to view source [message #513134 is a reply to message #512857] |
Mon, 08 February 2010 21:18 |
|
On 2/8/2010 3:20 AM, Mauro Molinari wrote:
> Il 08/02/2010 2.52, Nitin Dahyabhai ha scritto:
>> Enhancement request, although one I'm not sure we can address due to
>> differences between the various servers and the limitations of JSR-45.
>
> Dumb question: couldn't this task be delegated to the server provider? I
> mean: in the case of Tomcat, its integration for WTP could provide a way
> to open the associated JSP generated source code by opening it from the
> work directory. Another server provider would provide another
> appropriate mechanism for the same task, if such a mechanism exist.
Interesting idea, you'll have to file a RFE on the Server Tools for that
one.
--
Nitin Dahyabhai
Eclipse WTP Source Editing (not Server Tools)
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.02656 seconds