[
https://issues.apache.org/jira/browse/GERONIMO-4029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598045#action_12598045
]
Kevan Miller commented on GERONIMO-4029:
----------------------------------------
You must be using the Tomcat distribution of geronimo. Your test works fine on
the Jetty distribution of Geronimo 2.1. By default, our Jetty distribution uses
CXF as it's web services implementation and Sun as the SAAJ implementation.
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>
> Transforming from DOM Document to SAAJ SOAPBody throws TransformerException
> ---------------------------------------------------------------------------
>
> Key: GERONIMO-4029
> URL: https://issues.apache.org/jira/browse/GERONIMO-4029
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: webservices
> Affects Versions: 2.0.2
> Environment: OS X, JDK 1.5, Geronimo 2.0.2
> Reporter: Arjen Poutsma
> Attachments: saaj-test.zip
>
>
> When running the following program within Geronimo:
> {noformat}
> MessageFactory messageFactory = MessageFactory.newInstance();
> Transformer transformer = TransformerFactory.newInstance().newTransformer();
> SOAPMessage message = messageFactory.createMessage();
> Document document = createDocument();
> SOAPBody body = message.getSOAPBody();
> transformer.transform(new DOMSource(document), new DOMResult(body));
> {noformat}
> a TransformerException is thrown on the last line. The attached zip file
> contains a simple Servlet which can be used to reproduce this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.