hi
i'm having a problem running more than one context using tomcat and apache. it all works fine on my standalone test/development box but when i uploaded the new second context to my server it didn't work.
in mod_jk.conf i have the following:
<VirtualHost 207.44.208.51:80>
ServerAdmin admin@mydoamin.com
DocumentRoot /usr/local/tomcat_4.1.18/webapps/firstapp
ServerName ServerAlias mydomain1.com
ErrorLog logs/mydomain1.log
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
<VirtualHost 207.44.208.51:80>
ServerAdmin admin@mydoamin.com
DocumentRoot /usr/local/tomcat_4.1.18/webapps/secondapp
ServerName ServerAlias mydomain1.com
ErrorLog logs/mudoamin2.log
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
and server.xml has the following:
<Context path="" docBase="firstappbase" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_firstapp_log." suffix=".log"
timestamp="true"/>
</Context>
<Context path="" docBase="secondappbase" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_secondapp_log." suffix=".log"
timestamp="true"/>
</Context>
if i comment out any of the contexts from server.xml it works (thats one if the other is commented). but for some reason both won't work and tomcat fails to start with the following:
java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.IllegalArgumentException: addChild: Child name '' is not unique
...
Catalina.start: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
i'm stumped... if anyone has any ideas at all, they would be most appreciated.
thanks heaps...
Takis
i'm having a problem running more than one context using tomcat and apache. it all works fine on my standalone test/development box but when i uploaded the new second context to my server it didn't work.
in mod_jk.conf i have the following:
<VirtualHost 207.44.208.51:80>
ServerAdmin admin@mydoamin.com
DocumentRoot /usr/local/tomcat_4.1.18/webapps/firstapp
ServerName ServerAlias mydomain1.com
ErrorLog logs/mydomain1.log
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
<VirtualHost 207.44.208.51:80>
ServerAdmin admin@mydoamin.com
DocumentRoot /usr/local/tomcat_4.1.18/webapps/secondapp
ServerName ServerAlias mydomain1.com
ErrorLog logs/mudoamin2.log
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
and server.xml has the following:
<Context path="" docBase="firstappbase" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_firstapp_log." suffix=".log"
timestamp="true"/>
</Context>
<Context path="" docBase="secondappbase" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_secondapp_log." suffix=".log"
timestamp="true"/>
</Context>
if i comment out any of the contexts from server.xml it works (thats one if the other is commented). but for some reason both won't work and tomcat fails to start with the following:
java.lang.reflect.InvocationTargetException
...
Caused by: java.lang.IllegalArgumentException: addChild: Child name '' is not unique
...
Catalina.start: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
i'm stumped... if anyone has any ideas at all, they would be most appreciated.
thanks heaps...
Takis