org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMappingC' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsController' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init method failed; nested exception is javax.servlet.ServletException: Couldn't find a MetricRegistry instance.

GitHub | wallon-ines | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error creating bean with name 'metricsController'

    GitHub | 8 months ago | wallon-ines
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMappingC' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsController' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init method failed; nested exception is javax.servlet.ServletException: Couldn't find a MetricRegistry instance.
  2. 0

    [cas-user] CAS 4.2.x Password Policy Active Directory (ldaptive)

    Google Groups | 7 months ago | Brandon Martin
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsController' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init method failed; nested exception is javax.servlet.ServletException: Couldn't find a MetricRegistry instance.
  3. 0

    loader constraint violation

    Stack Overflow | 7 years ago | Javabeginner
    javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/login_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Help deploying my GWT- wep application in an OAS

    Google Groups | 7 years ago | Lucas Rios
    javax.servlet.ServletException: Error instantiating servlet 'uploadServlet'. Servlet class ticketcheckGWT.server.UploadServlet not found in web-application Ticketcheck GWT at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.servletClassNotFound(HttpApplication.java: 4886) at com.evermind[Oracle Containers for J2EE 10g 4852) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.findServlet(HttpApplication.java: 4754) at com.evermind[Oracle Containers for J2EE 10g 2978) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java: 738) at com.evermind[Oracle Containers for J2EE 10g 453) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java: 221) at com.evermind[Oracle Containers for J2EE 10g 122) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java: 111) at oracle.oc4j.network.ServerSocketReadHandler at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor $MyWorker.run(ReleasableResourcePooledExecutor.java:303)
  6. 0

    Error with Java on WebSphere Studio Lesson...

    Google Groups | 2 decades ago | Rob Blaze
    javax.servlet.ServletException: Servlet [PageBeans]: Could not find required servlet class - PageBeans.class at javax.servlet.ServletException.(ServletException.java:61) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:56) at com.ibm.servlet.engine.webapp.WebApp.addServlet(WebApp.java:305) at com.ibm.servlet.engine.webapp.WebAppServletRegistry.addServlet(WebAppServlet Registry.java:42) at com.ibm.servlet.engine.webapp.InvokerServlet.service(InvokerServlet.java:155 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.servlet.ServletException

      Couldn't find a MetricRegistry instance.

      at com.codahale.metrics.servlets.MetricsServlet.init()
    2. Metrics Utility Servlets
      MetricsServlet.init
      1. com.codahale.metrics.servlets.MetricsServlet.init(MetricsServlet.java:139)
      1 frame
    3. Spring MVC
      ServletWrappingController.afterPropertiesSet
      1. org.springframework.web.servlet.mvc.ServletWrappingController.afterPropertiesSet(ServletWrappingController.java:140)
      1 frame
    4. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1641)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      8 frames
    5. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
      1 frame
    6. Spring MVC
      SimpleUrlHandlerMapping.initApplicationContext
      1. org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:313)
      2. org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandlers(SimpleUrlHandlerMapping.java:128)
      3. org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initApplicationContext(SimpleUrlHandlerMapping.java:103)
      3 frames
    7. Spring Context
      ApplicationObjectSupport.initApplicationContext
      1. org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:120)
      1 frame
    8. Spring
      WebApplicationObjectSupport.initApplicationContext
      1. org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:76)
      1 frame
    9. Spring Context
      ApplicationContextAwareProcessor.postProcessBeforeInitialization
      1. org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:74)
      2. org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
      3. org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
      3 frames
    10. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
      8 frames
    11. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1060)
      1 frame
    12. Jasig CAS Core
      AbstractServletContextInitializer.addControllerToCasServletHandlerMapping
      1. org.jasig.cas.web.AbstractServletContextInitializer.getCasServletHandlerMapping(AbstractServletContextInitializer.java:194)
      2. org.jasig.cas.web.AbstractServletContextInitializer.addControllerToCasServletHandlerMapping(AbstractServletContextInitializer.java:206)
      2 frames
    13. org.jasig.cas
      SamlServletContextListener.initializeServletApplicationContext
      1. org.jasig.cas.support.saml.SamlServletContextListener.initializeServletApplicationContext(SamlServletContextListener.java:60)
      1 frame
    14. Jasig CAS Core
      AbstractServletContextInitializer.setApplicationContext
      1. org.jasig.cas.web.AbstractServletContextInitializer.setApplicationContext(AbstractServletContextInitializer.java:111)
      1 frame
    15. Spring Context
      ApplicationContextAwareProcessor.postProcessBeforeInitialization
      1. org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
      2. org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
      2 frames
    16. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
      9 frames
    17. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
      2 frames
    18. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
      3 frames
    19. Glassfish Core
      HostConfig$DeployWar.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
      7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
      8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
      8 frames
    20. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames