Hi,

Tomcat version 5.5.26 running on Linux. I'm trying to run 2 web applications
in the same host but I haven't been able to figure out how to make it work
right. If I only put one of the web applications in the webapps folder
(either of them) then that single web application will work properly. But if
I put both of them in the webapps folder, then only one of the two
applications will work. If I try to load the application that does not work
I get a 404 error.

 Here is my server.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<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">
      </Host>
    </Engine>
  </Service>
</Server>

and this is the webapps directory structure:

$CATALINA_HOME/webapps/
$CATALINA_HOME/webapps/A/
$CATALINA_HOME/webapps/A/...
$CATALINA_HOME/webapps/B/
$CATALINA_HOME/webapps/B/...

Any suggestions?
Thanks,

Reply via email to