Neil Aggarwal a �crit :
> Hello:
>
> Is reloadable="true" working in 4.0.3?
> Tomcat does not seem to be reloading my classes when I upload a newer
> version to the server.
>
> Here is what I put in my /usr/local/jakarta-tomcat-4.0.3/conf/server.xml
> file:
> <!-- BurnRateDiet Context -->
> <Context path="/burnratediet" docBase="burnratediet"
> debug="0" reloadable="true" />
> I put this in the Host directive for the local host.
>
> I am using Apache 1.3.23 and mod_webapp.
>
> Also, since this is a development server, I wanted to
> have all of my contexts reload classes by default.
>
> Is there a default setting for the reloading of classes?
>
> Thanks,
> Neil.
>
> --
> Neil Aggarwal
> JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com
> Custom Internet Development Websites, Ecommerce, Java, databases
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
It had been such a mess all around it !
I give yu my code:
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8025" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to
-->
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" appBase="webapps" defaulthost="MyServer.com" >
<DefaultContext reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="Logs" prefix="local_access_log." suffix=".txt"
pattern="common" />
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally
-->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="MyServer.com" debug="10" appBase="webapps"
unpackWARs="true" >
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager" privileged="true"/>
</Host>
</Engine>
</Service>
The best way is via the manager facilities.
To do so yu DO have to declare the Host, like in the code below, so that it
is available thru the warp connector via:
WebAppDeploy manager conn /manager/
Hope this help.
Jean-Luc B :O)
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>