You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sherman Mohler <sm...@ciscolearning.org> on 2004/08/12 23:20:44 UTC
javax.naming.NameNotFoundException: Name Pack322 is not bound in
this Context
I am trying to declare a unique (text based) realm for one of my
webapps. The XML in /conf/Catalina/localhost/cubscout.xml looks like this:
-----------------------------------------------------------------------
<Context path="/cubscouts" docBase="Cub">
<Resource name="Pack322Database" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="Pack322Database">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/pack322-users.xml</value>
</parameter>
</ResourceParams>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="Pack322Database"/>
</Context>
-----------------------------------------------------------------------------
I get the startup error: "javax.naming.NameNotFoundException: Name
Pack322Database is not bound in this Context"
It is worth noting that when I move the <Resource> into the server.xml
as a <GlobalNamingResources> element everything works.
Any suggestions would be greatly appreciated.
Kind Regards,
-- Sherman
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org