Hello *, my context file foo.xml is: <?xml version='1.0' encoding='utf-8'?> <Context path="/foo" docBase="/opt/foo/servlet" allowLinking="true"> </Context>
my server.xml file is: <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> </Engine> </Service> </Server> If more config files will be neccessary I will provide. 2010/6/1 Pid <p...@pidster.com> > On 01/06/2010 11:31, Petr Hracek wrote: > > Hello *, > > > > I have make a really big error. > > Tomcat which is installed on the our systems is: > > tomcat5-5.5.27-0.8.39 > > > > If I have in /etc/tomcat5/base/Catalina/localhost file like foo.xml > > wich referes to /opt/foo/servlet. After uploading new jar files to > > /opt/foo/servlet > > how I can tell to tomcat that servlet has to be reloaded. > > Perhaps I need to be more specific: *post your config files to the list*. > > > p > > > > Thanks for your responses > > > > Best Regards > > Petr Hracek > > > > 2010/6/1 Pid * <p...@pidster.com <mailto:p...@pidster.com>> > > > > > > > > On 1 Jun 2010, at 10:01, Petr Hracek <phrac...@gmail.com > > <mailto:phrac...@gmail.com>> wrote: > > > >> Hello *, > >> > >> Manager application is not installed on the system. > >> You mentioned that it depends on the configuration. > >> Configuration of tomcat which is used is delivered by OS. > >> In the /etc/tomcat5/base/Catalina/localhost is only relevant XML > file. > > > > If you know which config files are relevant you already know the > > answer to your problem, no? > > > > You should upgrade to a newer version of Tomcat - 5.0 is very very > old. > > > > > > p > > > >> which contains path and docbase where tomcat can find servlets and > >> other jar files. > >> > >> War files are not used. Only jar files with web.xml files. > >> > >> 2010/5/31 Pid < <mailto:p...@pidster.com>p...@pidster.com > >> <mailto:p...@pidster.com>> > >> > >> On 31/05/2010 11:40, Petr Hracek wrote: > >> > Dear users, > >> > > >> > I would like to ask you on the some thing which regards to > >> the application > >> > deployment and > >> > neccessary restart of tomcat5. > >> > >> Tomcat 5? That's pretty old, and not supported any more. > >> > >> > When I am some servlet which are run under tomcat and I have > >> build up the > >> > new jar files for my application > >> > is it enought to copy this file to my location without > >> neccessary restart of > >> > tomcat? > >> > >> Depends on your configuration. Which you haven't posted. > >> > >> > Is there any "gracefull" restart of tomcat like in apache2? > >> > > >> > Is there any mechanishm how to update servlets when tomcat > >> is already > >> > running > >> > so that tomcat 5 will not be restarted and new servlets will > >> be loaded? > >> > >> You can update/replace the war file. This may trigger an > >> application > >> restart, depending on your configuration. > >> > >> The manager application can also be used to update and restart > web > >> applications. > >> > >> > >> p > >> > >> > >> > >> > >> -- > >> Best Regards / S pozdravem > >> Petr Hracek > > > > > > > > > > -- > > Best Regards / S pozdravem > > Petr Hracek > > > -- Best Regards / S pozdravem Petr Hracek