org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'IdleAssetNotify' defined in ServletContext resource \[/WEB-INF/idleAsset-servlet.xml\]: Class that bean class \[com.ge.comfin.fleet.idleasset.controller.IdleAssetNotifyController\] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/tcs/perc/jensor/core/Profile

jensor | manishchadwal | 8 years ago
  1. 0

    Jensor:Monitoring webapp deployed on Weblogic

    jensor | 8 years ago | manishchadwal
    org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'IdleAssetNotify' defined in ServletContext resource \[/WEB-INF/idleAsset-servlet.xml\]: Class that bean class \[com.ge.comfin.fleet.idleasset.controller.IdleAssetNotifyController\] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/tcs/perc/jensor/core/Profile
  2. 0

    Configuration problm: Failed to import bean definitions from URL location

    Stack Overflow | 2 years ago | Abhijeet Panwar
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf-extension-soap.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf-extension-soap.xml] cannot be opened because it does not exist
  3. 0

    java,spring,web-services,java-ee,cxf , Configuration problm: Failed to import bean definitions from URL location

    databasefaq.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf-extension-soap.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf-extension-soap.xml] cannot be opened because it does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The definition below does not work with the PropertyPlaceholderConfigurer because the PropertyPlaceholderConfigurer attempts to resolve the placeholders itself rather than leaving them to be resolved by the interceptor. <bean name="loggingInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor"> <property name="enterMessageTemplate" value="BEGIN ${targetClassShortName}.${methodName}({$arguments})"/> <property name="exitMessageTemplate" value="END ${targetClassShortName}.${methodName}({$arguments}). Return value was ${returnValue}"/> </bean> The exception message is: ERROR (DispatcherServlet:initServletBean) - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'loggingInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Could not resolve placeholder 'targetClassShortName' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:223) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:184) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:366) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:133) at com.spider.scoreboard.framework.springx.ScoreboardApplicationContext.refresh(ScoreboardApplicationContext.java:73) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.loadContext(ScoreboardContextLoaderServlet.java:294) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.startupOrRestart(ScoreboardContextLoaderServlet.java:129) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.init(ScoreboardContextLoaderServlet.java:84) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.sart(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) I think the CustomizableTraceInterceptor should be modified so that $targetClassShortName is treated the same as ${targetClassShortName}

    Spring JIRA | 1 decade ago | Matthew Sgarlata
    org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'loggingInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Could not resolve placeholder 'targetClassShortName'
  6. 0

    The definition below does not work with the PropertyPlaceholderConfigurer because the PropertyPlaceholderConfigurer attempts to resolve the placeholders itself rather than leaving them to be resolved by the interceptor. <bean name="loggingInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor"> <property name="enterMessageTemplate" value="BEGIN ${targetClassShortName}.${methodName}({$arguments})"/> <property name="exitMessageTemplate" value="END ${targetClassShortName}.${methodName}({$arguments}). Return value was ${returnValue}"/> </bean> The exception message is: ERROR (DispatcherServlet:initServletBean) - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'loggingInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Could not resolve placeholder 'targetClassShortName' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:223) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:184) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:366) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:133) at com.spider.scoreboard.framework.springx.ScoreboardApplicationContext.refresh(ScoreboardApplicationContext.java:73) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.loadContext(ScoreboardContextLoaderServlet.java:294) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.startupOrRestart(ScoreboardContextLoaderServlet.java:129) at com.spider.scoreboard.framework.springx.ScoreboardContextLoaderServlet.init(ScoreboardContextLoaderServlet.java:84) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.sart(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) I think the CustomizableTraceInterceptor should be modified so that $targetClassShortName is treated the same as ${targetClassShortName}

    Spring JIRA | 1 decade ago | Matthew Sgarlata
    org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'loggingInterceptor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Could not resolve placeholder 'targetClassShortName'

    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. org.springframework.beans.factory.BeanDefinitionStoreException

      Error registering bean with name 'IdleAssetNotify' defined in ServletContext resource \[/WEB-INF/idleAsset-servlet.xml\]: Class that bean class \[com.ge.comfin.fleet.idleasset.controller.IdleAssetNotifyController\] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/tcs/perc/jensor/core/Profile

      at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement()
    2. Spring Beans
      XmlBeanDefinitionReader.registerBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:550)
      2. org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:432)
      3. org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:347)
      4. org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:197)
      5. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)
      5 frames