[JBoss-user] [JBossCache] - Re: TreeCache - JDBCCacheLoader - Failed to lookup datasourc

2005-12-15 Thread raulscosta
Sorry if I didn't make myself clear.

When I include the dependency on agorang/alarmMonitorDB it doesn't work!

When I include the dependency on DefaultDS JBoss binds the DefaultDS and the 
agorang/alarmMonitorDB DataSources. 
So I can  use my DataSource to preload TreeCache with MyCacheLoader class.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912935#3912935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912935


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: TreeCache - JDBCCacheLoader - Failed to lookup datasourc

2005-12-15 Thread raulscosta
I have my problem solved with this include as the lookup() of my DataSource 
works fine now thaks to the include you recommended.

But I find curious the fact that I have a Oracle datasource defined by my self 
and if I try to stablish the dependency on that DataSource on the -service.xml 
file that datasource isn't bound before the TreeCache setCache() method in the 
CacheLoader, as it should be.

My DataSource is defined this way


  |
  |   agorang/alarmMonitorDB
  | 
jdbc:oracle:thin:@localhost_IP:PORT:SEQ9i
  | oracle.jdbc.driver.OracleDriver
  | 123
  | xxx
  | 
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
  | 0
  | 1
  | 100
  | 10
  | 
  | 

The "debug", when I include the dependency on my datasource looks like this:

  | 14:25:57,546 INFO  [STDOUT] super setCache
  | 14:25:57,546 INFO  [STDOUT] init()
  | 14:25:57,562 ERROR [main][agorang.helpers.MyCacheLoader] - 
javax.naming.NameNotFoundException: agorang not bound
  | 14:25:57,562 ERROR [MyCacheLoader] javax.naming.NameNotFoundException: 
agorang not bound
  | 14:25:57,562 ERROR [main][agorang.helpers.MyCacheLoader]  - 
java.lang.NullPointerException
  | 14:25:57,562 ERROR [MyCacheLoader] java.lang.NullPointerException
  | 14:25:57,562 INFO  [STDOUT]
  | cacheAllOperators(/pt/ptinovacao/agorang/catOperadores/)
  | 14:25:57,562 ERROR [main][agorang.helpers.MyCacheLoader] - 
java.lang.NullPointerException
  | 14:25:57,562 ERROR [MyCacheLoader] java.lang.NullPointerException
  | 14:25:57,562 INFO  [STDOUT] setCache method succeeded.
  | 14:25:57,593 INFO  [TreeCache] interceptor chain is:
  | class org.jboss.cache.interceptors.CallInterceptor
  | class org.jboss.cache.interceptors.PessimisticLockInterceptor
  | class org.jboss.cache.interceptors.CacheLoaderInterceptor
  | class org.jboss.cache.interceptors.UnlockInterceptor
  | class org.jboss.cache.interceptors.ReplicationInterceptor
  | class org.jboss.cache.interceptors.CacheStoreInterceptor
  | 14:25:57,593 INFO  [TreeCache] cache mode is REPL_SYNC
  | 14:25:57,703 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=DataSourceBinding,name=a
  | gorang/alarmMonitorDB' to JNDI name 'java:agorang/alarmMonitorDB'

Note that the binding of the DataSource is done after is has been looked up 
wich causes the ERROR.

I would like to be sure thad including the dependency on the DefaultDatasource 
all other DataSources are bound in time to be used by methods in CacheLoader 
classes.

Thanks for your attention.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912892#3912892

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912892


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: TreeCache - JDBCCacheLoader - Failed to lookup datasourc

2005-12-14 Thread raulscosta
I've checked my version and I even downloaded it again. I'm using JBossCache 
1.2.4 version released on 20 October, so it is the final version.

Is it possible that the bug wasn't completely solved or am I doing something 
wrong? The error I'm having is exactely the same reported in 
http://jira.jboss.com/jira/browse/JBCACHE-303.

Thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912607#3912607

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912607


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - TreeCache - JDBCCacheLoader - Failed to lookup datasource!

2005-12-13 Thread raulscosta
Hi!

I'm trying to put toghether the JDBCCacheLoader, but when I do it JBoss 
TreeCache MBean isnĀ“t deployed. I've already tryed to specify a dependency on 
the datasource but it still doesn't work.

Output
11:50:00,312 INFO  [TreeCache] new cache is null (may be first member in 
cluster)
11:50:00,312 INFO  [TreeCache] state could not be retrieved (must be first 
member in group)
11:50:00,312 ERROR [JDBCCacheLoader] Failed to lookup datasource 
java:/DefaultDS: DefaultDS not bound
javax.naming.NameNotFoundException: DefaultDS not bound

   org.jboss.cache.loader.JDBCCacheLoader 
  |true
  |/
  |true
  |true 
  |
  | cache.jdbc.datasource=java:/DefaultDS
  | 

My final purpose is to redefine JDBCacheLoader's setCache method to include my 
own datasource to preload treecache with a bunch of data from a Oracle 
database. I don't want to have just persistence, but a class that gets from the 
database specific data and puts it into the TreeCache.

Could you please help me!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912327#3912327

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912327


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user