Topic
No replies
SystemAdmin
SystemAdmin
67 Posts
ACCEPTED ANSWER

Pinned topic Root exception is java.lang.ClassNotFoundException: NO_MCF_CLASSNAME_SPECIF

‏2013-02-08T16:07:08Z |
Hello, I created an EJB that uses a resource adapter that I created. It works fine in Glassfish, but while trying it in Websphere 7.0 I am getting the following error:
Exception in thread "P=355599:O=0:CT" java.rmi.RemoteException: CORBA UNKNOWN 1229127302 Maybe; nested exception is:
org.omg.CORBA.UNKNOWN:
>> SERVER (id=4773e3aa, host=enrico-dell) TRACE START:
>> javax.ejb.EJBException: Couldn't retrieve connection factory; nested exception is: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.ClassNotFoundException: NO_MCF_CLASSNAME_SPECIFIED
>> at Tutorials.Customer.getCTRecord(Customer.java:311)
>> at Tutorials.Customer.deleteRecords(Customer.java:59)
>> at Tutorials.EJSRemote0SLCustomer_8bdef49f.deleteRecords(EJSRemote0SLCustomer_8bdef49f.java)
>> at Tutorials._EJSRemote0SLCustomer_8bdef49f_Tie.deleteRecords(_EJSRemote0SLCustomer_8bdef49f_Tie.java)
>> at Tutorials._EJSRemote0SLCustomer_8bdef49f_Tie._invoke(_EJSRemote0SLCustomer_8bdef49f_Tie.java)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
>> at com.ibm.rmi.iiop.ORB.process(ORB.java:504)
>> at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
>> at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2771)
>> at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2640)
>> at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
>> at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
>> SERVER (id=4773e3aa, host=enrico-dell) TRACE END.
vmcid: 0x4942f000 minor code: 3718 completed: Maybe
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:295)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at Tutorials._CustomerRemote_Stub.deleteRecords(_CustomerRemote_Stub.java)
at Tutorial1.client.Main.Delete_Records(Main.java:74)
at Tutorial1.client.Main.Manage(Main.java:57)
at Tutorial1.client.Main.main(Main.java:35)
Caused by: org.omg.CORBA.UNKNOWN:
>> SERVER (id=4773e3aa, host=enrico-dell) TRACE START:
>> javax.ejb.EJBException: Couldn't retrieve connection factory; nested exception is: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.ClassNotFoundException: NO_MCF_CLASSNAME_SPECIFIED
>> at Tutorials.Customer.getCTRecord(Customer.java:311)
>> at Tutorials.Customer.deleteRecords(Customer.java:59)
>> at Tutorials.EJSRemote0SLCustomer_8bdef49f.deleteRecords(EJSRemote0SLCustomer_8bdef49f.java)
>> at Tutorials._EJSRemote0SLCustomer_8bdef49f_Tie.deleteRecords(_EJSRemote0SLCustomer_8bdef49f_Tie.java)
>> at Tutorials._EJSRemote0SLCustomer_8bdef49f_Tie._invoke(_EJSRemote0SLCustomer_8bdef49f_Tie.java)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
>> at com.ibm.rmi.iiop.ORB.process(ORB.java:504)
>> at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
>> at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2771)
>> at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2640)
>> at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
>> at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
>> SERVER (id=4773e3aa, host=enrico-dell) TRACE END.
vmcid: 0x4942f000 minor code: 3718 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.ibm.rmi.iiop.ReplyMessage._getSystemException(ReplyMessage.java:250)
at com.ibm.rmi.iiop.ReplyMessage.getSystemException(ReplyMessage.java:198)
at com.ibm.rmi.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:230)
at com.ibm.rmi.corba.ClientDelegate.intercept(ClientDelegate.java:987)
at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:448)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:783)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1214)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
... 4 more
Java Result: 1

My EJB is trying to retrieve the connection factory with the following code:

// retrieve the application server naming context (JNDI)
initctx = new InitialContext();

// retrieve the connection factory
connFactory = (ConnectionFactory) initctx.lookup("eis/myConnFactory");

Do you have any idea about what is wrong?

Thank you

Enrico