Mac OSX Leopard Xalan, Xerces errors

I finally decided to “attack the mac” and get the environment working again after my Leopard upgrade.  In my prior post, I noted how the Leopard install turned off the web server and PHP (simple fix) but the major issue was killing my ability to run Castor and XML-based applications.

I scoured the forums and first deleted all copies of xalan.jar, xercesImpl.jar and xml-apis.jar.  I found the latest xalan-j package online, unzipped it and it contained the various jars including serializer.jar, resolver.jar, etc.

It took adding the -verbose:class flag to catalina.sh (extending $JAVA_OPTS variable) and various trial/error to finally get it right.  The solution was to place ALL xml-based jars in the /tomcat_home/common/endorsed/ directory.  I had them split between /common/lib/ and the endorsed directories and when I consolidated them all, everything started working.

If you use Spring Web Services (WS) then you may see the error on “could not create Envelope” and this was what we were seeing.  After placing all JARs in the common/endorsed directory and restarting Tomcat, everything worked.  I hope this helps someone from countless days of headaches.

See below the proper jars in proper directories (mine may vary based on usage):

picture-3.png

ALL xml-based jars in the endorsed directory solved xerces and xalan errors after upgrading to Mac OSX Leopard.

picture-4.png

2 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 52 Votes | Average: 4 out of 5 (2 votes, average: 4 out of 5)
Loading ... Loading ...


Leave a Reply

You must be logged in to post a comment.