Yes !

You have to use stax-1.0.1. Please replace your stax-api jar with this
[1] and woodstox (wstx-asl-*.jar) with this [2].

Thanks,
Ruchith

[1] http://www.ibiblio.org/maven/stax/jars/stax-api-1.0.1.jar
[2] http://www.ibiblio.org/maven/woodstox/jars/wstx-asl-3.0.0.jar

On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

Do I need to upgrade any other libraries? When I used the the latest
snapshot I get this error in my application. I have pasted only
the relevant portion of the stack trace as the other parts are
confidential.

thanks

Aravind

Error is

java.lang.NoSuchMethodError:
javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
        at 
org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:97)
        at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:111)
        at org.apache.axiom.om.impl.dom.NodeImpl.serialize(NodeImpl.java:577)
        at 
org.apache.axiom.om.impl.dom.ElementImpl.toString(ElementImpl.java:1139)



On 9/13/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Can you please try this with the latest axiom-*-SNAPSHOT jars.
>
> http://people.apache.org/repository/ws-commons/jars/axiom-api-SNAPSHOT.jar
> http://people.apache.org/repository/ws-commons/jars/axiom-dom-SNAPSHOT.jar
>
> http://people.apache.org/repository/ws-commons/jars/axiom-impl-SNAPSHOT.jar
>
> Thanks,
> Ruchith
>
> On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > At ResolverFragment.java:60
> >
> > Document doc = uri.getOwnerElement().getOwnerDocument();
> >
> > This happens when we try to verify a xml signature. We are using
> > axiom(version 1)/wss4j-1.5.0/xerces-2.7.1/xml-api-1.3.02/xmlsec-1.3.0with
> > Tomcat.
> >
> > uri.getOwnerElement() is of type DocumentImpl that can't be type cast
> > into Element as none of the super classes implement the Element
> interface.
> > Am I right? I am new to web services and I don't understand fully. But
> this
> > problem is always reproducible in our environment.
> >
> > Any help will be greatly appreciated.
> >
> > thanks
> >
> > Aravind
> >
> >
>
>
> --
> www.ruchith.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to