|
BTW, here's the failure info, since it wasn't provided previously...
Testing MessageFactory org.apache.geronimo.webservices.saaj.GeronimoMessageFactory Trying to create SOAPMessage: success. Trying to get SOAPBody: success. Trying to transform from Document to SOAPBody: failure. javax.xml.transform.TransformerException: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. Indeed, I used the tomcat distro. Thanks for the info!
Just my curiosity, but why do you ship two different SOAP stacks with the different Geronimos (CXF vs Axis2) ? Inquisitive minds want to know... Heh. Yeah, I was a little curious about that too... Jarek, Jeff, or Dims would know the gory details.
IIUC, Axis2 requires the Axis2 SAAJ implementation. I'm not sure how tightly bound CXF is to the Sun RI. I would guess that it's a tight binding – we have to do some switching to support the alternate SAAJ implementations. Another possibility is that it's just historical – we had CXF integrated prior to Axis2... This is a bug in Axis2 SAAJ implementation. Here's the Axis2 bug report: https://issues.apache.org/jira/browse/AXIS2-3808
Resolving as this problem was fixed in Axis2 and Geronimo 2.2 will use Axis2 1.5 which contains a fix for this problem.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This problem is either a Geronimo environment problem or a bug in the Axis2 SAAJ implementation. Either way, will use this Jira to track our progress...
This problem was discussed recently on our user list. You have a few work-arounds to get this working on our Tomcat distribution:
1) Use a different SAAJ implementation. Before starting your server:
export GERONIMO_OPTS="-Dorg.apache.geronimo.saaj.provider=sun"
This requires that you run on a Sun JVM, which won't be a problem on Mac OS.
2) Hide Axis2 from your web app. Use the following geronimo deployment plan when deploying your app:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
<dep:environment>
<dep:moduleId>
<dep:groupId>org.mygroup</dep:groupId>
<dep:artifactId>MyApp</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>war</dep:type>
</dep:moduleId>
<!--
Don't load axis2 classes from parent ClassLoaders.
-->
<hidden-classes>
<filter>org.apache.axis2</filter>
</hidden-classes>
</dep:environment>
</web-app>