Bug #5291
closed
Need update xerces jar file
Added by Jing Tao almost 14 years ago.
Updated almost 13 years ago.
Description
xcerces 2.7 complains that the sensorML schema is invalid. However, xmlSpy and oxygen don't.
I tried to use xerces 2.11 in metacat and the complain had gone.
Here are what i did:
1) Removed the following files:
tao@pacific:~/project/metacat$ rm ./lib/spatial/geoserver/WEB-INF/lib/xml-apis-ext-1.3.04.jar
tao@pacific:~/project/metacat$ rm ./lib/spatial/geoserver/WEB-INF/lib/xml-apis-xerces-2.7.1.jar
tao@pacific:~/project/metacat$ rm ./lib/spatial/geoserver/WEB-INF/lib/xml-apis-1.3.04.jar
tao@pacific:~/project/metacat$ rm ./lib/ajax/lib/xml-apis.jar
tao@pacific:~/project/metacat$ rm ./lib/xml-apis.jar
tao@pacific:~/project/metacat$ rm ./lib/xercesImpl-2.7.1.jar
2) Added the following files to metacat/lib:
xercesImpl.-2.11.0.jar, xml-apis-xerces-2.11.0.jar, serializer-xerces-2.11.0.jar, resolver-xerces-2.11.0.jar
After doing those, the new installed Metacat lib only has one xml-apis jar file - xml-apis-xerces-2.11.0.jar.
I ran the ant test against the new Metacat and got the results:
Test edu.ucsb.nceas.metacat.dataone.CrudServiceTest FAILED
Test edu.ucsb.nceas.metacat.dataone.MetadataTypeRegisterTest FAILED
Test edu.ucsb.nceas.metacattest.restservice.MetacatRestClientTest FAILED
Test edu.ucsb.nceas.metacattest.InternationalizationTest FAILED
Test edu.ucsb.nceas.metacattest.NonAsciiCharacterTest FAILED
Test edu.ucsb.nceas.metacattest.MetaCatServletTest FAILED (still about pisco ldap referral).
So the updating doesn't introduce any additional failure.
I also inserted an eml document with embedded sensorML into metacat. I worked.
Original Bugzilla ID was 5291
Also available in: Atom
PDF