[opencms-dev] Remote debugging OpenCms with Eclipse

Chris christian.weber at nionex.net
Fri Jan 19 12:59:12 CET 2007


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/elements/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




More information about the opencms-dev mailing list