tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <gsex...@mhsoftware.com>
Subject RE: <Context> in separate file doesn't work
Date Fri, 02 Sep 2005 19:51:32 GMT
I'd like to claim superior knowledge and intellect, but really I just did
this one myself a few weeks ago.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Trond Hersløv [mailto:trond.herslov@GOTOGATE.no] 
> Sent: Friday, September 02, 2005 12:02 PM
> To: Tomcat Users List
> Subject: RE: <Context> in separate file doesn't work
> 
> Hi George,
> 
> Thank you very much, you made my day!!
> I thought I could name the .xml files whatever I like to, but 
> that was a huge mistake that costed me 2 days.
> Naming the file ROOT.xml solved the problem. Can't remember 
> having read that anywhere in the doc's. 
> Don't know if it's just a bad style, but path="" and path="/" 
> seems both to work well. But I'll listen to you and use an 
> empty string.
> 
> 
> Once again, thank you very much and have a nice weekend
> 
> 
> -----Original Message-----
> From: George Sexton [mailto:gsexton@mhsoftware.com] 
> Sent: Friday, September 02, 2005 18:13
> To: 'Tomcat Users List'
> Subject: RE: <Context> in separate file doesn't work
> 
> One other thing, for a ROOT context, the file should be named ROOT.xml
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>   
> 
> > -----Original Message-----
> > From: Trond Hersløv [mailto:trond.herslov@GOTOGATE.no]
> > Sent: Friday, September 02, 2005 4:50 AM
> > To: Tomcat Users List
> > Subject: <Context> in separate file doesn't work
> > 
> > Hi tomcat fellas!
> > http://venus:8080 gives me the index.html in the folder 
> > /home/trond/GTG/inside, but only when I use the server.xml below.
> > When I take the <Context..... /> and put it in a separate file, 
> > ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt 
> work anymore.
> > Does anybody know why? Do I have to set any attributes like 
> > autoDeploy="false" in the <Host> tag or what am I missing here?
> > 
> > Thanks in advance.
> > 
> > \trond
> > 
> > 
> > ************************************* server.xml
> > ****************************************
> > Server port="8005" shutdown="SHUTDOWN">
> > 
> >   <GlobalNamingResources>
> >     <!-- Used by Manager webapp -->
> >     <Resource name="UserDatabase" auth="Container"
> >               type="org.apache.catalina.UserDatabase"
> >        description="User database that can be updated and saved"
> >            
> > factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> >           pathname="conf/tomcat-users.xml" />
> >   </GlobalNamingResources>
> > 
> >   <Service name="Catalina">
> >     <Connector port="8080" />
> > 
> >     <!-- This is here for compatibility only, not required -->
> >     <Connector port="8009" protocol="AJP/1.3" />
> > 
> >     <Engine name="Catalina" defaultHost="localhost">
> >       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> >              resourceName="UserDatabase" />
> >       <Host name="localhost" appBase="/home/trond/GTG/outside" />
> >       <Host name="venus" appBase="/home/trond/GTG/inside" >
> >         <Context docBase="/home/trond/GTG/inside" path="/" />
> >       </Host>
> >     </Engine>
> >     
> >   </Service>
> > </Server>
> > **************************************************************
> > ****************************
> > 
> > 
> > 
> **********************************************************************
> > This email message has been swept by
> > MIMEsweeper for the presence of computer viruses.
> > 
> **********************************************************************
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message