Tomcat / Railo 4 Charge uniquement l'hôte par défaut, ignore les contextes dans conf / Catalina /

J'ai sur 100 Hôtes virtuels Railo, qui ne sont plus lancés. Au début, les nouveaux sites avaient un tel comportement, c'est maintenant tout. Tous les pseudonymes virtuels ouvrent simplement le contexte par défaut railo! Il travaillait auparavant. mes dossiers conf / Catalina / www.example.com / ROOT.xml Ressemble à ca:

xml version='1.0' encoding='utf-8'?
<context docbase="/www/example/site">
<watchedresource>WEB-INF/web.xml</watchedresource>
</context>

Mon

server.xml

; J'ai essayé de désactiver mod_cfml, Mais il semble avoir aggravé la situation (Les sites ne sont pas chargés):

xml version='1.0' encoding='utf-8'?
<server port="8005" shutdown="SHUTDOWN">
<listener classname="org.apache.catalina.core.AprLifecycleListener" sslengine="on"></listener>
<listener classname="org.apache.catalina.core.JasperListener"></listener>
<listener classname="org.apache.catalina.core.JreMemoryLeakPreventionListener"></listener>
<listener classname="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"></listener>
<listener classname="org.apache.catalina.core.ThreadLocalLeakPreventionListener"></listener>
<service name="Catalina">
<connector connectiontimeout="20000" port="8888" protocol="HTTP/1.1" redirectport="8443"></connector>
<connector port="8009" protocol="AJP/1.3" redirectport="8443"></connector>
<engine defaulthost="127.0.0.1" name="Catalina">
<host appbase="webapps" autodeploy="false" name="127.0.0.1" unpackwars="false">
<!--
<Valve className="mod_cfml.core"
loggingEnabled="true"
waitForContext="20"
maxContexts="200"
timeBetweenContexts="30000"
/>
-->
</host>
</engine>
</service>
</server>

Lorsque le serveur démarre, seul le contexte est déployé. localhost:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Jun 11, 2015 6:24:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8888"]
Jun 11, 2015 6:24:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 11, 2015 6:24:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 813 ms
Jun 11, 2015 6:24:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 11, 2015 6:24:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jun 11, 2015 6:24:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo4/tomcat/webapps/ROOT
Jun 11, 2015 6:24:46 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [4,498] milliseconds.
railo-server-root:/opt/railo4/lib/railo-server
===================================================================
SERVER CONTEXT
-------------------------------------------------------------------
- config:/opt/railo4/lib/railo-server/context
- loader-version:4.3
===================================================================

Thu Jun 11 18:24:47 EST 2015-653 using JRE Date Library
Thu Jun 11 18:24:48 EST 2015-640 Start CFML Controller
Thu Jun 11 18:24:48 EST 2015 Loaded Railo Version 4.2.1.000
===================================================================
WEB CONTEXT (31c16faa5d8574b34b11678a3cb74b43)
-------------------------------------------------------------------
- config:/opt/railo4/tomcat/webapps/ROOT/WEB-INF/railo
- webroot:/opt/railo4/tomcat/webapps/ROOT/
- hash:31c16faa5d8574b34b11678a3cb74b43
- label:31c16faa5d8574b34b11678a3cb74b43
===================================================================

Jun 11, 2015 6:24:48 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/railo4/tomcat/webapps/ROOT has finished in 19,750 ms
Jun 11, 2015 6:24:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Jun 11, 2015 6:24:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 11, 2015 6:24:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19795 ms

Bien que j'utilise le connecteur AJP de apache, Ce comportement est préservé, même si je tourne directement vers

example.com:8888

. Il y a des idées qui peuvent obtenir Tomcat ignorer mes hôtes virtuels?

BTW: Ce qui fonctionne pour ajouter un hôte à

server.xml

Cependant, on m'a dit que c'est une mauvaise idée et je ne veux pas faire cela, car je dois déployer des sites sans redémarrer le serveur:

  <host appbase="webapps" name="example.com">
<context docbase="/www/example/site" path=""></context>
<alias>*.example.com</alias>
</host>

La seule vraie différence que je vois est que mes fichiers externes ROOT.xml Ne pas déclarer

appBase

ou

path

. Elles doivent? Je ne pense pas dans ROOT.xml Il y a même un endroit pour appBase.

EDIT: Je dois corriger cette dernière partie. L'application est décomposée (Après que je l'ai supprimé WEB-INF), Mais le serveur affiche toujours le mauvais site lorsque je passe à l'URL au port 80 ou 8888.
Invité:

Pour répondre aux questions, connectez-vous ou registre