tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: JSP compilation / debug problem
Date Fri, 15 Sep 2000 03:01:00 GMT

Could you maybe use a soft link to the <context_dir> from somewhere else and
call it 'jsp'.

     ln -s ${TOMCAT_HOME}/work/<context_dir> ${SOMEWHERE_ELSE}/jsp

Then point JBuilder at ${SOMEWHERE_ELSE}.

I have tried to get into using JBuilder 3.5 Foundation afew times, but having
the .jpr files set up correctly always bothers me. It doesn't seem to compile
things even when you change them (unless you specfically add every java source
file to your project - the add package thing just doesn't seem to work
properly). Also, I don't know how to set up Tomcat for use from JBuilder 'cause
I've never got that far! I have a link to an article on that subject though:,1410,22057,00.html

Could you shed some light on my JBuilder woes?


Steve. on 15/09/2000 08:35:46

Please respond to
 cc:      (bcc: Steven Shaw/Net)                              
 Subject: JSP compilation / debug problem                     

I just started using Tomcat and have run into something that should not
be hard to improve, and will make it alot easier to debug JSPs in Tomcat
with an IDE, specifically JBuilder in my case, but I imagine this
applies across the board.

Tomcat seems to drop all the generated .java files from .jsp's into the
${TOMCAT_HOME}/work/<context_dir>.  The problem is, my jsp's are
arranged hierarchically in subdirectories, the top one of which is
jsp/.  When I try to set up JBuilder I can set a breakpoint in the
generated .java file for a jsp, it cannot find the .java file associated
with a .class file generated for the jsp because the package name of the
.java file is set correctly by Tomcat as "package jsp;" in this
instance, but the .class and .java files are not in the jsp/ directory.
Instead, they're in the top level directory...

So, after the .java and .class files were generated, I copied them by
hand to the


...and it worked.

Not too hard for this situation, but I happen to have a bunch of
subdirectories under jsp/ and it will be a real pain to do this
correctly each time I rerun Tomcat.

So, here's the request...

I realize it may be hard to fully implement the generation of .java and
.class files from .jsp's into the right directory structure and you may
not want to tackle the whole thing right now (although that seems to me
the right fix).  Instead, can you at least copy the generated files into
the right subdirectories when they are generated?  That would make it
easy to do source-level debugging on the generated files.


Rick Horowitz

View raw message