tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klotz Jr, Dennis" <DKl...@empirix.com>
Subject RE: context.xml my old friend
Date Tue, 07 Feb 2006 19:50:58 GMT
Thanks George.

In my case, the server restart doesn't help. But that might be because
I've changed my Engine parameters from the default. I've turned off
autoDeploy. Here is an excerpt from server.xml:

<Host name="localhost" debug="0" appBase="webapps"
      unpackWARs="true" autoDeploy="false" deployOnStartup="true"
      xmlValidation="false" xmlNamespaceAware="false" deployXML="false"
>

Perhaps that explains why on tomcat restart, my context.xml isn't
recognized?

I turned off autoDeploy in the interest of security. 

I will keep looking for when this gets fixed. I'd really like to be able
to use the META-INF/context.xml without having autoDeploy set to true.
Is this a crazy idea?

-Dennis


-----Original Message-----
From: George Sexton [mailto:gsexton@mhsoftware.com] 
Sent: Tuesday, February 07, 2006 2:08 PM
To: 'Tomcat Users List'
Subject: RE: context.xml my old friend

It has been noted that the META-INF/context.xml is only read on server
startup. It appears that deployment of a new host with a context in the
AppBase does not work.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38351

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

> -----Original Message-----
> From: Klotz Jr, Dennis [mailto:DKlotz@empirix.com] 
> Sent: Tuesday, February 07, 2006 12:04 PM
> To: Tomcat Users List
> Subject: context.xml my old friend
> 
> Sanity check please... (I seem to be saying that a lot -- hmm)
> 
> I cannot get tomcat 5.5.15 to use:
> 
> $CATALINA_HOME/webapp/Monitor/META-INF/context.xml 
> 
> If I take that same (unchanged) file, move and rename it to:
> 
> $CATALINA_HOME/conf/Catalina/localhost/Monitor.xml 
> 
> It works fine. 
> 
> Here are the contents of context.xml:
> 
> <!-- The contents of this file will be loaded for each web application
> -->
> <Context debug="1" reloadable="false" crossContext="true">
> 
>     <Valve
> className="org.apache.catalina.authenticator.FormAuthenticator" 
>            securePagesWithPragma="false" />
> 
>     <Valve
> className="org.apache.catalina.authenticator.NonLoginAuthenticator" 
>            securePagesWithPragma="false" />
> 
>     <Valve
> className="org.apache.catalina.authenticator.SSLAuthenticator" 
>            securePagesWithPragma="false" />
> 
> </Context>
> 
> 
> I think I'm doing things correctly... why doesn't the file
> META-INF/context.xml work? 
> 
> Regards,
> 
> Dennis Klotz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


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


Mime
View raw message