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 ] Although Datasource was successful in Application server (when i was creating datasource ) in console it display: [2/24/06 14:08:31:732 IST] 0000002b ConnectionFac E J2CA0106E: A 5.0 DataSource was attempted to be used in a WebModule that was not level 2.3. [2/24/06 14:08:31:748 IST] 0000002b Helpers W NMSV0605W: A Reference object looked up from the context "localhostNode01Cell
    • odes/localhostNode01/servers/server1" with the name "jdbc/mydatasource2" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows: Reference Factory Class Name: com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl Reference Factory Class Location URLs: <null> Reference Class Name: javax.resource.cci.ConnectionFactory Type: connectorName Content: Oracle Driver DataSource Type: classpath Content: D:\IBM\Rational\SDP\6.0\runtimes\base_v6/lib/rsadapter.rar;D:\IBM\Rational\SDP\6.0\runtimes\base_v6/lib/rsadapter.rar Type: FactoryJndiName Content: jdbc/mydatasource2 Address Type: dd AddressContents: ffffffac ffffffed 0 5 73 72 0 25 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 52 65 73 6f 75 72 63 65 ... Address Type: miscProps AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ... Address Type: poolProps AddressContents: ffffffac ffffffed 0 5 73 72 0 27 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ... Address Type: configProps AddressContents: ffffffac ffffffed 0 5 73 72 0 23 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ... Address Type: mmProps AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ... Address Type: dsProps AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ... Address Type: mcfProps AddressContents: ffffffac ffffffed 0 5 73 72 0 2d 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 61 6e 61 67 65 64 43 ... Address Type: mbeanProps AddressContents: ffffffac ffffffed 0 5 73 72 0 1a 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 42 65 61 6e 50 72 6f ... Exception data follows: : 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.