Hi: I am using Tomcat 5.5.16 on Windows XP with JDK 5.0. This is what I am trying to do:
Set up a virtual host with two contexts. The first context is my root application and the second context is the manager for this virtual host. The application and manager are working fine. The only problem is Tomcat seems to deploy all folders present in CATALINA_HOME as web applications.Ican see these folders deployed as applications in manager app. Eventually I want a setup where I have multiple hosts, each having a root application context and a manger of its own.I do not understand the problem with the setup I currently have: ------------------------------------------------------------------------------------------------------------------------------------------- My server.xml file <Server port="8005" shutdown="SHUTDOWN" debug="0"> <!-- Global JNDI resources --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <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 className="org.apache.catalina.connector.http.HttpConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000"/> <Engine name="Catalina" defaultHost="localhost" debug="0"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="localhost" debug="0" appbase="c:\websites\xyz\webapps" unpackWARs="true" deployOnStartup="true"> <Alias>"localhost"</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="c:\websites\xyz\webapps\logs" prefix="xyz_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="c:\websites\xyz\webapps\logs" prefix="xyz_catalina_log." suffix=".txt" timestamp="true"/> </Host> </Engine> </Service> </Server> ------------------------------------------------------------------------------------------------------------------------------------------------------------- Root application context description in ROOT.xml file <Context path="" docBase="c:\websites\xyz\webapps\xyz" debug="5" reloadable="true" crossContext="true"> ......other resources like db and such </Context> -------------------------------------------------------------------------------------------------------------------------------------------------------------- Manager application for this virtual host <Context docBase="C:\websites\xyz\webapps\manager" debug="5" privileged="true" antiResourceLocking="false" antiJARLocking="false"> <!-- Link to the user database we will get roles from --> <ResourceLink name="users" global="UserDatabase" type="org.apache.catalina.UserDatabase"/> </Context> --------------------------------------------------------------------------------------------------------------------------------------------------------------- thanks, Vamsi.