Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problems with JNDI lookup: NamingException

Scenario: I want to search an MDM repository on an MDM server using SAP MDM Connector.For that,I deployed the two SDA’s viz. and onto the SAP J2EE engine.For testing purpose , I am using a standalone Java class to do a JNDI lookup for the deployed MDM connector.But the lookup is throwing a NamingException.I have added all the JAR files like sapj2eeclient.jar , jndi.jar , Connector.jar , ExtendedConnector.jar etc to the classpath of my application.But still it throws the NamingException.

My code is as follows:

public static void main(String[] args)


Context ct =null;

Hashtable env = new Hashtable();




try {

ct = new InitialContext(env);

} catch(NamingException e)







IConnectionFactory cf =(IConnectionFactory) ct.lookup("deployedAdapters/MDM Factory/shareable/MDM Factory");

IConnectionSpec spec = cf.getConnectionSpec();

/* the code to search catalog follows*/

}catch(Exception e)




The exception thrown is: Exception during lookup operation of object with name deployedAdapters/MDM Factory/shareable/MDM Factory, cannot resolve object reference. [Root exception is Cannot lookup ManageConnectionFactory "MDM Factory". Cannot deserialize object: java.lang.ClassNotFoundException:

I'll be thankful for any help/suggestions on this.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question