Hi, This is not a CXF problem. The exception is clear: java.lang.ClassNotFoundException: demo.restful.CategoryService and nested exception is java.lang.ClassNotFoundException: demo.restful.CategoryDAO. Those classes are not on the classpath. You are probably packing you app the wrong way.
Regards, Diogo Diogo Sant'Ana On Tue, Mar 25, 2014 at 8:41 AM, ramana polaka <[email protected]> wrote: > restapp.xml <http://cxf.547215.n5.nabble.com/file/n5741818/restapp.xml> > beans.xml <http://cxf.547215.n5.nabble.com/file/n5741818/beans.xml> > web.xml <http://cxf.547215.n5.nabble.com/file/n5741818/web.xml> > Category.java <http://cxf.547215.n5.nabble.com/file/n5741818/Category.java > > > CategoryDAO.java > <http://cxf.547215.n5.nabble.com/file/n5741818/CategoryDAO.java> > CategoryService.java > <http://cxf.547215.n5.nabble.com/file/n5741818/CategoryService.java> > Category.java <http://cxf.547215.n5.nabble.com/file/n5741818/Category.java > > > restapp.xml <http://cxf.547215.n5.nabble.com/file/n5741818/restapp.xml> > hi,I'm new to webservices.......pls help me > /*restapp.xml*/ > <?xml version="1.0" encoding="UTF-8"?> > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd "> > > <bean id="categoryService" class="demo.restful.CategoryService"> > <property name="categoryDAO"> > <ref bean="categoryDAO" /> > </property> > </bean> > > > <bean id="categoryDAO" class="demo.restful.CategoryDAO"> > > </bean> > </beans> > > > > > > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:206) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 34 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at > > org.apache.cxf.bus.managers.CXFBusLifeCycleManager.initComplete(CXFBusLifeCycleManager.java:80) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:208) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 34 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at > > org.apache.cxf.bus.managers.CXFBusLifeCycleManager.initComplete(CXFBusLifeCycleManager.java:80) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:208) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 34 more > Mar 25, 2014 4:57:21 PM org.apache.catalina.core.StandardContext > listenerStart > SEVERE: Exception sending context initialized event to listener instance of > class org.springframework.web.context.ContextLoaderListener > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: > Initialization of bean failed; nested exception is > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: > Cannot find class [demo.restful.CategoryService] for bean with name > 'categoryService' defined in ServletContext resource > [/WEB-INF/restapp.xml]; > nested exception is java.lang.ClassNotFoundException: > demo.restful.CategoryService > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:298) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1132) > at > > org.apache.cxf.bus.spring.BusApplicationContextResourceResolver.resolve(BusApplicationContextResourceResolver.java:72) > at > > org.apache.cxf.resource.DefaultResourceManager.findResource(DefaultResourceManager.java:113) > at > > org.apache.cxf.resource.DefaultResourceManager.resolveResource(DefaultResourceManager.java:62) > at > > org.apache.cxf.common.injection.ResourceInjector.resolveResource(ResourceInjector.java:442) > at > > org.apache.cxf.common.injection.ResourceInjector.visitMethod(ResourceInjector.java:229) > at > > org.apache.cxf.common.annotation.AnnotationProcessor.processMethods(AnnotationProcessor.java:89) > at > > org.apache.cxf.common.annotation.AnnotationProcessor.accept(AnnotationProcessor.java:72) > at > > org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:118) > at > > org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:112) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:243) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:335) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:163) > at > > org.apache.cxf.bus.managers.CXFBusLifeCycleManager.initComplete(CXFBusLifeCycleManager.java:80) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:208) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > ... 21 more > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 46 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:198) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 33 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:198) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 33 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.setBus(PolicyEngineImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.<init>(PolicyEngineImpl.java:91) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.cxf.bus.extension.Extension.load(Extension.java:208) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:214) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:121) > at > > org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:142) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:204) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 44 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryDAO] for bean with name 'categoryDAO' defined > in > ServletContext resource [/WEB-INF/restapp.xml]; nested exception is > java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.setBus(PolicyEngineImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.<init>(PolicyEngineImpl.java:91) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.cxf.bus.extension.Extension.load(Extension.java:208) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:214) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:121) > at > > org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:142) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:204) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryDAO > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) > ... 44 more > Related cause: > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [demo.restful.CategoryService] for bean with name 'categoryService' > defined in ServletContext resource [/WEB-INF/restapp.xml]; nested exception > is java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317) > at > > org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1136) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:155) > at > > org.apache.cxf.service.factory.FactoryBeanListenerManager.setBus(FactoryBeanListenerManager.java:57) > at > > org.apache.cxf.service.factory.FactoryBeanListenerManager.<init>(FactoryBeanListenerManager.java:46) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.cxf.bus.extension.Extension.load(Extension.java:208) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:214) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:335) > at > > org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocator.java:163) > at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.setBus(PolicyEngineImpl.java:108) > at > org.apache.cxf.ws.policy.PolicyEngineImpl.<init>(PolicyEngineImpl.java:91) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.cxf.bus.extension.Extension.load(Extension.java:208) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:214) > at > > org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:121) > at > > org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:142) > at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:204) > at > > org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:89) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109) > at > > org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > at > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) > at > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) > at > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) > at > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) > at > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.ClassNotFoundException: demo.restful.CategoryService > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) > at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) > at > > org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282) > at org.springframework.beans.factory.support > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/i-m-getting-this-Exception-tp5741818.html > Sent from the cxf-user mailing list archive at Nabble.com. >
