You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manca Davide <da...@matrix.it> on 2007/11/30 17:03:54 UTC
[Tomcat 6] jsp on the fly
Hello,
I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
webapp. I want to Tomcat recompile them into .class files without
restarting.
I already tried these:
In context.xml
<!-- The contents of this file will be loaded for each web application
-->
<Context reloadable="true" privileged="true"
antiResourceLocking="false">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat
restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides
events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve
className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
In server.xml:
<Host name="mysite.net"
appBase="/store1/www-dev/mysite.net/doc_root/webapps"
unpackWARs="true" autoDeploy="true" deployOnStartup="false"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/ahtv"
docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"
workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"
unpackWARs="true" autoDeploy="true"
deployOnStartup="false" processTlds="true"
xmlValidation="false" xmlNamespaceAware="false"
debug="0" reloadable="true" privileged="true"
antiResourceLocking="false">
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>jsp/index.jsp</WatchedResource>
<Manager pathname="" />
</Context>
</Host>
Thanks a lot for your help.
Ciao.
Dave.
RE: [Tomcat 6] jsp on the fly
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Manca Davide [mailto:davide.manca@matrix.it]
> Subject: R: [Tomcat 6] jsp on the fly
>
> but it doesn't...
> how can I make it works?
Does auto-compilation of JSPs work in a fresh Tomcat download, using the
included JSP examples? If so, then something you have changed in your
current Tomcat installation has broken it. Check if you've damaged
conf/web.xml, since that's where the JspServlet is defined.
You'd do well to read up on Tomcat configuration, since the server.xml
you posted violates current practice:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
Putting <Context> elements in server.xml is undesirable, as is
configuring a workDir inside WEB-INF (which should be treated as
read-only). The latter issue may be the cause of your JSP problem, but
I haven't tried to verify it.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: [Tomcat 6] jsp on the fly
Posted by Manca Davide <da...@matrix.it>.
I found the right way to make it work:
In $CATALINA_HOME/conf/web.xml there was the parameter development set to false so Tomcat didn't recompile on the fly my jsps.
I just set it to true and it started to work!
Thanks to everyone.
Ciao.
Dave.
-----Original Message-----
From: Manca Davide [mailto:davide.manca@matrix.it]
Sent: venerdì 30 novembre 2007 23.40
To: Tomcat Users List; Tomcat Users List
Subject: R: [Tomcat 6] jsp on the fly
but it doesn't...
how can I make it works?
-----Messaggio originale-----
Da: Filip Hanik - Dev Lists [mailto:devlists@hanik.com]
Inviato: ven 30/11/2007 20.40
A: Tomcat Users List
Oggetto: Re: [Tomcat 6] jsp on the fly
yes, this works out of the box, without any changes to any config files
Filip
Manca Davide wrote:
> Hello,
>
>
>
> I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
> webapp. I want to Tomcat recompile them into .class files without
> restarting.
>
>
>
> I already tried these:
>
>
>
> In context.xml
>
>
>
> <!-- The contents of this file will be loaded for each web application
> -->
>
> <Context reloadable="true" privileged="true"
> antiResourceLocking="false">
>
>
>
> <!-- Default set of monitored resources -->
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <!-- Uncomment this to disable session persistence across Tomcat
> restarts -->
>
> <!--
>
> <Manager pathname="" />
>
> -->
>
>
>
> <!-- Uncomment this to enable Comet connection tacking (provides
> events
>
> on session expiration as well as webapp lifecycle) -->
>
> <!--
>
> <Valve
> className="org.apache.catalina.valves.CometConnectionManagerValve" />
>
> -->
>
> </Context>
>
>
>
> In server.xml:
>
>
>
> <Host name="mysite.net"
> appBase="/store1/www-dev/mysite.net/doc_root/webapps"
>
> unpackWARs="true" autoDeploy="true" deployOnStartup="false"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>
>
> <Context path="/ahtv"
>
>
> docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"
>
>
> workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"
>
> unpackWARs="true" autoDeploy="true"
> deployOnStartup="false" processTlds="true"
>
> xmlValidation="false" xmlNamespaceAware="false"
>
> debug="0" reloadable="true" privileged="true"
> antiResourceLocking="false">
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <WatchedResource>jsp/index.jsp</WatchedResource>
>
> <Manager pathname="" />
>
>
>
> </Context>
>
>
>
>
>
> </Host>
>
>
>
> Thanks a lot for your help.
>
>
>
> Ciao.
>
> Dave.
>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 8:32 PM
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
R: [Tomcat 6] jsp on the fly
Posted by Manca Davide <da...@matrix.it>.
but it doesn't...
how can I make it works?
-----Messaggio originale-----
Da: Filip Hanik - Dev Lists [mailto:devlists@hanik.com]
Inviato: ven 30/11/2007 20.40
A: Tomcat Users List
Oggetto: Re: [Tomcat 6] jsp on the fly
yes, this works out of the box, without any changes to any config files
Filip
Manca Davide wrote:
> Hello,
>
>
>
> I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
> webapp. I want to Tomcat recompile them into .class files without
> restarting.
>
>
>
> I already tried these:
>
>
>
> In context.xml
>
>
>
> <!-- The contents of this file will be loaded for each web application
> -->
>
> <Context reloadable="true" privileged="true"
> antiResourceLocking="false">
>
>
>
> <!-- Default set of monitored resources -->
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <!-- Uncomment this to disable session persistence across Tomcat
> restarts -->
>
> <!--
>
> <Manager pathname="" />
>
> -->
>
>
>
> <!-- Uncomment this to enable Comet connection tacking (provides
> events
>
> on session expiration as well as webapp lifecycle) -->
>
> <!--
>
> <Valve
> className="org.apache.catalina.valves.CometConnectionManagerValve" />
>
> -->
>
> </Context>
>
>
>
> In server.xml:
>
>
>
> <Host name="mysite.net"
> appBase="/store1/www-dev/mysite.net/doc_root/webapps"
>
> unpackWARs="true" autoDeploy="true" deployOnStartup="false"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>
>
> <Context path="/ahtv"
>
>
> docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"
>
>
> workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"
>
> unpackWARs="true" autoDeploy="true"
> deployOnStartup="false" processTlds="true"
>
> xmlValidation="false" xmlNamespaceAware="false"
>
> debug="0" reloadable="true" privileged="true"
> antiResourceLocking="false">
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <WatchedResource>jsp/index.jsp</WatchedResource>
>
> <Manager pathname="" />
>
>
>
> </Context>
>
>
>
>
>
> </Host>
>
>
>
> Thanks a lot for your help.
>
>
>
> Ciao.
>
> Dave.
>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 8:32 PM
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [Tomcat 6] jsp on the fly
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
yes, this works out of the box, without any changes to any config files
Filip
Manca Davide wrote:
> Hello,
>
>
>
> I have a problem using jsp on tomcat 6 + jdk 6. I have some jsp under a
> webapp. I want to Tomcat recompile them into .class files without
> restarting.
>
>
>
> I already tried these:
>
>
>
> In context.xml
>
>
>
> <!-- The contents of this file will be loaded for each web application
> -->
>
> <Context reloadable="true" privileged="true"
> antiResourceLocking="false">
>
>
>
> <!-- Default set of monitored resources -->
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <!-- Uncomment this to disable session persistence across Tomcat
> restarts -->
>
> <!--
>
> <Manager pathname="" />
>
> -->
>
>
>
> <!-- Uncomment this to enable Comet connection tacking (provides
> events
>
> on session expiration as well as webapp lifecycle) -->
>
> <!--
>
> <Valve
> className="org.apache.catalina.valves.CometConnectionManagerValve" />
>
> -->
>
> </Context>
>
>
>
> In server.xml:
>
>
>
> <Host name="mysite.net"
> appBase="/store1/www-dev/mysite.net/doc_root/webapps"
>
> unpackWARs="true" autoDeploy="true" deployOnStartup="false"
>
> xmlValidation="false" xmlNamespaceAware="false">
>
>
>
> <Context path="/ahtv"
>
>
> docBase="/store1/www-dev/mysite.net/doc_root/webapps/ahtv"
>
>
> workDir="/store1/www-dev/mysite.net/doc_root/webapps/ahtv/WEB-INF/work"
>
> unpackWARs="true" autoDeploy="true"
> deployOnStartup="false" processTlds="true"
>
> xmlValidation="false" xmlNamespaceAware="false"
>
> debug="0" reloadable="true" privileged="true"
> antiResourceLocking="false">
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
>
> <WatchedResource>jsp/index.jsp</WatchedResource>
>
> <Manager pathname="" />
>
>
>
> </Context>
>
>
>
>
>
> </Host>
>
>
>
> Thanks a lot for your help.
>
>
>
> Ciao.
>
> Dave.
>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.10/1160 - Release Date: 11/29/2007 8:32 PM
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org