diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml index 7577a291..b469928e 100644 --- a/src/site/fml/faq.fml +++ b/src/site/fml/faq.fml @@ -11,10 +11,8 @@ bundled with the older XML parser Crimson, which does not handle namespaces correctly. Additionally, it is bundled with an older version of Xalan, which also has problems. Unfortunately, placing newer versions of these on the class path does not override them. - See - this FAQ - entry on the Xalan site, and also - this entry + See this FAQ entry on the Xalan + site, and also this entry on the Xerces site.

@@ -33,10 +31,8 @@

The jar can be found at - - /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar - - . You can safely remove or rename it, and the tests will run again. + /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar. + You can safely remove or rename it, and the tests will run again.

@@ -48,20 +44,13 @@

SAAJ is the SOAP with Attachments API for Java. Previously, it has been part of JAXM, but it has - been - released as a seperate API as part of the - Java Web Service - Developer Pack - - , and also as part of J2EE 1.4. SAAJ is generally known as the package - javax.xml.soap - . + been released as a seperate API as part of the + Java Web Service Developer Pack, and + also as part of J2EE 1.4. SAAJ is generally known as the package javax.xml.soap.

Spring-WS uses this standard SAAJ library to create representations of SOAP messages. Alternatively, - it can use - Apache AXIOM - . + it can use Apache AXIOM.

@@ -90,9 +79,14 @@ SUN Glassfish 1 1.3 + + JBoss 4.2 + 1.3 ** +

* = See below.

+

** = See below.

Additionally, Java SE 6 includes SAAJ 1.3.

@@ -113,11 +107,8 @@ java.lang.NoSuchMethodError: javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;

- Like most J2EE libraries, SAAJ consists of two parts: the API that consists of interfaces ( - saaj-api.jar - ) and the implementation ( - saaj-impl.jar - ). + Like most J2EE libraries, SAAJ consists of two parts: the API that consists of interfaces + (saaj-api.jar) and the implementation (saaj-impl.jar). The stack trace is due to the fact that you are using a new version of the API (SAAJ 1.3), while your application server provides an earlier version of the implementation (SAAJ 1.2 or even 1.1). Spring-WS supports all three versions of SAAJ (1.1 through 1.3), but things break when it sees @@ -150,12 +141,28 @@ javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/Mes

The solution is to not use BEA's version of SAAJ, but to use another implementation, like the one from Axis 1, or SUN. In you application context, use the following: -

-<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
-  <property name="messageFactory">
-    <bean class="com.sun.xml.messaging.saaj.soap.MessageFactoryImpl"/>
-</bean>
-
+ + + + + +

+ + + + + I get a IndexOutOfBoundsException when I use SAAJ under JBoss. What can I do about it? + + +

+ The SAAJ implementation provided by JBoss has some issues. The solution is therefore not to use + the JBoss implementation, but to use another implementation. For instance, you can use SUN's + reference implementation like so: + + + + +

@@ -187,37 +194,16 @@ javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/Mes