-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: jcs problem ?
PostPosted: Fri Sep 26, 2003 2:11 am 
Regular
Regular

Joined: Wed Sep 03, 2003 8:04 am
Posts: 55
In my standalone app,i put cache.ccf in class path and jcs works fine after adding
<class name="com.omnet.test.Device" table="device">
<jcs-cache usage="read-only"/>...
</class>

however when i created a sar and deployed it into jboss,the jcs didnot work:

13:34:10,875 ERROR [Configuration] Could not configure datastore from input stream
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
at java.util.Properties.load(Properties.java:189)
at org.apache.jcs.engine.control.CompositeCacheManager.configure(Composi
teCacheManager.java:149)
at org.apache.jcs.engine.control.CompositeCacheManager.configure(Composi
teCacheManager.java:131)
at org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Compo
siteCacheManager.java:76)
at org.apache.jcs.JCS.ensureCacheManager(JCS.java:135)
at org.apache.jcs.JCS.getInstance(JCS.java:101)
at net.sf.hibernate.cache.JCSCache.setRegion(JCSCache.java:22)
......

i guess the jcs can NOT find the cache.ccf ?!

D:\PJ6RNMS\build>jar -tvf omnet-hibernate.sar
0 Fri Sep 26 13:34:10 CST 2003 META-INF/
1179 Wed Sep 17 11:33:38 CST 2003 META-INF/cache.ccf
1025 Fri Sep 26 13:34:10 CST 2003 com/omnet/bean/Icon.class
1791 Fri Sep 26 13:34:10 CST 2003 com/omnet/bean/Location.class
466 Fri Sep 26 13:34:10 CST 2003 com/omnet/bean/DevParam.class
...

where should i put the cache.ccf in the omnet-hibernate.sar ?


thanks !


Top
 Profile  
 
 Post subject: forgot something...
PostPosted: Fri Sep 26, 2003 2:17 am 
Regular
Regular

Joined: Wed Sep 03, 2003 8:04 am
Posts: 55
Even if putting cache.ccf in the root of omnet-hibernate.sar,it still doesnot work :(

D:\PJ6RNMS\build>jar -tvf omnet-hibernate.sar
4277 Fri Sep 26 12:32:42 CST 2003 META-INF/Device.hbm.xml
1639 Tue Sep 16 16:15:30 CST 2003 META-INF/jboss-service.xml
3146 Tue Sep 16 08:53:14 CST 2003 META-INF/User.hbm.xml
1973 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/DevModel.class
788 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/Function.class
1067 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/Role.class
1474 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/Log.class
1397 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/RoleWrapper.class
503 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/AlertLog.class
1002 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/DevClass.class
2489 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/Device.class
2281 Fri Sep 26 14:10:30 CST 2003 com/omnet/bean/User.class
1179 Wed Sep 17 11:33:38 CST 2003 cache.ccf

regards!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.