I'm having the exact same problem and have followed a similar path
looking for a solution - but no success yet. I'll keep the list
posted if I find anything. I eagerly await suggestions here too of
course.
thx
Eric
On 4/3/06, sean.harrison@(protected):
> I'm migrating web applications from Tomcat v.4 to v.5.5 and having some
> trouble adapting my old virtual hosts setup with the 5.5 recommended
> methods.
>
> According to http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> "In addition to nesting Context elements inside a Host element, you can
> also store them: in individual files (with a ".xml" extension) in the
> $CATALINA_HOME/conf/[enginename]/[hostname]/ directory"
>
> So to make sure I know what I'm doing, I used a server.xml with this:
>
> <Engine name="Catalina" defaultHost="localhost">
> <Realm className="
org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>
> <Host name="localhost" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
> </Host>
> </Engine>
>
> And then created a file $CATALINA_HOME/conf/Catalina/localhost/sean.xml
> with my Context element, which reads,
>
> <Context path="" docBase="ROOT"></Context>
>
> But when I start Tomcat, I get surprising errors. First...
>
> Apr 3, 2006 3:05:13 PM
org.apache.catalina.startup.HostConfig> deployDescriptor
> WARNING: A docBase /var/tomcat5/webapps/ROOT inside the host appBase
> has been specified, and will be ignored
>
> Although Tomcat seems to be trying to read my docBase param, something is
> not right. It thinks "appBase" is a host.[?] Then I get...
>
> Apr 3, 2006 3:05:13 PM
org.apache.catalina.core.StandardContext> resourcesStart
> SEVERE: Error starting static Resources
>
java.lang.IllegalArgumentException: Document base
> /var/tomcat5/webapps/sean does not exist or is not a readable directory
>
> Tomcat seems to be looking for a web app by the name of "sean" from the
> filename "sean.xml." But according to
> http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html "If a Context
> Descriptor is... ...manually created, the filename need not match the web
> application name as Tomcat is concerned only with the Context
> configuration contained within the Context Descriptor file(s)."
>
> With Tomcat 4 I had my Context Descriptors outside of server.xml and
> separated by virtual hosts in individual files very similar to v5.5's
> $CATALINA_HOME/conf/[enginename]/[hostname]/ approach, but now I can't
> seem to get grasp how exactly v.5.5. wants it done.
>
> What am I missing?
>
> Thanks in advance,
>
>
>
> S e a n H a r r i s o n
> - - -
> Internet Services Administrator
> Lincoln, Nebraska
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)