I'm not shure if this problem really relates to Tomcat but it happened after altering the tomcat configuration. I've two different domains for two differnt webapps. Therefore i search on the internet how to manage multiple domains on Tomcat. I found this resource: http://www.westsoftware.net/java/domains-on-tomcat.jsp. I modified the corrensponding configuration file in the following way:

Extract server.xml:
   ...
    <Host name="localhost"  appBase="webapps"
           unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">

       </Host>

     <Host name="mydomain.de"
          debug="0"
          appBase="webapps/myapp2"
          unpackWARs="true"
          autoDeploy="true"
          xmlValidation="false"
          xmlNamespaceAware="false">
   <Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="mydomain.de-log."
          suffix=".txt" timestamp="true"/>
   <Alias>www.mydomain.de</Alias>
     </Host>
   </Engine>
 </Service>
</Server>

and i added the follwing ROOT.xml file in the folder
$CATALINA_HOME/conf/Catalina/mydomain.de

ROOT.xml:
<?xml version='1.0' encoding='utf-8'?>
   <Context displayName="mydomain.de"
                 docBase=""
                 path=""
                 workDir="work/Catalina/mydomain.de/_">
</Context>

Actually it works fine, i can now differentiate between the two webapps by the domain. But while the first webapp has no problems accessing the mysql database i do have problems with the second webapp for which i added the new configuration. The problem that i have now: I don't know what is happening here. I already checked the log files in the CATALINA_HOME/logs folder but i could not find anything. I also checked that the mysql connection for the second webapp works when invoking it by www.regulardomain.de/myapp2. Has anybody an idea what could cause this problem?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to