JBoss Community

Need help in configuring persistence in jboss cache

created by Debayan Gupta in JBoss Cache - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community