bug3:Caused by: java.lang.ClassNotFoundException

阅读更多

项目昨天启动好好的,今天来了之后就启动不了。启动提示class没有找到

Caused by: java.lang.ClassNotFoundException: com.yhd.popsicle.system.jobs.KiraConf

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)

at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)

at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:415)

at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1284)

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1255)

... 80 more

Related cause:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.yhd.popsicle.security.core.cache.SecurityCacheManager] for bean with name 'securityCacheManager' defined in URL [jar:file:/D:/Develop/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/popsicle-webapp/WEB-INF/lib/popsicle-web-security-0.0.1-SNAPSHOT.jar!/conf/sys/popsicle-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.yhd.popsicle.security.core.cache.SecurityCacheManager

at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1263)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:581)

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1332)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:337)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:308)

at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)

at org.springframework.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder.buildAspectJAdvisors(BeanFactoryAspectJAdvisorsBuilder.java:90)

at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:86)

at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:107)

本来以为是没有编译,所以clear项目,但是都不成功。后来看了一下build path  发现导入的jar包报错。说没有找到jar包。

问题已经定位:因为项目jar包导入失败,所以在clear项目时项目不会去编译Java文件,导致没有生成class文件

 

你可能感兴趣的:(bug3:Caused by: java.lang.ClassNotFoundException)