tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caroline Jen <jiapei_...@yahoo.com>
Subject Re: Tomcat JDBCRealm And <security-constraint> in the web.xml
Date Sun, 12 Oct 2003 20:41:04 GMT
Tim:

    Would you explain "refine the <Realm> in each
context where it is needed"?

-Caroline
--- Tim Funk <funkman@joedog.org> wrote:
> Move the Realm declaration outside of the <Context>
> declaration into the 
> <Host> declaration. Or refine the <Realm> in each
> context where it is needed.
> 
> -Tim
> 
> Caroline Jen wrote:
> > My applications behave wierd after I configured
> the
> > JDBCRealm.  After experimenting in many different
> > ways, I found that as long as I have the JDBCRealm
> in
> > the server.xml, the Tomcat does not accept
> > <security-constraint> specified in the
> application's
> > web.xml file.  Please help me.
> > 
> > My configuration in the
> $TOMCAT_HOME/conf/sever.xml is
> > shown below:
> > 
> > <Engine>
> > <Host>
> > <Context>
> > <Realm
> className="org.apache.catalina.realm.JDBCRealm"
> > debug="99"
> >  driverName="com.mysql.jdbc.Driver"
> > 
> connectionURL="jdbc:mysql://localhost:3306/artimus 
> >                  user=javauser&password=javadude"
> >  userTable="members" userNameCol="user_name" 
> >                  userCredCol="user_password"
> >  userRoleTable="user_roles"
> roleNameCol="user_role"/>
> > </Context>
> > </Host>
> > </Engine>
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


Mime
View raw message