|
|
|
This will be done on a branch:
https://svn.codehaus.org/mule/branches/mule-1.4-noxml/ Andrew, yes I've also been thinking about some kind of validation though it's really only necessary for JDK 1.4. One possible and cheap check would be to just get a SAXParserFactory and only complain if it's the blacklisted JDK 1.4 Crimson implementation.
Btw this is only the tip of the iceberg: we've had much worse compatibility problems coming out of the Japex work because of JAXB and JDK5/6 which required JDK-specific dependency management too - as JDK 1.6 has JAXB built in but not the version we use for JDK 1.5 and then complains about binary incompatibility with jaxb-api and aargh.. Outstanding tasks:
Progress note: as of http://fisheye.codehaus.org/changelog/mule/?cs=9822
As of r9911 the 2.x-jdk5 branch builds the full distribution + JCA etc. without any implicit XML dependencies, just like 1.x.
r9971 contains the changes to the mule startup scripts to include the endorsed dir when starting on a 1.4 JVM.
r9982 contains a check for MuleManager that verifies a valid JAXP installation; MM will complain loudly & exit if it is started e.g. with stock JDK 1.4.2.
All necessary changes are implemented, verified and documented. The XML removal in 2.x still needs to be merged from the 2.x-jdk5 branch whenever the 2.x team wants to, therefore I removed 2.x from the fix-version.
Now that we can effectively build Mule using JDK 1.5 it turns out that the JDK 1.5 scenario from this issue's description is not 100% correct. In order to build Mule using JDK 1.5 you must have an endorsed dir with the specified jars in order to successfully run all unit tests.
The primary issue was about compiling, not running :-D
But yes, endorsed stuff is necessary for 1.5 as well. Blame Sun.. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
E.g. if a well-known jar name pattern is found, Mule can fail early with suggestions on how to do the XML libs endorsement properly.