2 Replies Latest reply on Dec 17, 2002 8:11 AM by roberto roberto

    Jsp and Debug option

    roberto roberto Novice

      How can i set the "-g" and keepgenerated options during JSP compilation ?

      For example using Weblogic i can set this options in the web.xml as context-param like this...

      <context-param>
      <param-name>weblogic.jsp.keepgenerated</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>weblogic.jsp.compileOptions</param-name>
      <param-value>-g</param-value>
      </context-param>


      Thank You
      Roberto

        • 1. Re: Jsp and Debug option
          Julian Gosnell Expert

          If you are using Jetty, ensure that you have a recent JBoss3 release and look in the .../deploy/jbossweb.sar/webdefault.xml file.

          This controls default settings for all webapps, including how Jasper is mapped.What you need is probably available as a init-param on Jasper.

          If you figure it out, post an explanatory paragraph and I will put it in my Jetty/JBoss FAQ

          Jules

          • 2. Re: Jsp and Debug option
            roberto roberto Novice

            I found the solution.

            You have right... i must use the webdefault.xml,
            but i must use JBOSS 3.0.4 (using JBOSS 3.0.3 i have some problem)

            under \deploy\jbossweb.sar modify the webdefault.xml as below

            <!-- ==================================================================== -->
            <!-- JSP Servlet -->
            <!-- This is the jasper JSP servlet from the jakarta project -->
            <!-- The following initParameters are supported: -->
            <!-- -->
            <!-- classpath What class path should I use while compiling -->
            <!-- generated servlets? [Created dynamically -->
            <!-- based on the current web application] -->
            <!-- -->
            <!-- classdebuginfo Should the class file be compiled with -->
            <!-- debugging information? [false] -->
            <!-- -->
            <!-- ieClassId The class-id value to be sent to Internet -->
            <!-- Explorer when using <jsp:plugin> tags. -->
            <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
            <!-- -->
            <!-- jspCompilerPlugin The fully qualified class name of the JSP -->
            <!-- compiler plug-in to be used. See below for -->
            <!-- more information. -->
            <!-- [Use internal JDK compiler] -->
            <!-- -->
            <!-- keepgenerated Should we keep the generated Java source code -->
            <!-- for each page instead of deleting it? [true] -->
            <!-- -->
            <!-- largefile Should we store the static content of JSP -->
            <!-- pages in external data files, to reduce the -->
            <!-- size of the generated servlets? [false] -->
            <!-- -->
            <!-- logVerbosityLevel The level of detailed messages to be produced -->
            <!-- by this servlet. Increasing levels cause the -->
            <!-- generation of more messages. Valid values are -->
            <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
            <!-- [WARNING] -->
            <!-- -->
            <!-- mappedfile Should we generate static content with one -->
            <!-- print statement per input line, to ease -->
            <!-- debugging? [false] -->
            <!-- -->
            <!-- scratchdir What scratch directory should we use when -->
            <!-- compiling JSP pages? [default work directory -->
            <!-- for the current web application] -->
            <!-- -->
            <!-- If you wish to use Jikes to compile JSP pages: -->
            <!-- * Set the "classpath" initialization parameter appropriately -->
            <!-- for this web application. -->
            <!-- * Set the "jspCompilerPlugin" initialization parameter to -->
            <!-- "org.apache.jasper.compiler.JikesJavaCompiler". -->
            <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
            <param-name>scratchdir</param-name>
            <param-value>F:/jbosstemp</param-value>
            </init-param>
            <init-param>
            <param-name>classdebuginfo</param-name>
            <param-value>true</param-value>
            </init-param>
            <load-on-startup>0</load-on-startup>