tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Configuring a DataSourceRealm
Date Thu, 24 May 2007 19:47:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> I copied the Mysql Driver's jar into $CATALINA_HOME/common/lib.

Ok.

> I already created the database with the required tables user,
> user-roles and roles.

Ok.

> I configured JNDI DataSource in Tomcat by adding a declaration for my
> resource named jdbc/oaso into a Context path to
> $CATALINA_HOME/conf/server.xml.

So you have a JNDI data source configured in server.xml? Does it need to
be global? If not, put it into your webapp in META-INF/context.xml

> I configured the <security-constraint> on the web.xml

Ok.

> I added the <resource-ref> to the jdbc/oaso into the web.xml

Good. If you configure your DataSource in context.xml, you don't need
this step, though I don't think it hurts.

So... how doesn't it work?

Do you get an exception? If so, give us the stack trace.

Do you get a log message? If so, give us the message.

You still haven't described what is wrong. For all I can tell, it's
working. <shrug>

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVeve9CaO5/Lv0PARArGuAJ90ugIycb6XnBc1UFDjDoaLs+WWygCfXRuW
qidBk4elye0qqFm4W4eDurw=
=7mX9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message