[jboss-user] [JBoss Cache] - Need help in configuring persistence in jboss cache
Debayan Gupta
do-not-reply at jboss.com
Tue Nov 2 03:02:52 EDT 2010
Debayan Gupta [http://community.jboss.org/people/debayan] created the discussion
"Need help in configuring persistence in jboss cache"
To view the discussion, visit: http://community.jboss.org/message/569239#569239
--------------------------------------------------------------
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
[http://community.jboss.org/message/569239#569239]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101102/a101469b/attachment-0001.html
More information about the jboss-user
mailing list