tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Cannot create resource instance
Date Mon, 30 Jul 2007 14:11:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Amol,

Amol Chaudhari wrote:
> jndiContextRoot.lookup("java:comp/UserTransaction");

Did you ever setup this JNDI object? Where is the configuration for
that? (Please excuse my ignorance... I don't use transations in such a
manner).

> If I comment out the UserTransaction part from the above code, things
> work perfectly fine.

Really? I would have expected NullPointerExceptions all over the place
if you never retrieved the UserTransaction object successfully.

> Here you may say that its not necessary to use it. But this is my
> sample application, built simply to localize the problem. In my
> project it is necessary to use it.

Okay. How does the transaction thing get into JNDI? Do you create that
object somewhere and stuff it in there? It seems a little fragile...
don't multiple requests to the same page share that transaction and ...
well, totally fail? Again, I may completely misunderstand the way these
JNDI-based transactions work.

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

iD8DBQFGrfGT9CaO5/Lv0PARAvZsAKCEG72zPQBcuEG+ctnX7zc+FVtegwCgihYG
Gxp3sRmWNcgK9IRHtYUlY0M=
=HU6N
-----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