cancel
Showing results for 
Search instead for 
Did you mean: 

ConnectionException

Former Member
0 Kudos

Hi All,

While i try to deploy a dc in the server i'm getting the following exception.

ConnectionException,cause=[ERROR CODE DPL.DCAPI.1144] NamingException.Cannot get initial context.Reason: Exception while trying to get InitialContext.

Any suggestions??

Thanks,

Murli

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Murli,

to be more specific. If you are using similar type of code as mentioned below. Then please check the datasource name you have given.

InitialContext initialContext = new InitialContext();
			DataSource dataSource =
				(DataSource) initialContext.lookup(
					resourceBundle.getString("datasource"));
			conn = dataSource.getConnection();

Regards

Narendra

Former Member
0 Kudos

Hi Narendra Singh,

i hav not coded anything. i jst created a component and a application. when i try to deploy i'm getting that error.

Former Member
0 Kudos

Situation resolved, When the server was restarted everything is working fine.

Thanks for the support,

Murli

Former Member
0 Kudos

Hi Murli,

if your apllication using some database connection then please check the name you have given to initial context.

Hope this will help

Regards

Narendra