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/nodes/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

coderanch.com | 3 months ago
  1. 0

    java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 servlet (WebSphere forum at Coderanch)

    coderanch.com | 6 months ago
    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/nodes/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
  2. 0

    java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 servlet (WebSphere forum at Coderanch)

    coderanch.com | 3 months ago
    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/nodes/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
  3. 0

    Data source error -- J2CA0106E

    Google Groups | 1 decade ago | sonu
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 servlet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.ibm.websphere.naming.CannotInstantiateObjectException:&nbsp; ??????

    Oracle Community | 9 years ago | 843830
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Invalid EJB component: Cannot use an EJB module with version 11 using The Relational Resource Adapter
  6. 0

    Failed security check for DataSource JNDI lookup outside of WAS5

    Google Groups | 1 decade ago | Philip Tom
    com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory batch-ds

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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/nodes/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()
    2. com.ibm.ejs
      ConnectionFactoryBuilderImpl.getObjectInstance
      1. com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validServlet(ConnectionFactoryBuilderImpl.java:1109)
      2. com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFactoryBuilderImpl.java:730)
      3. com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:330)
      3 frames
    3. Java RT
      NamingManager.getObjectInstance
      1. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:314)
      1 frame
    4. com.ibm.ws
      Helpers.processSerializedObjectForLookup
      1. com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:874)
      2. com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:681)
      2 frames
    5. WebSphere
      CNContextImpl.lookup
      1. com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1969)
      2. com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1824)
      3. com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1737)
      4. com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1444)
      5. com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1324)
      5 frames
    6. com.ibm.ws
      WsnInitCtx.lookup
      1. com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
      1 frame
    7. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:361)
      1 frame
    8. org.exolab.castor
      JDO.getDatabase
      1. org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:313)
      2. org.exolab.castor.jdo.JDO.getDatabase(JDO.java:571)
      2 frames
    9. com.infra.persist
      CastorTransactionFactory.getTransaction
      1. com.infra.persist.CastorTransactionFactory.createTransaction(CastorTransactionFactory.java:83)
      2. com.infra.persist.CastorTransactionFactory.getTransaction(CastorTransactionFactory.java:77)
      2 frames
    10. com.util
      TransactionHandler.openTransaction
      1. com.util.TransactionHandler.openTransaction(TransactionHandler.java:34)
      1 frame
    11. com.actionmanager
      NumberSearchAction.execute
      1. com.actionmanager.NumberSearchAction.execute(NumberSearchAction.java:58)
      1 frame
    12. struts
      ActionServlet.doPost
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      4. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
      4 frames