|
Additionally, having older libraries dumps stacktraces like these in the build log (see http://bamboo.muleforge.org/browse/GALAXY-FORGE-36/artifact
SEVERE: Could not process index mule.descriptor I do not see them with libraries properly endorsed, could also be that saxon needs an upgrade. I'm wondering if we can detect if xerces is there or not. I would rather not require that users have to install stuff in the endorsed directory to have it working. It will play to our favor if all that is required to run Galaxy is a one line command.
If Xerces is not there, we should print a big fat warning which says that WS-I schema validation won't work and then let them deal with it. It's rather Xerces' version than xerces itself (if it's crimson, you are doomed). Older xerces versions will fail too. Something like you described is possible, I just need to look at currently available deployment options.
Just did some research into using the JDK parser. We get this problem:
UndeclaredPrefix: Cannot resolve 'tns:sayHiRequest' as a QName: the prefix 'tns' is not declared. (Line 0) When prefixes are undeclared. Official sun bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6626853 I looked at the source to try and figure out a workaround, but it looks pretty impossible. This is fixed in JDK6. Endorsing the libs also works. I'm closing this as I made everything work by default. If Xerces isn't endorsed we spit out an error message, disable the appropriate rules, and move on.
Documented here for users: http://www.mulesource.org/display/GALAXY/Getting+Started |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
xalan-2.7.1.jar
xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar
xml-serializer-2.7.1.jar
See a related
MULE-2700as well.So, it becomes a distribution task: minimize user's setup (and don't curse sun too much in the process)
Carefully upgrade MuleForge's Bamboo environment - probably need a new JDK install with endorsed xml libs, otherwise many projects building on Java 5 may suddenly break.