It's all about the answers!

Ask a question

"CRJAZ0527I Failed to lookup datasource." when running repotools with a J2EE data source

Martha (Ruby) Andrews (3.0k44351) | asked May 24 '13, 2:32 p.m.
edited May 24 '13, 2:33 p.m.

A customer recently reported this issue. I share it here to help others who may encounter the same.

When doing a migration to a new version, addTables fails. Here are the relevant lines from the stack trace:

2013-05-17 10:03:58,412 CRJAZ1093I The following service class was not activated: "" CRJAZ1092I The service class "" failed during activation
Caused by: java.lang.RuntimeException: CRJAZ0520I Failed to create the connection pool.
Caused by: CRJAZ0527I Failed to lookup datasource.
Caused by: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

Jazz is setup to use a J2EE data source. What is going on?

I will provide the answer in my next post.


Martha (Ruby) Andrews
Jazz L3 Foundation Developer

One answer

permanent link
Martha (Ruby) Andrews (3.0k44351) | answered May 24 '13, 2:35 p.m.
There is an enhancement request related to this. It has been closed with a workaround. For details, see repotools does not support = J2EE (151547)

It is not possible for repotools to work with a J2EE connection because repotools doesn't run inside a J2EE container. The workaround is to use a JDBC connection when running repotools. This can be done in any of the following ways:
 -- copy the existing file. In the copy, change the property to be JDBC. Specify the copy using the argument to repotools
 -- manually override the VMARGS argument when running the command. Here is an example of doing so on Linux:
 $ ./ -createTables

Martha (Ruby) Andrews
Jazz L3 Foundation Developer

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.