struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calvin Lau <alienat...@yahoo.com>
Subject Tomcat 4.0 Server.XML Config
Date Tue, 28 Aug 2001 11:40:44 GMT
I'm trying to define web applications with document
roots in places other than the virtual host's webApps
directory.  Somehow I can't seem to add any Contexts
to the default server.xml file. 

When I try to add:

        <Context path="/"
                 docBase="c:/myNewApp"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
        </Context>

right before:

        <Context 
                 path="/examples" 
                 docBase="examples"  
                 debug="0"
                 reloadable="true">
        ....
        </Context>

I get the following:

"PARSE error at line 7 column -1
org.xml.sax.SAXParseException: XML declaration may
only begin entities."

I'm sticking it right before the examples context in
server.xml so I dont see why there would be an XML
error.  Am I supposed to do something else to make
Tomcat4.0 recognize apps outside of the webapps
directory?  I was using Tomcat 3.2 and the same code
in server.xml worked fine.

Thanks in advance.

Calvin

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message