com.ibm.websphere.naming.CannotInstantiateObjectException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Data source error -- J2CA0106E
    via by sonu,
    • com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI was processing a object. Root exception is : Attempted to use a 5.0 DataSource outside of a 2.3 servlet at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validServlet(ConnectionFactoryBuilderImpl.java:1109) at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFactoryBuilderImpl.java:730) at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:330) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:314) at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:874) at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:681) at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1969) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1824) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1737) at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1444) at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1324) at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144) at javax.naming.InitialContext.lookup(InitialContext.java:361) at org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:313) at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:571) at com.infra.persist.CastorTransactionFactory.createTransaction(CastorTransactionFactory.java:83) at com.infra.persist.CastorTransactionFactory.getTransaction(CastorTransactionFactory.java:77) at com.util.TransactionHandler.openTransaction(TransactionHandler.java:34) at com.actionmanager.NumberSearchAction.execute(NumberSearchAction.java:58) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    No Bugmate found.