changes in server.xml:
===
<GlobalNamingResources>

  <Resource type="org.apache.catalina.UserDatabase" description="User
database that can be updated and saved" auth="Container"
name="PhotoAlbum"/>
    <ResourceParams name="PhotoAlbum">
    <parameter>
      <name>factory</name>
      <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
      <name>pathname</name>
      <value>conf/Catalina/photoalbum.localhost/photoalbum-users.xml</value>
    </parameter>
  </ResourceParams>  

</GlobalNamingResources>
===

changes in [context].xml
===
<?xml version='1.0' encoding='utf-8'?>
<Context privileged="true" swallowOutput="true"
workDir="work\Catalina\photoalbum\" path="/" cacheTTL="0"
cachingAllowed="false" displayName="bannerEmbedded beta" docBase="."
cacheMaxSize="0" reloadable="true">
  <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="PhotoAlbum"/>
  <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs/photoalbum/" fileDateFormat="yyyy-MM-dd" suffix=".txt"
prefix="photoalbum_access_log."/>
  <ResourceLink name="PhotoAlbum" global="PhotoAlbum"
type="org.apache.catalina.UserDatabase"/>
 </Context>
===

Question 1)
Also if I've red the tomcat site docs I cant understand so good what
ResourceLink does. Does anyone can explain me?

Question 2)
Using this approach I have changed the server.xml manually. So, if I
need/want to deploy my own webapp using a war file, which approach I
have to use?

(I'm sorry fot my bad english...)

On Sun, 6 Feb 2005 20:00:04 +0100, Omar Adobati <[EMAIL PROTECTED]> wrote:
> >But did you "connect" the UserDatabase
> > with the web-application by specifying a realm in your context?
> > (context.xml or server.xml)
> 
> How can I set the Realm in my Context to specity an xml database?
> (maybe this is the main problem because it actually not exist)
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to