Dear Sir/Madam
I am a beginner user of JbossCache. I met a problem while using it and I hope you can help solve it. Thank you
The following is a brief description of the question:
While I was using the 3.0.0.GA version of treecache and pojocache, I met an exception:
[aop-trace] org.jboss.util.xml.JBossEntityResolver resolveSystemID, systemId=urn:jboss:jbosscache-core:config:3.0
[aop-trace] org.jboss.util.xml.JBossEntityResolver Found entity systemId=urn:jboss:jbosscache-core:config:3.0 fileName=jbosscache-config-3.0.xsd
[aop-trace] org.jboss.util.xml.JBossEntityResolver schema/jbosscache-config-3.0.xsd maps to URL: jar:file:/E:/src_work/autoSysNew/WebRoot/WEB-INF/lib/jbosscache-core.jar!/schema/jbosscache-config-3.0.xsd
[aop-trace] org.jboss.util.xml.JBossEntityResolver resolveSystemID, systemId=urn:jboss:jbosscache-core:cache-repo:3.0
[aop-trace] org.jboss.util.xml.JBossEntityResolver Found entity systemId=urn:jboss:jbosscache-core:cache-repo:3.0 fileName=jbosscache-registry-3.0.xsd
[aop-trace] org.jboss.util.xml.JBossEntityResolver schema/jbosscache-registry-3.0.xsd maps to URL: jar:file:/E:/src_work/autoSysNew/WebRoot/WEB-INF/lib/jbosscache-core.jar!/schema/jbosscache-registry-3.0.xsd
2012-12-03 14:42:12,983 [main] org.jboss.cache.config.parsing.RootElementBuilder - Configuration warning: cvc-elt.1: Cannot find the declaration of element 'server'.
2012-12-03 14:42:12,987 [main] org.jboss.cache.config.parsing.RootElementBuilder - org.jboss.cache.config.ConfigurationException: Incorrect configuration file. Use '-Djbosscache.config.validate=false' to disable validation.
2012-12-03 14:42:13,604 [main] org.jboss.cache.transaction.GenericTransactionManagerLookup - Falling back to DummyTransactionManager from JBossCache
2012-12-03 14:42:14,230 [main] org.jboss.cache.pojo.impl.PojoCacheImpl - PojoCache version: JBossCache 'Naga' 3.0.0.GA
2012-12-03 14:42:14,247 [main] org.jboss.cache.pojo.impl.PojoCacheImpl - PojoCache version: JBossCache 'Naga' 3.0.0.GA
2012-12-03 14:42:14,414 [main] org.jboss.cache.jmx.PlatformMBeanServerRegistration - JBossCache MBeans were successfully registered to the platform mbean server.
2012-12-03 14:42:14,437 [main] org.jgroups.JChannel - JGroups version: 2.6.7.GA
-------------------------------------------------------
GMS: address is 172.17.109.178:58714
-------------------------------------------------------
2012-12-03 14:42:16,946 [main] org.jboss.cache.RPCManagerImpl - Received new cluster view: [172.17.109.178:58714|0] [172.17.109.178:58714]
2012-12-03 14:42:16,950 [main] org.jboss.cache.RPCManagerImpl - Cache local address is 172.17.109.178:58714
2012-12-03 14:42:16,951 [main] org.jboss.cache.factories.ComponentRegistry - JBoss Cache version: JBossCache 'Naga' 3.0.0.GA
2012-12-03 14:42:17,348 [main] org.jboss.cache.RPCManagerImpl - Disconnecting and closing the Channel
2012-12-03 14:42:17,370 [main] org.jboss.cache.RPCManagerImpl - Stopping the RpcDispatcher
org.jboss.cache.config.parsing.RootElementBuilder - Configuration warning: cvc-elt.1: Cannot find the declaration of element 'server'.,I see in the JbossCache community BBS reply,
https://community.jboss.org/thread/145857,
Mircea Markus
546 发帖自
2007-1-30
3. 2009-12-16 上午11:04 (回复 balachandra maddina)
Re: Configuration problems using Jboss Pojo Cache 3.0.0.GA
The purpose of the TransactionManagerLookup is to lookup an javax.transaction.TransactionManager within your runtimne and return it to the JBossCache. E.g. if you run in JBossAS then this TransactionManagerLookup implementation (the one you configured, take a look at javadoc) will return the TransactionManager that the AS is using, from JNDI. Read the javadoc for GenericTransactionManagerLookup, should make things more clear. To return to the original question, the warning is caused by the fact that no TransactionManager is found within your runtime, and a default one will be used - which is not so clever, as per the name -> DummyTransactionManager. I'd say you can live with this one if you a) don't have to use it for distributed transactions and b) you don't see any performance degradations for transactions.
configured file information of replSync-service.xml:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.cache.jmx.CacheJmxWrapper" name="jboss.cache:service=TreeCache">
<attribute name="SyncReplTimeout">15000</attribute>
</mbean>
</server>
The following are questions i need your help for:
1.Can pojocache be used in the tomcat container,I want to use POJO Cache without JBOSS container
2.If I use pojocache in tomcat, if there any other way to load the jboss-aop.jar,jboss-aop.xml file other than by using SET_OPT to add a vm parameter.
-javaagent:E:\src_work\autoSysNew\WebRoot\WEB-INF\lib\jboss-aop.jar
-Djboss.aop.path=E:\src_work\autoSysNew\src\pojocache-aop.xml
3.If i use it in tomcat, is jndi the only way? Is there any other way to initialize TransactionManager?
4.Will there be any performance problem in the distributed scenario, if i do not use the Jndi method?
I will appreciate it very much if you could offer me some help.