[ http://issues.apache.org/jira/browse/AXIS2-1340?page=all ]

Davanum Srinivas resolved AXIS2-1340.
-------------------------------------

    Resolution: Fixed

Looks like this is fixed:

http://marc.theaimsgroup.com/?l=axis-cvs&m=116052397203244&w=2
http://svn.apache.org/viewvc?view=rev&rev=462640

> Axis2Util.toOM() needs to work w/o XML-Security jar
> ---------------------------------------------------
>
>                 Key: AXIS2-1340
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1340
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: om
>         Environment: Any
>            Reporter: Sathija Pavuluri
>            Priority: Minor
>
> When converting a DOM element to OMElement, the process is not 
> straightforward.
> We first need to use the org.apache.rampart.util.Axis2Utils.toOM() from 
> axis2-security-SNAPSHOT.jar.
> The toOM() method references the org.apache.xml.security.utils.XMLUtils class 
> from xml-security jar file.
> So one needs to include that jar in the classpath.
> And then this error is seen:
> > org.apache.xml.security.c14n.InvalidCanonicalizerException: You must
> > initialize the xml-security library correctly before you use it. Call the
> > static method "org.apache.xml.security.Init.init();" to do that before you
> > use any functionality from that library.
> >         at org.apache.xml.security.c14n.Canonicalizer.<init>(Unknown Source)
> >         at org.apache.xml.security.c14n.Canonicalizer.getInstance(Unknown
> > Source)
> >         at org.apache.xml.security.utils.XMLUtils.outputDOM(Unknown Source)
> >         at org.apache.rampart.util.Axis2Util.toOM(Axis2Util.java:176)
> To fix this, I have had to call org.apache.xml.security.Init.init(); in my 
> class before invoking Axis2Utils.toOM().
> This is rather cumbersome. It would be nice if the axis2-security was 
> packaged so that the xml-security jar need not be imported. 
> Or the toOM() method needs to correctly initialize the xml-security jar.

-- 
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]

Reply via email to