You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Boyer <Da...@bvu.edu> on 2005/02/24 15:57:32 UTC

context elements in /conf/[enginename]/[hostname]

I'm upgrading my Tomcat 5.0.x installations to 5.5.7. All of my context
elements are defined in individual files (with a ".xml" extension) in
the $CATALINA_HOME/conf/[enginename]/[hostname]/directory as per the
Tomcat documentation.
 
All of the defined contexts are loaded when Tomcat 5.0.28 starts, but
not in my 5.5.7 installation. My host element has deployXML="true",
autoDeploy="true", and deployOnStartup="true".
 
What am I missing that would cause this not to work in TC 5.5.7? If I
define the contexts in my server.xml, they work fine, but I'd rather put
them in $CATALINA_HOME/conf/[enginename]/[hostname]/
 
TIA!

tomcat-users.xml

Posted by Just another UFO mechanic <os...@ufomechanic.net>.
Hi 

   I would like to use a file be that XML or CSV for user authentication
on a realm. I am using the conf/tomcat-user.xml but I have to restart
each time its up dated. What I find confusing is it says in server.xml
(Tomcat 5.0.12)

<!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->

Immediately available would lead me to think that it checks the file for
updates. Is there a flag I have to set. Or is my only option to write a
custom realm.
 

 <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
       
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>

Thanks


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


Re: context elements in /conf/[enginename]/[hostname]

Posted by Jacob Kjome <ho...@visi.com>.
You do realize that the context configuration files have changed between
Tomcat-5.0.xx and Tomcat-5.5.x, right?  If not, read the docs.  If you used the
"path" attribute before in the standalone files, you no longer do that.  The
path is implied by the name of the file.  All you specify is the "docBase". 
And, of course, no more <Logger> elements.

Jake

Quoting David Boyer <Da...@bvu.edu>:

> I'm upgrading my Tomcat 5.0.x installations to 5.5.7. All of my context
> elements are defined in individual files (with a ".xml" extension) in
> the $CATALINA_HOME/conf/[enginename]/[hostname]/directory as per the
> Tomcat documentation.
>
> All of the defined contexts are loaded when Tomcat 5.0.28 starts, but
> not in my 5.5.7 installation. My host element has deployXML="true",
> autoDeploy="true", and deployOnStartup="true".
>
> What am I missing that would cause this not to work in TC 5.5.7? If I
> define the contexts in my server.xml, they work fine, but I'd rather put
> them in $CATALINA_HOME/conf/[enginename]/[hostname]/
>
> TIA!
>




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