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 !
|