Results 1 to 2 of 2

Thread: Exception when deploying application - java.lang.NoSuchMethodError

  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Default Exception when deploying application - java.lang.NoSuchMethodError

    My Struts-Spring application give following error when it is deploying.
    I tried it with another server and it works.
    All the libraries used are same as other server.

    org.apache.struts.action.ActionServlet ( 364) Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    java.lang.NoSuchMethodError: org.springframework.beans.factory.config.Configura bleListableBeanFactory.registerScope(Ljava/lang/String;Lorg/springframework/beans/factory/config/ScopeV
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.postProcessBeanFact ory(AbstractRefreshableWebApplicationContext.java: 161)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.web.struts.ContextLoaderPlugIn .createWebApplicationContext(ContextLoaderPlugIn.j ava:353)
    at org.springframework.web.struts.ContextLoaderPlugIn .initWebApplicationContext(ContextLoaderPlugIn.jav a:296)
    at org.springframework.web.struts.ContextLoaderPlugIn .init(ContextLoaderPlugIn.java:225)
    at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(Action Servlet.java:336)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4042)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4348)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:825)
    at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:714)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:490)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)


    Can any one help me. I can't switch to another server I want to do it this server itself.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Use [ code][/code ] tags when posting code.

    Check your WHOLE classpath for wrong jar version, you are probably mixing versions of spring.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •