Archive for March, 2008

Naughty posters

March 21st, 2008 by Mike Sparr

I was surfing Facebook as I had some friend posts and requests left unanswered.  Some random browsing to a friend’s page and some other buddies must’ve posted some questionable material.  I thought this notice was kind of funny and definitely a “hip” way to deal w/ censored content.

picture-1.png

Rate this post:

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

Mac OSX Leopard Xalan, Xerces errors

March 16th, 2008 by Mike Sparr

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

Rate this post:

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 ...