0 Replies Latest reply on Nov 2, 2010 3:02 AM by Debayan Gupta

    Need help in configuring persistence in jboss cache

    Debayan Gupta Newbie

      Hello,

              While trying to configure Cache Loader, I'm facing a problem in specifying datasource property. Although the data source is configured in WAS, I'm getting a Naming Exception. Following is some excerpts :

       

      Caused by: java.lang.IllegalStateException: Failed to lookup datasource java:/DefaultDatasource

          at org.jboss.cache.loader.ManagedConnectionFactory.reportAndRethrowError(ManagedConnectionFactory.java:154)

          at org.jboss.cache.loader.ManagedConnectionFactory.start(ManagedConnectionFactory.java:68)

          at org.jboss.cache.loader.AdjListJDBCCacheLoader.start(AdjListJDBCCacheLoader.java:284)

          at org.jboss.cache.loader.JDBCCacheLoader.start(JDBCCacheLoader.java:396)

          at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:461)

          ... 30 more

      Caused by: javax.naming.NameNotFoundException: Name  not found in context "java:".

          at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1767)

          at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1083)

          at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991)

          at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263)

          at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:384)

          at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:205)

          at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:145)

          at javax.naming.InitialContext.lookup(InitialContext.java:363)

          at org.jboss.cache.loader.ManagedConnectionFactory.start(ManagedConnectionFactory.java:60)

       

       

          Is there anyway to bound the datasource like how it is done in ejb-jar.xml? I'm using Websphere as application server.