[opencms-dev] Remote debugging OpenCms with Eclipse

Jonathan Woods jonathan.woods at scintillance.com
Fri Jan 19 15:15:41 CET 2007


Chris -

In case you're looking at the mailing list through a threaded reader, I've
answered this in a reply to Martin -
http://www.nabble.com/Remote-debugging-OpenCms-with-Eclipse-tf3038442.html.

-----Original Message-----
From: Chris
Sent: 19 January 2007 11:59
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Remote debugging OpenCms with Eclipse

Hi Jon

I use Netbeans 5.5 with Tomcat 5.5 and JSP debugging is working. For me the
key was to store the JSP's in the appropriate path. Remember that OpenCMS
automatically exports all JSP's from the VFS to real filesystem in folder
WEB-INF/jsp/offline of your webapp (for the offline project).

So if your JSP reside in VFS under path

/system/modules/com.package.xyz/elements/template.jsp

then you should store it in your IDE project here:

/project/webfolder/WEB-INF/jsp/offline/system/modules/com.package.xyz/elemen
ts/template.jsp

Configure your IDE that it uses /project/webfolder to store JSP's.

Please let me now if this works with Eclipse. By the way this won't work
with IDEA IntelliJ.

Best regards
Chris


> I use a decent Eclipse development environment to produce OpenCms 
> apps, and I'm able to remotely debug a running OpenCms instance.  The 
> only thing missing is JSP source attachment, and I'm wondering if 
> anyone else has managed to sort this out.
>  
> I can set breakpoints in Java and JSP code and they are hit at the 
> appropriate times.  Breakpoints in Java source result in that source 
> being shown; but I can't associated JSP source with JSP breakpoints.
> In the Debug view, the stack trace shows when execution has stopped in 
> a JSP file (see attachment), and the file name and line number are 
> shown, but no matter what source folder settings I create in Eclipse, 
> the right JSP source isn't shown e.g. when I double-click the entry in 
> the Debug view stack.
>  
> I've tried putting copies of the associated JSPs, and even their 
> compiled Java counterparts, underneath various likely-looking 
> hierarchies within Eclipse source folders - but no luck.
>  
> I'm using Eclipse + J2EE/WTP, by the way, but not defining servers etc 
> that way.
>  
> Does anyone have any ideas?  I'm guessing it might be something to do 
> witih the way OpenCms causes JSPs to be compiled - e.g. the embedded 
> source file path.
>  
> Jon
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222


_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list