You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gurmeet <gu...@indicom.co.in> on 2002/05/03 09:04:11 UTC

How to force compilation of Jspz at startup

Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet 



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: How to force compilation of Jspz at startup

Posted by Tino Dai <td...@optonline.net>.
Hi Gurmeet,

  There is a tool out there called wget that my associates have used for
just this purpose. They used wget to touch all of the jsp pages and
therefore compile them before a live user gets to their site. HTH

-Tino

On Sat, 2002-05-04 at 03:32, Gurmeet wrote:
> Thanks a lot Jay,
> 
> As of now I am opting for your second suggestion.
> 
> And lets hope this feature improves in future.
> 
> Gurmeet
> -----Original Message-----
> From: Jay Gardner [mailto:gjk@qwest.net]
> Sent: Saturday, May 04, 2002 12:34 PM
> To: Tomcat Users List
> Subject: RE: How to force compilation of Jspz at startup
> 
> 
> Is this so that everything is ready to go for the first user?
> 
> If so, you could pre-compile you JSPs using jspc. I have done this in an ANT
> build script and have gotten it down to a two step process. You still have
> to manually add the generated servlet definitions and mappings to your
> web.xml file. Hopefully this will be changed in the future.
> 
> The other option is to write your own script to run through the URLs with
> the ?jsp_precompile=ture parameter appended to the end.
> 
> Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true.
> 
> This compiles the page without running it. I am with Abraham though, if you
> find a better way let us know.
> 
> --JG
> 
> -----Original Message-----
> From: Abraham Fathman [mailto:afathman@one.net]
> Sent: Saturday, May 04, 2002 12:39 AM
> To: 'Tomcat Users List'
> Subject: RE: How to force compilation of Jspz at startup
> 
> Don't know of a way... Sorry. If you find out let me know - it would be
> nice to take that hit during a maintenance window...
> 
> -----Original Message-----
> From: Gurmeet [mailto:gurmeet@indicom.co.in]
> Sent: Saturday, May 04, 2002 2:30 AM
> To: Tomcat Users List
> Subject: RE: How to force compilation of Jspz at startup
> 
> 
> I am posting this question again as I did not  get any response.
> 
> How do I inform Tomcat to compile all the JSPz in a particular context
> on startup.
> 
> We can do this in weblogic by specifying the following in its web.xml.
> 
>     <context-param>
>         <param-name>weblogic.jsp.precompile</param-name>
>         <param-value>true</param-value>
>     </context-param>
> 
> I am sure there is some way we can do this in Tomcat also.
> 
> Thanks in advance.
> 
> Gurmeet
> -----Original Message-----
> From: Gurmeet [mailto:gurmeet@indicom.co.in]
> Sent: Friday, May 03, 2002 12:34 PM
> To: Tomcat Users List
> Subject: How to force compilation of Jspz at startup
> 
> 
> Hi all,
> 
> How do I inform Tomcat to compile all the JSPz on startup.
> 
> Regards,
> Gurmeet
> 
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: How to force compilation of Jspz at startup

Posted by Gurmeet <gu...@indicom.co.in>.
Thanks a lot Jay,

As of now I am opting for your second suggestion.

And lets hope this feature improves in future.

Gurmeet
-----Original Message-----
From: Jay Gardner [mailto:gjk@qwest.net]
Sent: Saturday, May 04, 2002 12:34 PM
To: Tomcat Users List
Subject: RE: How to force compilation of Jspz at startup


Is this so that everything is ready to go for the first user?

If so, you could pre-compile you JSPs using jspc. I have done this in an ANT
build script and have gotten it down to a two step process. You still have
to manually add the generated servlet definitions and mappings to your
web.xml file. Hopefully this will be changed in the future.

The other option is to write your own script to run through the URLs with
the ?jsp_precompile=ture parameter appended to the end.

Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true.

This compiles the page without running it. I am with Abraham though, if you
find a better way let us know.

--JG

-----Original Message-----
From: Abraham Fathman [mailto:afathman@one.net]
Sent: Saturday, May 04, 2002 12:39 AM
To: 'Tomcat Users List'
Subject: RE: How to force compilation of Jspz at startup

Don't know of a way... Sorry. If you find out let me know - it would be
nice to take that hit during a maintenance window...

-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Saturday, May 04, 2002 2:30 AM
To: Tomcat Users List
Subject: RE: How to force compilation of Jspz at startup


I am posting this question again as I did not  get any response.

How do I inform Tomcat to compile all the JSPz in a particular context
on startup.

We can do this in weblogic by specifying the following in its web.xml.

    <context-param>
        <param-name>weblogic.jsp.precompile</param-name>
        <param-value>true</param-value>
    </context-param>

I am sure there is some way we can do this in Tomcat also.

Thanks in advance.

Gurmeet
-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Friday, May 03, 2002 12:34 PM
To: Tomcat Users List
Subject: How to force compilation of Jspz at startup


Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: How to force compilation of Jspz at startup

Posted by Jay Gardner <gj...@qwest.net>.
Is this so that everything is ready to go for the first user?

If so, you could pre-compile you JSPs using jspc. I have done this in an ANT
build script and have gotten it down to a two step process. You still have
to manually add the generated servlet definitions and mappings to your
web.xml file. Hopefully this will be changed in the future.

The other option is to write your own script to run through the URLs with
the ?jsp_precompile=ture parameter appended to the end.

Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true.

This compiles the page without running it. I am with Abraham though, if you
find a better way let us know.

--JG

-----Original Message-----
From: Abraham Fathman [mailto:afathman@one.net]
Sent: Saturday, May 04, 2002 12:39 AM
To: 'Tomcat Users List'
Subject: RE: How to force compilation of Jspz at startup

Don't know of a way... Sorry. If you find out let me know - it would be
nice to take that hit during a maintenance window...

-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Saturday, May 04, 2002 2:30 AM
To: Tomcat Users List
Subject: RE: How to force compilation of Jspz at startup


I am posting this question again as I did not  get any response.

How do I inform Tomcat to compile all the JSPz in a particular context
on startup.

We can do this in weblogic by specifying the following in its web.xml.

    <context-param>
        <param-name>weblogic.jsp.precompile</param-name>
        <param-value>true</param-value>
    </context-param>

I am sure there is some way we can do this in Tomcat also.

Thanks in advance.

Gurmeet
-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Friday, May 03, 2002 12:34 PM
To: Tomcat Users List
Subject: How to force compilation of Jspz at startup


Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: How to force compilation of Jspz at startup

Posted by Abraham Fathman <af...@one.net>.
Don't know of a way... Sorry. If you find out let me know - it would be
nice to take that hit during a maintenance window...

-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in] 
Sent: Saturday, May 04, 2002 2:30 AM
To: Tomcat Users List
Subject: RE: How to force compilation of Jspz at startup


I am posting this question again as I did not  get any response.

How do I inform Tomcat to compile all the JSPz in a particular context
on startup.

We can do this in weblogic by specifying the following in its web.xml.

    <context-param>
	<param-name>weblogic.jsp.precompile</param-name>
	<param-value>true</param-value>
    </context-param>

I am sure there is some way we can do this in Tomcat also.

Thanks in advance.

Gurmeet
-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Friday, May 03, 2002 12:34 PM
To: Tomcat Users List
Subject: How to force compilation of Jspz at startup


Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: How to force compilation of Jspz at startup

Posted by Gurmeet <gu...@indicom.co.in>.
I am posting this question again as I did not  get any response.

How do I inform Tomcat to compile all the JSPz in a particular context on
startup.

We can do this in weblogic by specifying the following in its web.xml.

    <context-param>
	<param-name>weblogic.jsp.precompile</param-name>
	<param-value>true</param-value>
    </context-param>

I am sure there is some way we can do this in Tomcat also.

Thanks in advance.

Gurmeet
-----Original Message-----
From: Gurmeet [mailto:gurmeet@indicom.co.in]
Sent: Friday, May 03, 2002 12:34 PM
To: Tomcat Users List
Subject: How to force compilation of Jspz at startup


Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>