• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Root exception is java.lang.ClassNotFoundException: NO_MCF_CLASSNAME_SPECIFIED

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Enrico Visconti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[08/02/13 11:49:27:454 BRST] FFDC Exception:java.lang.ClassNotFoundException SourceId:com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.createMCFandPM ProbeId:486 Reporter:com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl@6a836a83
java.lang.ClassNotFoundException: NO_MCF_CLASSNAME_SPECIFIED
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.ibm.ejs.j2c.J2CUtilityClass.createMCFEntry(J2CUtilityClass.java:514)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.createMCFandPM(ConnectionFactoryBuilderServerImpl.java:562)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderServerImpl.processObjectInstance(ConnectionFactoryBuilderServerImpl.java:935)
at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:626)
at javax.naming.spi.NamingManager.getObjectInstanceByFactoryInReference(Unknown Source)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:920)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:723)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:3673)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1843)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1748)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1499)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:636)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:165)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(Unknown Source)
at Tutorials.Customer.getCTRecord(Customer.java:308)
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)
reply
    Bookmark Topic Watch Topic
  • New Topic