Solved: Defining hosts causes tomcat to fail

hi all,

i’ve set up razuna 1.7 on debian jessie 64, tomcat 7 and oracle-java7:

catalina.sh version
Using CATALINA_BASE: /home/razuna/tomcat
Using CATALINA_HOME: /home/razuna/tomcat
Using CATALINA_TMPDIR: /home/razuna/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-7-oracle/jre/
Using CLASSPATH: /home/razuna/tomcat/bin/bootstrap.jar:/home/razuna/tomcat/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.56
Server built: Sep 26 2014 12:08:24
Server number: 7.0.56.0
OS Name: Linux
OS Version: 3.16.0-4-amd64
Architecture: amd64
JVM Version: 1.7.0_80-b15
JVM Vendor: Oracle Corporation

it works fine as long as i do not define a host in tomcat’s server.xml:

<Host name="images.myhost.com" appBase="webapps">
    <Context path="" docBase="/home/razuna/tomcat/webapps/razuna/demo/dam/" allowLinking="true" />
    <Context path="/assets" docBase="/home/s3/assets/" crossContext="false" reloadable="true" />
</Host>

the paths are correct and the tomcat user has all priviledges on these folders. but unfortunately tomcat crashes and the error message is kind of strange:

The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]

any ideas why this happens?

regards
lorenz

i found the problem, and it was very dumb (or better: i was very dumb…)

you should link the correct WEB-INF folder into your tenant.

We use hosts in Tomcat quite a lot and never seen any issues, definitely
never a crash.

I suggest that you leave the default “localhost” host entry and simply add
your new one below.