Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
Exception when deploying application - java.lang.NoSuchMethodError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Use [ code][/code ] tags when posting code.

    Check your WHOLE classpath for wrong jar version, you are probably mixing versions of spring.

    Comment

    Working...
    X