[opencms-dev] Remote debugging OpenCms with Eclipse

Gianluca Cassina gcassina at etnoteam.it
Fri Jan 19 09:52:11 CET 2007


Hi all,

I use Eclipse with wst, and I solved source duplication problems with a jsp
source folder that's linked to the jsp directory:
/opencms/WebContent/WEB-INF/jsp is a linked folder to
C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ope
ncms\WEB-INF\jsp
Where the Tomcat dir is the one inside my workspace (in my server
configuration I set "Run modules directly from the workspace)

You need to access jsp, before being able to read them, because they are
generated "on the fly", but then you can set breakpoint and step through,

Gianluca

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Martin Hoeller
Sent: venerdì 19 gennaio 2007 9.33
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Remote debugging OpenCms with Eclipse

Hi again!

> > 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 had this working... somehow. As my eclipse workspace and my VFS were
> not synchronized it happened, that the source code and the actually
> executing code drifted some lines apart, but basically it worked.
>
> However, I just tried to reproduce it and I'm not able to :( Na matter
> what I choose to be the source folder Eclipse (3.2.1 BTW) doesn't find
> the source. The only thing I can definitely say is that I didn't specify
> any special folder for this to work. Eclipse just found it.

I can reproduce it now: I have to put the JSPs under 
<eclipse-workspace>/<project>/WebContent/WEB-INF/jsp/offline/sites/defaults/
<jsp-name>

Still not happy with this, as I definitely don't want to maintain the JSPs 
on two different locations.

Let me know if you find out anything new.

- martin
-- 
    mailto:martin.hoeller at xss.co.at  |
http://stud3.tuwien.ac.at/~e9926483  |  Make it idiot proof and someone
                       icq:45563199  |  will build a better idiot.





More information about the opencms-dev mailing list