|
Problem(Abstract) |
You have changed Object obj =
ctx.lookup("jta/usertransaction"); to Object obj =
ctx.lookup("java:comp/env/UserTransaction"); in accordance with the
Java™ 2 Platform, Enterprise Edition version 1.3 specification (J2EE™).
When migrating your Web application from V4.0 to V5.0, the following
naming exception is encountered:
2004.01.16 11:46:34 EST | TitaniumLogging | o5atw001 | NOTRANSID |
DEBUG | TIDEBUG | Could not resolve lookup for 'java:
comp/env/UserTransaction' | DispatcherThread: 0 | NOLOCATION |
|
|
|
Cause |
Additional resources need to be defined in the
web.xml file for your application. |
|
|
Resolving the
problem |
In order to use,
Object obj = ctx.lookup("java:comp/env/UserTransaction");
you must first define a javax.transaction.UserTransaction
resource in the web.xml, called UserTransaction.
Map UserTransaction to a Java Naming and Directory Interface™
(JNDI) name, jta/usertransaction, or map the resource at
deployment time to the cosNaming resource:
cell/cell_name/server/server_name/jta/usertransaction
Open the ScreenShot document below for a view of the Application
Server Toolkit (ASTK) window showing the necessary modifications to the
Web deployment descriptor. |
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|