tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio J. Ortega" <na...@siapi.es>
Subject RE: Re[2]: Difficulties getting JDBCRealm to work with MySQL driv er
Date Wed, 31 Jan 2001 16:36:34 GMT
Tomcat 3.3 will have perContext Interceptors..FYI

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: hische@hadv.nl [mailto:hische@hadv.nl]
> Enviado el: miƩrcoles 31 de enero de 2001 16:20
> Para: tomcat-user@jakarta.apache.org
> Asunto: Re[2]: Difficulties getting JDBCRealm to work with 
> MySQL driver
> 
> 
> 
> 
> Thanks Ignacio!
> 
> The realm specification in server.xml now reads:
> 
> <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
>              driverName="org.gjt.mm.mysql.Driver"
>           
> connectionURL="jdbc:mysql://localhost/authority?user=root&amp;
> password=apassword"
>               userTable="User" userNameCol="uname" 
> userCredCol="password"
>           userRoleTable="UserRoles" roleNameCol="rname" />
> 
> and it works.
> 
> However the main reason for me to migrate to tomcat4 at this 
> moment is the
> ability to specify a JDBC realm per webapp.
> I tried to move the Realm tag above to a web.xml file but got 
> the following
> error:
> 
> org.xml.sax.SAXParseException: Element "web-app" does not 
> allow "Realm" here.
> 
> I checked $TOMCAT/conf/web_23.dtd and there is no mention of 
> a realm tag indeed.
> 
> Do you have a suggestion on how to proceed?
> 
> Thanks,
> 
> Wilko
> 
> 
> 
> 
> 
> 
> "Ignacio J. Ortega" <nacho@siapi.es> on 31-01-2001 12:13:15
> 
> Please respond to tomcat-user@jakarta.apache.org
> 
> To:   "'tomcat-user@jakarta.apache.org'" 
> <tomcat-user@jakarta.apache.org>
> cc:    (bcc: Wilko Hische/HADV/NL)
> Subject:  RE: Difficulties getting JDBCRealm to work with MySQL driver
> 
> 
> 
> > Changing the semicolon in the connectionURL to an ampersand 
> (= correct
> > org.gjt.mm.mysql syntax) was refused by the SAX parser?
> >
> > Am I overlooking something?  I am using Tomcat4-4.0-b1.1
> 
> in XML the ampersand is a special character, is forbidden in XML to
> insert and "&" as is , to insert an ampersand you need use "&amp;"
> 
> 
> Saludos ,
> Ignacio J. Ortega
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 

Mime
View raw message