WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Web Services: org.apache.axiom.om.util.StAXUtils

    Posted 12/23/11 12:23 PM
    I am geting an error when I run a spring application that is using spring webservices implementatioin on WAS 7. The org.apache.axiom.om.util.StAXUtils in the application is falling to initialize. Below is part of the error trace:

    E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[ws]: java.lang.NoClassDefFoundError: org.apache.axiom.om.util.StAXUtils (initialization failure)



    at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)



    at org.apache.axis2.saaj.SOAPPartImpl.(SOAPPartImpl.java:178)



    at org.apache.axis2.saaj.SOAPMessageImpl.(SOAPMessageImpl.java:93)



    at org.apache.axis2.saaj.MessageFactoryImpl.createMessage(Message
    FactoryImpl.java:127)



    at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.create
    WebServiceMessage(SaajSoapMessageFactory.java:164)


    //revomoved for brevity

    Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.



    at org.apache.axiom.om.util.StAXUtils$Pool.(StAXUtils.java:44)



    at org.apache.axiom.om.util.StAXUtils.(StAXUtils.java:68)



    at java.lang.J9VMInternals.initializeImpl(Native Method)



    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)



    at org.apache.axis2.saaj.SOAPPartImpl.(SOAPPartImpl.java:178)



    at org.apache.axis2.saaj.SOAPMessageImpl.(SOAPMessageImpl.java:93)



    at org.apache.axis2.saaj.MessageFactoryImpl.createMessage(Message
    FactoryImpl.java:127)



    at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.create
    WebServiceMessage(SaajSoapMessageFactory.java:164)


    Any suggestions on how to deal with issue, greatly appreciated.
    MWL


  • 2.  Web Services: org.apache.axiom.om.util.StAXUtils

    Posted 12/23/11 02:17 PM
    If you wait for application startup to complete and then make the webservices call ... do you still get the error ? I think you are having problems locating the jar file using the manifest.  
     


  • 3.  Web Services: org.apache.axiom.om.util.StAXUtils

    Posted 01/03/12 04:11 PM
    Joseph:
    thanks for your reponse. basically the error gets generated at runtime, all the classes are successfully loaded by was 7; however, the errror occurs when there is a call to one of the web services modules using stax implementation.

    --best
    miya