|
25 | 25 | </p> |
26 | 26 | <table class="bodyTable"> |
27 | 27 | <tbody> |
28 | | - <tr> |
29 | | - <th>Library</th> |
30 | | - <th>Version</th> |
31 | | - </tr> |
32 | | - <tr> |
33 | | - <td> |
34 | | - <a href="http://xerces.apache.org/xerces2-j/">Xerces</a> |
35 | | - </td> |
36 | | - <td>2.8.1</td> |
37 | | - </tr> |
38 | | - <tr> |
39 | | - <td> |
40 | | - <a href="http://xml.apache.org/xalan-j/">Xalan</a> |
41 | | - </td> |
42 | | - <td>2.7.0</td> |
43 | | - </tr> |
44 | | - <tr> |
45 | | - <td> |
46 | | - <a href="http://xerces.apache.org/xerces2-j/">XML-APIs</a> |
47 | | - </td> |
48 | | - <td>1.3.04</td> |
49 | | - </tr> |
| 28 | + <tr><th>Library</th><th>Version</th></tr> |
| 29 | + <tr><td><a href="http://xerces.apache.org/xerces2-j/">Xerces</a></td><td>2.8.1</td></tr> |
| 30 | + <tr><td><a href="http://xml.apache.org/xalan-j/">Xalan</a></td><td>2.7.0</td></tr> |
| 31 | + <tr><td><a href="http://xerces.apache.org/xerces2-j/">XML-APIs</a></td><td>1.3.04</td></tr> |
| 32 | + <tr><td><a href="http://java.sun.com/webservices/downloads/1.3/index.html">SAAJ</a></td><td>1.2</td></tr> |
50 | 33 | </tbody> |
51 | 34 | </table> |
52 | 35 | <p> |
53 | | - Note that the security module requires Java 5, because an underlying library (XWSS) requires it. |
54 | | - Also note that SAAJ 1.3 required Java 5 as well, so you need to use SAAJ 1.2 (which can be |
55 | | - downloaded as part of the<a href="http://java.sun.com/webservices/downloads/1.3/index.html"> |
56 | | - Java Web Services Developer Pack 1.3</a>. |
| 36 | + Note that the <code>XwsSecurityInterceptor</code> requires Java 5, because an underlying library (XWSS) requires |
| 37 | + it. Instead, you can use the<code>Wss4jSecurityInterceptor</code>. |
57 | 38 | </p> |
58 | 39 | </answer> |
59 | 40 | </faq> |
60 | 41 | <faq id="java-1.6"> |
61 | 42 | <question>Does Spring-WS work under Java 1.6?</question> |
62 | 43 | <answer> |
63 | 44 | <p> |
64 | | - Spring Web Services works under Java 1.6, but you must make sure to use the versions of Xerces and |
65 | | - Xalan that are packaged with it. Using other XML parsing libraries will cause exceptions to occur |
66 | | - in the<tt>org.apache.xml.serializer.ToXMLSAXHandler</tt>. |
67 | | - </p> |
68 | | - <p> |
69 | | - Therefore, when using Java 6, do not bundle Xerces, nor Xalan in your application. |
| 45 | + Java 1.6 ships with SAAJ 1.3, JAXB 2.0, and JAXP 1.4 (a custom version of Xerces and Xalan). |
| 46 | + Overriding these libraries by putting different version on the classpath will result in various |
| 47 | + classloading issues, or exceptions in <tt>org.apache.xml.serializer.ToXMLSAXHandler</tt>. |
| 48 | + The only option for using more recent versions is to put the newer version in the |
| 49 | + <code>endorsed</code> directory (see above). |
70 | 50 | </p> |
71 | 51 | </answer> |
72 | 52 | </faq> |
|
0 commit comments