jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

Question How can I ensure that Tomcat compiles servlets with debugging info included (-g option of the javac compiler)?
Derived from A question posed by will b
Topics Tools:AppServer:WebServer:Tomcat:Configuration
Author Michael Dean PREMIUM
Created Mar 23, 2002


Answer
Note: This solution applies to Tomcat 4.x.x

Inside Tomcat's default web.xml file (CATALINA_HOME/conf/web.xml) there is a servlet declaration for the "jsp" servlet (which is used to process JSP's).
If you set a servlet parameter named classdebuginfo to true, Tomcat will include debug info.

Following is Tomcat's default declaration with the classdebuginfo parameter added:


<servlet>
  <servlet-name>jsp</servlet-name>
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  <init-param>
    <param-name>classdebuginfo</param-name>
    <param-value>true</param-value>
  </init-param>
  <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
  </init-param>
  <load-on-startup>3</load-on-startup>
</servlet>


Is this item helpful?  yes  no     Previous votes   Yes: 3  No: 1



Comments and alternative answers

Comment on this FAQ entry

3.x?
Josh Twait, Mar 27, 2002
Is there a solution for tomcat 3.x releases? Our product is deployed on 3.2 currently.

Is this item helpful?  yes  no     Previous votes   Yes: 0  No: 0



Reply to this answer/comment  Help  


Ask A Question



 
Related Links

Tomcat FAQ

Tomcat Forum

Jakarta Project

Tomcat Documentation

jGuru JSP FAQ

jGuru Servlet FAQ

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers