Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Click on JSP error to view source
Click on JSP error to view source [message #512661] Fri, 05 February 2010 21:38 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Re: Click on JSP error to view source [message #512857 is a reply to message #512817] Mon, 08 February 2010 08:20 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 285
Registered: July 2009
Senior Member
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.

Mauro.
Re: Click on JSP error to view source [message #513134 is a reply to message #512857] Mon, 08 February 2010 21:18 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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
Re: Click on JSP error to view source [message #513242 is a reply to message #513134] Tue, 09 February 2010 13:31 Go to previous message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 285
Registered: July 2009
Senior Member
Il 09/02/2010 3.14, Nitin Dahyabhai ha scritto:
> Interesting idea, you'll have to file a RFE on the Server Tools for that
> one.

Thanks, I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=302265

Mauro.
Previous Topic:How to provide schema for naked xml?
Next Topic:jUDDI users
Goto Forum:
  


Current Time: Thu Apr 25 06:58:52 GMT 2024

Powered by FUDForum. Page generated in 0.02656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top