[opencms-dev] How to solve Opencms / Tomcat Xerces version problem ?

Alexander Kandzior alex at opencms.org
Sun Mar 14 10:31:01 CET 2004


Peter,

I back - applied the fix from OpenCms 6 to the OpenCms branch_5_0_x. If you
do checkout of the OpenCms CVS "branch_5_0_x" and do a build as it is
described on the opencms.org website in the "Development" section, you will
get a version that should run with both versions of Xerces. 

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

> -----Original Message-----
> From: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Peter Woods
> Sent: Saturday, March 13, 2004 1:29 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] How to solve Opencms / Tomcat Xerces 
> version problem ?
> 
> 
> I'm bulding a site using OpenCms 5.0.1 and Tomcat 4.1.3
> As others have pointed out, these rely on different versions 
> of Xerces (versions 1 and 2, respectively). For development, 
> I'm running Tomcat with Xerces version 1 and everything's ok.
> 
> There is a problem, though. In the live environment, I do not 
> have control over Tomcat, as it's a shared server, with other 
> web apps which may break if Xerces is "downgraded" from 
> version 2 to 1.
> 
> What can I do ?
> I know that OpenCms 6 will fix the problem but it currently 
> "pre-alpha", so I don't want to risk using it for a live 
> site. I could modify the source of OpenCms 5 to use Xerces 2. 
> I've not done it yet but I believe I'd only need to change 
> CmsXmlXerxecParser.java. That's not a solution I'm 
> particularly happy with either (I always prefer to use the 
> official releases where possible).
> 
> I've done some research and it ought to be possible to 
> persuade Tomcat and OpenCms to use their own versions of 
> Xerces. According to the Tomcat docs, individual web apps can 
> override the version of Xerces being used by putting in 
> /WEB-INF/lib. Either I've missed something obvious, or that 
> doesn't work. Note that Java 1.4 (which we're using) 
> introduced the concept of "Endorsed Standards", which might 
> be having an effect here.
> 
> Any ideas, folks ?
> 
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 




More information about the opencms-dev mailing list