dcsimg
JNDI named DataSource Realm problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Milica_Zivkov
Posted On:   Wednesday, July 11, 2007 12:41 PM

I tryed to configure my app to use DataSourceRealm, but when i fill login page and submit, i keep getting error page(defined in web.xml for my application). Here's META-INF/context.xml: type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="username" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/typewriter?autoReconnect=true"/> dataSourceName="jdbc/typewriter" roleNameCol="rolename" userCredCol="password" userNameCol="username   More>>

I tryed to configure my app to use DataSourceRealm, but when i fill login page and submit, i keep getting error page(defined in web.xml for my application).


Here's META-INF/context.xml:






type="javax.sql.DataSource" maxActive="100" maxIdle="30"
maxWait="10000" username="username" password="password"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/typewriter?autoReconnect=true"/>





dataSourceName="jdbc/typewriter"

roleNameCol="rolename"

userCredCol="password"

userNameCol="username"

userRoleTable="roles"

userTable="members"

/>





I dont have problem accessing this DataSource from my application's code. Also,JDBCRealm authorization works fine.

Do you have any idea what's wrong?

   <<Less
About | Sitemap | Contact