Announcement Announcement Module
Collapse
No announcement yet.
getting error in spring ws Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting error in spring ws

    Hi,

    I am getting following error while opening wsdl in spring ws..

    any ideas? pleae help

    javax.servlet.ServletException: Servlet.init() for servlet spring-ws threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    org.apache.catalina.authenticator.SingleSignOn.inv oke(SingleSignOn.java:393)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)



    trace:

    javax.servlet.ServletException: Servlet.init() for servlet spring-ws threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    org.apache.catalina.authenticator.SingleSignOn.inv oke(SingleSignOn.java:393)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)


    root cause

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.ws.server.endpoint.mapping.Pa yloadRootQNameEndpointMapping#0' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:480)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    java.security.AccessController.doPrivileged(Native Method)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 02)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:316 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:282)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    org.apache.catalina.authenticator.SingleSignOn.inv oke(SingleSignOn.java:393)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)


    root cause

    java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Class.ja va:2395)
    java.lang.Class.getDeclaredMethods(Class.java:1763 )
    java.beans.Introspector$1.run(Introspector.java:12 65)
    java.security.AccessController.doPrivileged(Native Method)
    java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1263)
    java.beans.Introspector.getTargetMethodInfo(Intros pector.java:1129)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:387)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:159)
    org.springframework.beans.CachedIntrospectionResul ts.<init>(CachedIntrospectionResults.java:220)
    org.springframework.beans.CachedIntrospectionResul ts.forClass(CachedIntrospectionResults.java:144)
    org.springframework.beans.BeanWrapperImpl.getCache dIntrospectionResults(BeanWrapperImpl.java:252)
    org.springframework.beans.BeanWrapperImpl.getPrope rtyDescriptorInternal(BeanWrapperImpl.java:282)
    org.springframework.beans.BeanWrapperImpl.isWritab leProperty(BeanWrapperImpl.java:333)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1247)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1010)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:472)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    java.security.AccessController.doPrivileged(Native Method)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 02)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:316 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:282)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
    org.apache.catalina.authenticator.SingleSignOn.inv oke(SingleSignOn.java:393)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:261)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:581)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:595)
    Last edited by NJ07869; Dec 8th, 2008, 11:33 AM. Reason: added error trace

  • #2
    u need xml-api.jar in ur classpath

    Comment


    • #3
      that does not work

      Comment

      Working...
      X