From 303a6cf385085aefc4a5d818c664ad982db5bc83 Mon Sep 17 00:00:00 2001
From: Arjen Poutsma
| Library | -Version | -
|---|---|
| - Xerces - | -2.8.1 | -
| - Xalan - | -2.7.0 | -
| - XML-APIs - | -1.3.04 | -
| Library | Version |
| Xerces | 2.8.1 |
| Xalan | 2.7.0 |
| XML-APIs | 1.3.04 |
| SAAJ | 1.2 |
- Note that the security module requires Java 5, because an underlying library (XWSS) requires it.
- Also note that SAAJ 1.3 required Java 5 as well, so you need to use SAAJ 1.2 (which can be
- downloaded as part of the
- Java Web Services Developer Pack 1.3.
+ Note that the XwsSecurityInterceptor requires Java 5, because an underlying library (XWSS) requires
+ it. Instead, you can use theWss4jSecurityInterceptor.
- Spring Web Services works under Java 1.6, but you must make sure to use the versions of Xerces and - Xalan that are packaged with it. Using other XML parsing libraries will cause exceptions to occur - in theorg.apache.xml.serializer.ToXMLSAXHandler. -
-
- Therefore, when using Java 6, do not bundle Xerces, nor Xalan in your application.
+ Java 1.6 ships with SAAJ 1.3, JAXB 2.0, and JAXP 1.4 (a custom version of Xerces and Xalan).
+ Overriding these libraries by putting different version on the classpath will result in various
+ classloading issues, or exceptions in org.apache.xml.serializer.ToXMLSAXHandler.
+ The only option for using more recent versions is to put the newer version in the
+ endorsed directory (see above).