• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassNotFoundException throws in my spring web project - while running project from eclipse

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to spring framework.  I configured tomcat on my eclipse.  I tried to run it from eclipse.  It through below error.  Its an existing project downloaded from svn:
SEVERE: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.config.MdexConfig] for bean with name 'mdexConfig' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.config.MdexConfig] for bean with name 'mdexConfig' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.config.ApplicationConfig] for bean with name 'applicationConfig' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.config.ApplicationConfig
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.NonAggSearchResultProcessorImpl] for bean with name 'nonresultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.NonAggSearchResultProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.SearchResultProcessorImpl] for bean with name 'resultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.SearchResultProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.RefinementProcessorImpl] for bean with name 'refinementProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.RefinementProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.CombinedGNProcessorImpl] for bean with name 'combinedGnProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.CombinedGNProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.PageZoneGNProcessorImpl] for bean with name 'pageZonegnProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.PageZoneGNProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.LeftColumnProcessorImpl] for bean with name 'contentProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.LeftColumnProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.DefinedSortKey] for bean with name 'definedSortKey' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.DefinedSortKey
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.BaseSortKey] for bean with name 'baseSortKey' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.BaseSortKey
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.EndecaSortKey] for bean with name 'endecaSortKey' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.EndecaSortKey
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.HeaderProcessorImpl] for bean with name 'headerProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.HeaderProcessorImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.SearchServiceImpl] for bean with name 'resultOnlySearchService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.SearchServiceImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.PageResultProcessor] for bean with name 'resultspageResultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.PageResultProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.SearchServiceImpl] for bean with name 'gnOnlySearchService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.SearchServiceImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.PageResultProcessor] for bean with name 'gnpageResultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.PageResultProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.SearchServiceImpl] for bean with name 'searchService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.SearchServiceImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.PageResultProcessor] for bean with name 'pageResultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.PageResultProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.NonAggregatedQueryProcessor] for bean with name 'nonAggQueryProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.NonAggregatedQueryProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.SearchServiceImpl] for bean with name 'aggSearchService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.SearchServiceImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.AggregatedQueryProcessor] for bean with name 'aggQueryProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.AggregatedQueryProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.processor.impl.PageResultProcessor] for bean with name 'aggpageResultProcessor' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.processor.impl.PageResultProcessor
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.BaseEndecaService] for bean with name 'baseEndecaService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.BaseEndecaService
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.service.impl.CacheServiceImpl] for bean with name 'cacheService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.service.impl.CacheServiceImpl
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.util.UrlMapper] for bean with name 'urlMapper' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.util.UrlMapper
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.urlFormatter.DefaultBehaviorSeoNavStateFormatter] for bean with name 'navStateFormatter' defined in ServletContext resource [/WEB-INF/spring/endeca-url-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.urlFormatter.DefaultBehaviorSeoNavStateFormatter
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.urlFormatter.NoQuoteSearchTermParamEncoder] for bean with name 'Ntt-paramEncoder' defined in ServletContext resource [/WEB-INF/spring/endeca-url-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.urlFormatter.NoQuoteSearchTermParamEncoder
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.urlFormatter.NonFormattedSeoDimLocationFormatter] for bean with name 'nonFormatter' defined in ServletContext resource [/WEB-INF/spring/endeca-url-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.urlFormatter.NonFormattedSeoDimLocationFormatter
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5267)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5557)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.config.MdexConfig] for bean with name 'mdexConfig' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1328)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:622)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:434)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:412)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:398)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1040)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:142)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:126)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:126)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
... 28 more
Caused by: java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1722)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1573)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1349)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1320)
... 40 more
Related cause:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.endeca.config.MdexConfig] for bean with name 'mdexConfig' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1328)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:622)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:434)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:404)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:519)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1060)
at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:277)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.detectMappedInterceptors(AbstractHandlerMapping.java:221)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.initApplicationContext(AbstractHandlerMapping.java:196)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:120)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:76)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:74)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5267)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5557)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.endeca.config.MdexConfig
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1722)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1573)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1349)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1320)
... 45 more
Related cause:

Where as if i run it from command line like
d:\project_path\mvn tomcat:run

it is running without any error.   What is the error.  What i done the mistake.
 
reply
    Bookmark Topic Watch Topic
  • New Topic