You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Janek Bogucki <ja...@yahoo.co.uk> on 2001/10/09 12:00:11 UTC

Is there a DTD for server.xml?

Hi,

I'm trying to figure out how to configure Tomcat 4.0
to look in a location different to
$CATALINA_HOME/webapps for my web applications when
using the WebApp connector with Apache 1.3.19 on Red
Hat 7.1.

In server.xml I have tried modifying the 'appBase'
attribute of the Engine element but TC continues to
look for $CATALINA_HOME/webapps.

As 'appBase' is not mentioned in the documentation for
Engine 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html)
I thought the DTD for server.xml might help me. Does
such a DTD exist?

Many Thanks,
Janek Bogucki

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Re: Is there a DTD for server.xml?

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 10 Oct 2001, Janek Bogucki wrote:

> Date: Wed, 10 Oct 2001 17:34:22 +0100 (BST)
> From: Janek Bogucki <ja...@yahoo.co.uk>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Is there a DTD for server.xml?
>
> Thanks Craig.
>
> The appBase attribute should be removed from the
> Engine element in the server.xml file that comes with
> TC. I haven't download TC recently but the attribute
> was there in the last TC download I did.
>

Grumble grumble ... I never noticed that the mod_webapp connector uses
appBase in the wrong place.  That's going to need to be changed in the
software to something else -- it's too confusing the way it is.


> BTW, how do I change the appBase for an Engine being
> feed by a warp connector?
>

Don't know at the moment (I never use web connectors for anything), but
I'll look at the source code.

> Many Thanks,
> Janek Bogucki
>

Craig


>  --- "Craig R. McClanahan" <cr...@apache.org>
> wrote:
> > The "appBase" parameter is not documented on the
> > <Engine> element page
> > because it belongs (and is shown) on the <Host>
> > element page instead:
> >
> >
> >
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
> >
> > Craig
> >
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>


Re: Is there a DTD for server.xml?

Posted by Janek Bogucki <ja...@yahoo.co.uk>.
Thanks Craig.

The appBase attribute should be removed from the
Engine element in the server.xml file that comes with
TC. I haven't download TC recently but the attribute
was there in the last TC download I did.

BTW, how do I change the appBase for an Engine being
feed by a warp connector?

Many Thanks,
Janek Bogucki

 --- "Craig R. McClanahan" <cr...@apache.org>
wrote:
> The "appBase" parameter is not documented on the
> <Engine> element page
> because it belongs (and is shown) on the <Host>
> element page instead:
> 
>  
>
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
> 
> Craig
>  

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Re: Is there a DTD for server.xml?

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 9 Oct 2001, Janek Bogucki wrote:

> Date: Tue, 9 Oct 2001 11:00:11 +0100 (BST)
> From: Janek Bogucki <ja...@yahoo.co.uk>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Is there a DTD for server.xml?
>

No, and for technical reasons there cannot be one (the set of attributes
that are recognized depends on the actual classes in use, so you cannot
define a static DTD that covers all possible cases).

> Hi,
>
> I'm trying to figure out how to configure Tomcat 4.0
> to look in a location different to
> $CATALINA_HOME/webapps for my web applications when
> using the WebApp connector with Apache 1.3.19 on Red
> Hat 7.1.
>
> In server.xml I have tried modifying the 'appBase'
> attribute of the Engine element but TC continues to
> look for $CATALINA_HOME/webapps.
>
> As 'appBase' is not mentioned in the documentation for
> Engine
> (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html)
> I thought the DTD for server.xml might help me. Does
> such a DTD exist?
>

The "appBase" parameter is not documented on the <Engine> element page
because it belongs (and is shown) on the <Host> element page instead:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html


> Many Thanks,
> Janek Bogucki
>

Craig