[
http://issues.apache.org/jira/browse/AXIS2-1375?page=comments#action_12442530 ]
James Shiell commented on AXIS2-1375:
-------------------------------------
Okay, found a solution - this is a WLS 9 classpath problem.
WLS 9 comes with its own StAX implementation. This has the above problem - lack
of namespacing on serialised items. In turn, WLS breaks with Axiom on the WLS
classpath. Hence a filtering classloader is required:
Adding the following to weblogic-application.xml seems to do the trick:
<prefer-application-packages>
<package-name>com.ctc.wstx.*</package-name>
<package-name>javax.xml.*</package-name>
<package-name>org.apache.*</package-name>
</prefer-application-packages>
Also, the classes (Xerces, StAX API, Woodstox) need to be on the application
classpath (e.g. referenced by the EJBs), not in WEB-INF/lib - not sure what
happens for those without EJBs.
May I suggest a note to this effect be added to the documentation? Otherwise,
could you please close as not-a-bug - sorry for the inconvenience.
> OperationContext envelope has only partial namespacing
> ------------------------------------------------------
>
> Key: AXIS2-1375
> URL: http://issues.apache.org/jira/browse/AXIS2-1375
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Affects Versions: 1.1
> Environment: 1.1RC1
> Reporter: James Shiell
>
> When getting the message envelope via
> opContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope()
> the returned elements (shown below) lack namespacing on some header
> attributes (wsa:Action, MessageID, From, Address). This in turn breaks
> efforts to parse this information, such as by Apache Muse.
> I would expect that the xmlns:wsa element appears on all WSA namespaced
> elements.
> <?xml version='1.0' encoding='utf-8'?><soap:Envelope
> xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Header>
> <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://172.17.20.129:7001/ossj/services/WsResource</wsa:To>
>
> <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>
> <wsa:MessageID>uuid:0cf952e1-116e-e04c-8fcf-41a17f5c15d6</wsa:MessageID>
> <wsa:From>
>
> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
> </wsa:From>
> <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
> wsa:IsReferenceParameter="true">OSSJOmResource-1</muse-wsa:ResourceId>
> </soap:Header>
> <soap:Body>
> <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
> <wsnt:ConsumerReference>
> <wsa:Address
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://172.17.20.129:7001/jr-ossj-client/services/consumer</wsa:Address>
> <wsa:ReferenceParameters>
> <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">OSSJOmResource-1</muse-wsa:ResourceId>
> </wsa:ReferenceParameters>
> </wsnt:ConsumerReference>
> </wsnt:Subscribe>
> </soap:Body>
> </soap:Envelope>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]