Reading of the "conf/web.xml" go turned off for Tomcat 3.2.x, though the file is still present. You should add the XML below to the "WEB-INF/web.xml" for the webapps you want to debug.
Cheers, Larry > -----Original Message----- > From: Bruce Dahms [mailto:bdahms@;netscape.net] > Sent: Thursday, November 14, 2002 4:28 PM > To: [EMAIL PROTECTED] > Subject: Debugging JSPs using Tomcat 3.2.3 and NetBeans 3.3.2 > > > I'm using NetBeans 3.3.2 with an EXTERNAL instance of Tomcat > 3.2.3. I'm > trying to configure Tomcat so I can watch JSP variables and > expressions. > Here is how I'm starting Tomcat: > > start "Tomcat 3.2.3" > "C:\Java\1.3.0_02\bin\java" -classic -Xdebug > -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888 > -Dtomcat.home="C:\jakarta-tomcat-3.2.3" > org.apache.tomcat.startup.Tomcat > > Once Tomcat is running, I can attach to it from NetBeans via > dt_socket on > port 8888. I can then mount the compiled servlet in NetBeans, set > a breakpoint, and execute up to that breakpoint. What I cannot do is > watch variables or expressions. If I specify a variable to watch, > NetBeans tells me the "Identifier cannot be resolved." > > At the top of the variables list in the NetBeans debugger window is > the message "source compiled without -g option." This leads me to > believe Tomcat isn't creating the servlet with the required > debugging information. I enabled the "classdebuginfo" parameter in > Tomcat's WEB.XML, but this seems to have no effect. Here's > an excerpt: > > <servlet> > <servlet-name>jsp</servlet-name> > <servlet-class>org.apache.jasper.runtime.JspServlet</servlet-class> > <init-param> > <param-name>classdebuginfo</param-name> > <param-value>true</param-value> > </init-param> > <load-on-startup>-2147483646</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>jsp</servlet-name> > <url-pattern>*.jsp</url-pattern> > </servlet-mapping> > > Any suggestions? The application I'm using requires Tomcat 3.2.3. I > cannot use a different version of Tomcat. > > Bruce > > > > __________________________________________________________________ > The NEW Netscape 7.0 browser is now available. Upgrade now! > http://channels.netscape.com/ns/browsers/downl> oad.jsp > > Get > your own FREE, personal Netscape Mail account > today at http://webmail.netscape.com/ > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> > > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>