tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David M. Karr)
Subject Re: JSPC Precompiling Issues and a handy utility
Date Thu, 01 Aug 2002 19:47:56 GMT
>>>>> "Rick" == Rick Fincher <> writes:

    Rick> Hi All,
    Rick> There has been some discussion on here and on the TAGLIBS list about
    Rick> precompiling JSP's in Tomcat.

    Rick> To avoid confusion, before I go on I want to point out that there has been a
    Rick> change in Tomcat 4.1.8 in the naming conventions of servlets generated from
    Rick> JSP's.

    Rick> In 4.1.8 a JSP file CATALINA_HOME/webapps/myApp/main.jsp gets compiled into
    Rick> a servlet  CATALINA_HOME/work/Standalone/localhost/myApp/

    Rick> Prior to 4.1.8 the servlet created was called main$  So they
    Rick> changed the name convention from $ to

    Rick> I'll use the 4.1.8 names in this post.

    Rick> Anyway, when I use jspc to precompile I get all the .java files in  , but no
    Rick> class files.  Does jspc only generate the servlet java files?  The whole
    Rick> point of precompiling was to prevent javac from being called to compile
    Rick> those servlets to work around the javac memory leak and speed up page
    Rick> loading.

The Tomcat JspC process only generates the servlet code.  You have to compile
the code yourself.  It's easy enough to set that up as part of your build

David M. Karr          ; Java/J2EE/XML/Unix/C++

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message