You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wan Kaveevivitchai <wa...@hotmail.com> on 2006/07/04 09:06:26 UTC
[Axis2] NoClassDefFoundError !!!
Dear All,
I am trying to deploy security module(rampart) and testing with the
security sample provided with axis2. When i tried running build.xml i got
the following error
[java] org.apache.axis2.AxisFault: WSDoAllReceiver: Error in converting to
Document; nested exception is:
[java] org.apache.ws.security.WSSecurityException: Error in
converting SOAP Envelope to Document; nested exception is:
[java] org.apache.axiom.om.OMException:
java.lang.IllegalStateException: Current state not START_ELEMENT
[java] at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:130)
[java] at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
[java] at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
[java] at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
[java] at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:355)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
[java] at sample.security.Client.main(Client.java:58)
[java] Caused by: org.apache.ws.security.WSSecurityException: Error in
converting SOAP Envelope to Document; nested exception is:
[java] org.apache.axiom.om.OMException:
java.lang.IllegalStateException: Current state not START_ELEMENT
[java] at
org.apache.axis2.security.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:126)
[java] at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:128)
[java] ... 9 more
[java] Caused by: org.apache.axiom.om.OMException:
java.lang.IllegalStateException: Current state not START_ELEMENT
[java] at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
[java] at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
[java] at
org.apache.axis2.security.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:90)
[java] ... 10 more
[java] Caused by: java.lang.IllegalStateException: Current state not
START_ELEMENT
[java] at
com.ctc.wstx.sr.BasicStreamReader.getAttributeCount(BasicStreamReader.java:559)
[java] at
org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:141)
[java] at
org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.createOMElement(MTOMStAXSOAPModelBuilder.java:142)
[java] at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:132)
[java] ... 12 more
And at the server, it threw out the response as follow.
NoClassDefFoundError:
org/apache/axiom/om/impl/dom/jaxp/DocumentBuilderFactoryImpl
and the
NoClassDefFoundError:org/apache/axiom/om/impl/dom/jaxp/DocumentBuilderFactoryImpl
also thrown when i tried to validate axis2 page in release Jun 4, 06 with
the engaged rampart. It had not happened before.
Anyone know where i could find this class, in which .jar file i need
to add in the library?
and where i can download it?
Thanks in advance,
Sathita
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] NoClassDefFoundError !!!
Posted by Ruchith Fernando <ru...@gmail.com>.
Plese makesure you have axiom-dom-1.0.jar [1] in the classpath.
Thanks,
Ruchith
[1] http://people.apache.org/repository/ws-commons/jars/axiom-dom-1.0.jar
On 7/4/06, Wan Kaveevivitchai <wa...@hotmail.com> wrote:
> Dear All,
>
> I am trying to deploy security module(rampart) and testing with the
> security sample provided with axis2. When i tried running build.xml i got
> the following error
>
> [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Error in converting to
> Document; nested exception is:
> [java] org.apache.ws.security.WSSecurityException: Error in
> converting SOAP Envelope to Document; nested exception is:
> [java] org.apache.axiom.om.OMException:
> java.lang.IllegalStateException: Current state not START_ELEMENT
> [java] at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:130)
> [java] at
> org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
> [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> [java] at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
> [java] at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:355)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
> [java] at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
> [java] at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
> [java] at sample.security.Client.main(Client.java:58)
> [java] Caused by: org.apache.ws.security.WSSecurityException: Error in
> converting SOAP Envelope to Document; nested exception is:
> [java] org.apache.axiom.om.OMException:
> java.lang.IllegalStateException: Current state not START_ELEMENT
> [java] at
> org.apache.axis2.security.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:126)
> [java] at
> org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:128)
> [java] ... 9 more
> [java] Caused by: org.apache.axiom.om.OMException:
> java.lang.IllegalStateException: Current state not START_ELEMENT
> [java] at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> [java] at
> org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298)
> [java] at
> org.apache.axis2.security.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:90)
> [java] ... 10 more
> [java] Caused by: java.lang.IllegalStateException: Current state not
> START_ELEMENT
> [java] at
> com.ctc.wstx.sr.BasicStreamReader.getAttributeCount(BasicStreamReader.java:559)
> [java] at
> org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:141)
> [java] at
> org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.createOMElement(MTOMStAXSOAPModelBuilder.java:142)
> [java] at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:132)
> [java] ... 12 more
>
> And at the server, it threw out the response as follow.
> NoClassDefFoundError:
> org/apache/axiom/om/impl/dom/jaxp/DocumentBuilderFactoryImpl
>
> and the
> NoClassDefFoundError:org/apache/axiom/om/impl/dom/jaxp/DocumentBuilderFactoryImpl
> also thrown when i tried to validate axis2 page in release Jun 4, 06 with
> the engaged rampart. It had not happened before.
>
> Anyone know where i could find this class, in which .jar file i need
> to add in the library?
> and where i can download it?
>
> Thanks in advance,
> Sathita
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org