error parsing perfectly valid coldspring2 xml

9 visningar
Hoppa till det första olästa meddelandet

Chris Blackwell

oläst,
19 juli 2013 05:34:432013-07-19
till coldspring-users
This is just a note for anyone who may run into this issue in the future (or me when i forget).

I recently had an issue when deploying a Railo 4 & CS2 app which was running fine on my Win7 desktop to a Centos 6 server. same jvm version etc.

The error was "Error found on line: '-unknown-'. Duplicated definition for: 'beans"

The issue is to do with the xml parser library which java chooses to use, which for some reason seems to vary.

The fix i found is to explicitly tell java which you want to use by passing an argument to the jvm when you start the server.  Where you do that will depend on you environment but the argument you need is
 
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl

After that you should be good to go.

Chris
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden