On 3/4/06, James Reynolds <[EMAIL PROTECTED]> wrote: > > I'm working on setting up BASIC authentication using container managed > security in Tomcat 5.5.15. However, It's not working so now I'm > wondering if my set up is wrong. The JNDI DataSource definitely works, > I'm not so sure about the realm. Is there another way to test it? > Would you mind looking at my configuration files?
> *Context.xml* As another said, it's indeed context.xml. > <?xml version="1.0" encoding="UTF-8"?> > <Context path="/npp"> No "path" attribute. > <Resource name="jdbc/NppDB" auth="Container" > type="javax.sql.DataSource" > driverClassName="oracle.jdbc.driver.OracleDriver" > url="jdbc:oracle:thin:@server:1521:SID" > username="scott" password="tiger" maxActive="20" maxIdle="10" > removeAbandoned="true" > logAbandoned="true" > maxWait="-1"/> > > <Realm className="org.apache.catalina.realm.DataSourceRealm" > debug="99" No "debug" attribute. > dataSourceName="jdbc/NppDB" > userTable="NPPUSER" userNameCol="EMAIL" userCredCol="PASSWORD" > userRoleTable="USER_ROLE" roleNameCol="ROLE"/> http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#DataSourceRealm localDataSource attribute: When the realm is nested inside a Context element, this allows the realm to use a DataSource defined for the Context rather than a global DataSource. If not specified, the default is false: use a global DataSource. -- xxxxxxxxxxxxxxxxxxxxxxxxx Rémy Maucherat Developer & Consultant JBoss Europe xxxxxxxxxxxxxxxxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]