cancel
Showing results for 
Search instead for 
Did you mean: 

NameNotFoundException when I look up a QueueConnectionFactory

Former Member
0 Kudos

Hello,

I have configured a QueueConnectionFactory in the

Cluster->Server(Instance)->Services->JMS Provider->default->ConnectionFactories(tab)

The look up name as :

jmsfactory/default/QueueConnectionFactory

I am creating Initial Context using Sun's Factory Implementation (which is getting connected to the J2E instance running on localhost). I guess Sun's factory should be okay since jndi is the interface here and SAP and Sun are implementations only.

INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory

PROVIDER_URL=file://localhost:50004/

LookUpName=jmsfactory/default/QueueConnectionFactory

I am getting NameNotFoundException.

Any ideas why this might be happening ?

Thanks

Pawan

Accepted Solutions (0)

Answers (1)

Answers (1)

guru_subramanianb
Active Contributor
0 Kudos

Hi,

This error is occuring because you have not included your driver file in the project folder.hence it is unable to set the classpath.

Regards,

Guru

Former Member
0 Kudos

Hi, I couldn't understand the reply. Please elaborate. Which driver file do you mention? Where can I find the JAR for that driver?

Can you mention the driver file name too ?

As far as my understanding goes for JNDI, the NamingNotFoundException is thrown when there is no Name bound in the context as the provided name parameter. Please also mention if this understanding is right.

Thanks,

Pawan

Former Member
0 Kudos

Pawan,

Did you find out which driver file was missing. We are encountering this same error message.

Thanks.

James