error parsing perfectly valid coldspring2 xml

10 views
Skip to first unread message

Chris Blackwell

unread,
Jul 19, 2013, 5:34:43 AM7/19/13
to 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
Reply all
Reply to author
Forward
0 new messages