I believe FFJCE3.0 uses Tomcat 3.2. You should get Tomcat 3.2.3 with the
latest bug fixes. You could also use Tomcat 4.0.1 which also has the fixes
as well as latest features. I don't think it would slow down the development
process if you use Forte as a debugging tool. It would work just as well
with the new jsp/servlet container. I think the hard part would be the
initial setup.

If you'd like to use an updated version of Tomcat, I'm including some
instructions on how to get the two to talk to each other. They're for
Solaris and Win32.

Justy

----
Everything in these instructions assumes JDK1.3.1_01.

Install your webapp into your tomcat server, making sure all the code you
want to debug is compiled with -g.

Start tomcat, making sure you give the proper arguments for the java runtime
to enable debugging. With tomcat 4, you can do this by setting the env var
CATALINA_OPTS appropriately:

For Win32, use the lovely shared memory debugging option:

SET
CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,
suspend=n

For more information consult the JDK tools docs for win32.

For Solaris, use the socket option:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

For more information consult the JDK tools docs for Solaris.

You can probably do this on Linux as well.

For detailed information about JPDA, the enabling technology for this
debugging method, check out this document:
http://java.sun.com/j2se/1.3/docs/guide/jpda/

Start FFJEE30. Make sure you close any existing "Project" instance you may
have in the editor.

In the FFJEE30 explorer window, mount the filesystems containing your source
code. This enables you to set breakpoints in your code. This source code
must be the code from which you compiled and deployed into
your tomcat instance, above.

Go to Debug->Attach. Change the "Debugger Type" to Default Debugger(JPDA).

Win32

make the "Connector" be SharedMemoryAttach.

In the "name" field, fill in the value of the "address" param to your tomcat
JVM invocation, above we use jdbconn.

Solaris

make the "Connector" be SocketAttach.

Make sure the Host is correct, and make sure the port matches the value of
the "address" param for your tomcat JVM invocation, above we use 8000.

Set breakpoints in your code in FFJ, then take the necessary action to make
your code get executed. Now you can do all you want to do in a debugger.
----


----- Original Message -----
From: "Dirk Versavel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 2:19 AM
Subject: Re: <jsp:include> and relative path for included file


> Thanks for your answer!
>
> Which version of tomcat do you advice me to use then instead of the tomcat
> 3.2 which comes with Forte For Java 3.0 CE?
>
> Is there an easy way to upgrade the, in Forte integrated, tomcat engine?
>
> Currently, I'm quite happy with Forte for Java 3.0 CE as a development
> environment for JSP/servlet applications and the way tomcat is integrated
> makes developing and testing very productive.  I think that using an
> external tomcat 4.0 or so will make the development process much slower.
>
> Dirk
>
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of horwat
> Sent: dinsdag 13 november 2001 23:19
> To: [EMAIL PROTECTED]
> Subject: Re: <jsp:include> and relative path for included file
>
>
> This was a bug fixed in a later version of Tomcat. I would upgrade your
> Tomcat version.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2193
>
> You can use your own version of Tomcat with Forte by attaching it to the
> running VM of your Tomcat installation.
>
>
> Justy
>
> ----- Original Message -----
> From: "Dirk Versavel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 13, 2001 12:11 PM
> Subject: <jsp:include> and relative path for included file
>
>
> > Dear,
> >
> > I'm developing a jsp/servlet based web application and I'm trying to
> include
> > a piece of jsp using the jsp:include tag.
> >
> > It works find if the included file is in the same directory as the
> including
> > file: e.g. <jsp:include page="footer.jsp" flush="true"/>
> >
> > It works also find if the included file is referenced absolutely (i.e.
> > relative to the context root): e.g. <jsp:include
page="/myapp/footer.jsp"
> > flush="true"/>
> >
> > It does NOT work if the included file is referenced relatively and if it
> is
> > another directory:e.g. <jsp:include page="../footer.jsp"
flush="true"/>!!
> >
> > When executing the page I get an 'Internal Servlet Error',
> > 'org.apache.jasper.JasperException: Unable to compile class for JSP'.
> >
> > I'm using Tomcat 3.2 (as included in SUN's Forte for Java CE 3.0 on
RedHat
> > Linux 6.2).
> >
> > Any help is appreciated!
> >
> > Dirk Versavel
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to