Announcement Announcement Module
Collapse
No announcement yet.
An exception in spring-ws airline sample Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • An exception in spring-ws airline sample

    I have compiled and deployed the server part of the spring-ws 1.0.3 airline sample. When I try to access flights.jsp, I got a Http 500 error as listed below. The problem is in creating 'marshallingEndpoint' with java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.getTarget Class(.).

    I'm wondering what jars are missing? Or, some jars with incorrect version? I will appreciate it very much if someone can help?

    The apache-tomcat-5.5.25 server is used, and the lib jars used are:

    03/28/2008 09:25 PM 544,682 acegi-security-1.0.6.jar
    12/24/2007 09:03 PM 4,280 acegi-security-tiger-1.0.6.jar
    07/13/2007 11:18 AM 16,447,771 appserv-rt.jar
    03/17/2005 03:32 PM 26,360 asm.jar
    12/07/2006 03:40 AM 1,887,781 aspectjweaver.jar
    12/02/2005 11:28 AM 282,338 cglib-2.1.3.jar
    04/11/2008 03:38 PM 575,389 commons-collections-3.2.1.jar
    07/27/2007 11:51 AM 100,776 commons-dbcp-1.1.jar
    07/27/2007 11:49 AM 52,915 commons-logging-1.1.jar
    07/27/2007 11:50 AM 62,086 commons-pool-1.3.jar
    08/13/2005 03:28 PM 313,898 dom4j-1.6.1.jar
    03/14/2008 04:44 PM 280,196 hibernate-annotations.jar
    04/09/2008 03:38 PM 66,426 hibernate-commons-annotations.jar
    04/09/2008 03:38 PM 116,544 hibernate-entitymanager.jar
    02/06/2008 09:31 PM 2,274,768 hibernate3.jar
    11/16/2006 01:46 PM 471,005 javassist.jar
    03/16/2005 12:10 AM 583,206 jboss-common.jar
    01/26/2008 01:16 PM 531,326 joda-time-1.5.2.jar
    07/27/2007 11:51 AM 1,536,979 ojdbc14-10.2.0.jar
    03/20/2008 05:56 PM 274,208 saaj-impl-1.3.jar
    07/27/2007 11:49 AM 2,545,110 spring-2.0.jar
    12/21/2007 05:47 PM 53,305 spring-oxm-1.0.3.jar
    12/21/2007 05:47 PM 13,733 spring-oxm-tiger-1.0.3.jar
    12/21/2007 05:47 PM 297,183 spring-ws-core-1.0.3.jar
    12/21/2007 05:47 PM 16,835 spring-ws-core-tiger-1.0.3.jar
    12/21/2007 05:47 PM 63,181 spring-ws-security-1.0.3.jar
    12/21/2007 05:47 PM 67,875 spring-xml-1.0.3.jar
    03/20/2008 05:56 PM 148,522 wsdl4j-1.6.1.jar


    The error message is:


    javax.servlet.ServletException: Servlet.init() for servlet ws threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)


    root cause

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'marshallingEndpoint' defined in

    ServletContext resource [/WEB-INF/ws-servlet.xml]: Initialization of bean failed; nested exception is

    java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.getTarget Class(Ljava/lang/ObjectLjava/lang/Class;
    (AbstractAutowireCapableBeanFactory.java:442)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 45)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton

    (DefaultSingletonBeanRegistry.java:141)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:242)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:156)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons

    (DefaultListableBeanFactory.java:290)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:348)
    org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh

    (AbstractRefreshableWebApplicationContext.java:156 )
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 08)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:252 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:221)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:115)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)


    root cause

    java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.getTarget Class(Ljava/lang/ObjectLjava/lang/Class;
    org.springframework.ws.server.endpoint.mapping.Abs tractMethodEndpointMapping.getEndpointClass

    (AbstractMethodEndpointMapping.java:146)
    org.springframework.ws.server.endpoint.mapping.Abs tractAnnotationMethodEndpointMapping.postProcessAf terInitialization

    (AbstractAnnotationMethodEndpointMapping.java:47)


    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors AfterInitialization

    (AbstractAutowireCapableBeanFactory.java:311)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean

    (AbstractAutowireCapableBeanFactory.java:1038)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean

    (AbstractAutowireCapableBeanFactory.java:420)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 45)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton

    (DefaultSingletonBeanRegistry.java:141)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:242)
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:156)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons

    (DefaultListableBeanFactory.java:290)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:348)
    org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh

    (AbstractRefreshableWebApplicationContext.java:156 )
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:3 08)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:252 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:221)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:115)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    java.lang.Thread.run(Thread.java:595)

  • #2
    You will have to upgrade to a more recent version of Spring: 2.0.7 or preferably 2.5.3.

    Comment

    Working...
    X