From 303a6cf385085aefc4a5d818c664ad982db5bc83 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Sat, 9 Feb 2008 16:44:49 +0000 Subject: [PATCH] Updated FAQ for Java 6. Hasn't SUN learned anything about bundling libraries in the JDK? --- src/site/fml/faq.fml | 44 ++++++++++++-------------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml index 7c523fb0..b6c51b3b 100644 --- a/src/site/fml/faq.fml +++ b/src/site/fml/faq.fml @@ -25,35 +25,16 @@

- - - - - - - - - - - - - - - - + + + + +
LibraryVersion
- Xerces - 2.8.1
- Xalan - 2.7.0
- XML-APIs - 1.3.04
LibraryVersion
Xerces2.8.1
Xalan2.7.0
XML-APIs1.3.04
SAAJ1.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.

@@ -61,12 +42,11 @@ Does Spring-WS work under Java 1.6?

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