IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Pre-compile of JSP

  • 1.  Pre-compile of JSP

    Posted Tue November 04, 2003 09:03 AM

    X-Application Version: 4.1.1
    Tamino Version : 4.1.1
    Platform : Win2k
    WebContainer : Tamocat 4.1.17
    JDK Version : 1.4.1

    Hi

    I got this from the Sun site:
    “Pages built using JSP technology are typically implemented using a translation phase that is performed once, the first time the page is called. The page is compiled into a Java Servlet class and remains in server memory, so subsequent calls to the page have very fast response times.”

    My question:
    Is it possible to pre-compile JSP pages so that the first time load is not so slow?

    Thanks
    Elsabe Jacobs


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: Pre-compile of JSP

    Posted Tue November 04, 2003 09:36 AM

    Yes, it is: use
    jspc.bat
    in Tomcat’s bin directory.

    I have not used it myself, but from looking at the help message printed if you invoke it without arguments it seem pretty easy - you just have to issue
    jspc -webapp

    Gook look,

    Michael

    Software AG Germany, Darmstadt


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: Pre-compile of JSP

    Posted Wed November 05, 2003 06:19 AM

    Thanks for this. In principle it does sound simple but in practice …

    I am getting:

    error:null
    2003-11-05 07:45:27 - ERROR-the file '\browse.jsp' generated the following general exception: java.lang.NullPointerException  



    Does anybody have any ideas for the reason? Could it be a classpath problem?

    Thanks
    Elsabe


    #API-Management
    #Tamino
    #webMethods