I believe the attributes named differently. I am using 4.1.19 under Windows. I don't remember from which version on the following attributes name differently.
userName now called connectionName userPassword now called connectionPassword I think that maybe the problem. Cheers -----Original Message----- From: Mubaraka Arif [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:32 PM To: Tomcat Users List Subject: Re: tomcat4 dies when JBDC Realm is configured ......... <Realm classname="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="com.informix.jdbc.IfxDriver" connectionURL="jdbc:informix-sqli://" userName="mubaraka" userPassword="login" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="roles" roleNameCol="rolename"/> <!-- Define the default virtual host --> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="false" autoDeploy="true"> <!-- Logger shared by all Contexts related to this virtual host. --> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_" suffix=".log" timestamp="true"/> <Context path="/atrox" docBase="atrox" debug="0" reloadable="true"> </Context> <Context path="/onjava" docBase="onjava" debug="0" reloadable="true"> </Context> <Context path="/loginexample2" docBase="loginexample2" debug="0" reloadable="true"> </Context> </Host> </Engine> </Service> pls suggest whether my placing of the Realm needs change to resolve the problem. Thanks for all yr help Mubaraka On 2003.02.24 15:08 "Tam, Michael" wrote: > Hi Mubaraka, > > Can you verify if your JDBC library does work? For example, use a > simple > jsp/servlet to call JDBC to connect to your db?? Once JDBC is working > then > we can narrow down where the problem is. > > Michael > > -----Original Message----- > From: Mubaraka Arif [mailto:[EMAIL PROTECTED] > Sent: Monday, February 24, 2003 11:51 AM > To: Tomcat Users List > Subject: Re: tomcat4 dies when JBDC Realm is configured > > > > hi michael, > > I had provided the ConnectionURL, connectionName and > connectionPassword > , its jsut for security reasons I did not have it along with other > details. > I tried it placing under host, context and Engine services but still > it > dies. > > All help would be appreciated > > Mubaraka > > > On 2003.02.24 12:34 "Tam, Michael" wrote: > > In your xml, if it is what you're using in your setup, then you > didn't > > provide any value to connectionURL, connectionName, and > > connectionPassword > > to establish connection to the database. If you need help on this, > > you > > should read the document that comes with tomcat where you will find > a > > section related to setting up JDBC REALM and the document of the > JDBC > > driver > > that you use. > > > > Hope this help. > > > > Michael > > > > -----Original Message----- > > From: Mubaraka Arif [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 24, 2003 9:16 AM > > To: Tomcat Users List > > Subject: tomcat4 dies when JBDC Realm is configured > > > > > > hello , > > > > I have been trying to establish conainer amanaged security , so I > > tried > > to configure it using JDBC Realm. > > Steps what I follwed where : > > > > 1. created users table with fields username, password. > > > > 2. created roles tables with fields username, rolename. > > > > 3. In server.xml I added the JDBC Realm as follows : > > Snippet of server.xml > > > > <!-- Define the default virtual host --> > > <Host name="localhost" debug="0" appBase="webapps" > > unpackWARs="false" autoDeploy="true"> > > > > <!-- Logger shared by all Contexts related to this virtual > > host. --> > > <Logger className="org.apache.catalina.logger.FileLogger" > > directory="logs" prefix="localhost_" suffix=".log" > > timestamp="true"/> > > > > <Realm classname="org.apache.catalina.realm.JDBCRealm" > > debug="99" > > driverName="com.informix.jdbc.IfxDriver" > > connectionURL=" " > > connectionName="" > > connectionPassword="" > > userTable="users" > > userNameCol="username" > > userCredCol="password" > > userRoleTable="roles" > > roleNameCol="rolename:/> > > > > <Context path="/onjava" docBase="onjava" debug="0" > > reloadable="true"> > > </Context> > > > > > > > > </Host> > > > > </Engine> > > > > </Service> > > > > > > When I start tomcat4 , it starts and dies in about 60sec. > > > > If any of you have encountered such situations , please provide > some > > light to this problem which would be greatly appreciated. > > > > Mubaraka Arif > > Data Management Software Developer > > St Mary's University, San Antonio, TX > > e-mail : [EMAIL PROTECTED] > > phone: 210-436-3647 > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
