java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible (Ljava/lang/reflect/Constructor;)V

Solution Unverified - Updated -

Issue

  • We are deploying an application based in spring which seems to context initialization failed, we find this error in server.log:
2015-07-30 09:15:16,590 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Context initialization failed: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:99) [spring-beans-2.5.6.jar:2.5.6]
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:78) [spring-beans-2.5.6.jar:2.5.6]
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:249) [spring-2.5.6.jar:2.5.6]
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring-2.5.6.jar:2.5.6]
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-2.5.6.jar:2.5.6]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.17.Final-redhat-1-JBPAPP6-1709.jar:]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.17.Final-redhat-1-JBPAPP6-1709.jar:]
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0.1
  • Spring

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.