-
1. Re: XML parsing problem with JBossCache
ben.wang Apr 7, 2004 7:12 AM (in response to fredrikoe)Hi,
This error shows up during the parsing of the clusterConfig due to the element is empty. Have you modified your xml files at all? The other question is whether the xml files run during standalone mode (i.e., outside Tomcat).
BTW, the handling of sub-element config is not fool proof now so I will make a note of it and enhance it next. :-)
-Ben -
2. Re: XML parsing problem with JBossCache
fredrikoe Apr 7, 2004 7:58 AM (in response to fredrikoe)Thanks for the quick reply.
I know it looks like the element is empty but I've tried with all the configuration files provided (for example local-service.xml) without modifying anything. So, the XML files should be correct.
If I remove the whole
tag
I don't get this error but of course another one due to incomplete configuration. So it looks like that there is something strange inside this tag. But still, the XML file should be correct...
/ Fredrik -
3. Re: XML parsing problem with JBossCache
mounikap Jul 14, 2004 11:37 AM (in response to fredrikoe)Hi All,
I am encountering same problem. Also bwang00, what do you mean by this "The other question is whether the xml files run during standalone mode "
thanks in advance for the reply,
Mounika -
4. Re: XML parsing problem with JBossCache
ben.wang Jul 14, 2004 5:48 PM (in response to fredrikoe)What I meant was that can you run "build.bat run.demo" from the jboss-cache that you have downloaded? If you can, then tree cache is started correctly in standalone mode.
Hope this help,
-Ben -
5. Re: XML parsing problem with JBossCache
hanson Jul 29, 2004 1:10 AM (in response to fredrikoe)I also encountered the problem when i was testing TreeCache. My testing program is just java standalone under solaris.
Reason: It seems related to xerces xml parser.when i remove the xerces.jar from classpath. My test program run ok. I don't why?
Try remove the xerces.jar from your tomcat or your classpath. -
6. Re: XML parsing problem with JBossCache
jpicard Aug 18, 2004 8:59 AM (in response to fredrikoe)Hi All,
I hade the same problem. The problem was in the org.jboss.cache.PropertyConfigurator class.
If you look the getSubElementObject function, you will see a mistake in the conditional test.
Indeed, the equality test between two String should never be with "=" sign but with the equals method.
this is the line :if(node.getNodeType() == Node.ELEMENT_NODE && ((Element)node).getTagName() == SUB_ATTR) { return (Element)node; }
Also, if you replace with this, that's work.if(node.getNodeType() == Node.ELEMENT_NODE && SUB_ATTR.equals( ((Element)node).getTagName()) ) { return (Element)node; }
With this fix, TreeCache starts correctly in standalone and application server mode.
Regards,
Jerome. -
7. Re: XML parsing problem with JBossCache
ben.wang Aug 18, 2004 11:55 AM (in response to fredrikoe)Jerome,
Good catch!! I will incorporate your fix into upcoming 1.1 release.
Thanks a lot,
-Ben