Chris Walker wrote:
> I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5.  It's
> working OK, but reading through the documentation I see there is a
> recommendation that I remove the <Context> sections from server.xml and put
> them in files in {catalina_root}/conf/[engine]/[Host].
>
> But when I do this I find that each of the contexts just responds with an
> empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to
> suggest an error.  This is the response:
>
> ---------------------------------------------------------------------------
>- ---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
> ---------------------------------------------------------------------------
>- ---
>
> I've tried various names for the context XML files, and I've tried
> specifying an absolute path for the context docBase, but it seems to make
> no difference.
>
> Can anybody suggest what I'm doing wrong?
>
> Chris Walker
>
> ---------------------------------------------------------------------------
>- ---
> This is my server.xml after modification:
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>   <Service name="Catalina">
>
>     <Connector port="80"
>                maxHttpHeaderSize="8192"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" redirectPort="8443" acceptCount="100"
>                connectionTimeout="20000" disableUploadTimeout="true" />
>
>     <Connector port="8009"
>                enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
> />
>
>     <Engine name="Catalina" defaultHost="www.iboserver.com">
>
>         <Host name="www.iboserver.com" debug="0"
>                 appBase="webapps/ibo"
>                 unpackWARs="false"
>                 autoDeploy="false"
>                 liveDeploy="false"

I don't see "liveDeploy" documented for the <Host> element.

>                 deployOnStartup="false"

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment
says that the individual XML files in conf/[engine name]/[host name] will be 
processed when this is set to "true". You should change the value.

>                 deployXML="false">
>
> <!--
>   This section moved to ./Catalina/www.iboserver.com/ROOT.xml
>  
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvv
>
>          <Context path="" docBase="ibo3"

If your <Context> is located in an individual XML file, the "path" attribute 
must not be set:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common%20Attributes
It won't hurt though, since Tomcat simply ignores it in this case.
Also, AFAIK setting "docBase" in an individual XML file is only useful if it 
points to a directory *outside* of the <Host>'s appBase. For example, if 
{appBase}/ibo3 exists, it will be the webapp reachable by
http://www.iboserver.com/ibo3
There is no way i know of for making this reachable by
http://www.iboserver.com/fordprefect
Especially there seems no way to define a directory other than {appBase}/ROOT 
as the directory containing the <Host>'s root webapp.

So, you could try the following:
- set "deployOnStartup" to "true",
- remove the "path" and "docBase" attributes from the <Context> descriptor,
- rename (move) the directory containing your root webapp ("ibo3"?) to 
{appBase}/ROOT

HTH
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to