问题描述
- 该有的包都有了,IDEA下一启动就报错,大家进来给点意见
-
2015-7-27 15:18:04 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.ExceptionInInitializerErrorCaused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'LuceneContext' defined in (no description): Class that bean class [com.trs.index.LuceneContext] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/apache/lucene/index/CorruptIndexException
Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/index/CorruptIndexException
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'ILayoutMgr' defined in (no description): Class that bean class [com.trs.components.common.publish.widget.LayoutMgr] depends on not found; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.trs.components.common.publish.widget.LayoutMgr
java.lang.NoClassDefFoundError: Could not initialize class com.trs.components.common.publish.widget.LayoutMgr
at java.lang.Class.forName0(Native Method)
解决方案
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException
我觉得应该是 配置文件或者.xml没有放对位置或者没有在xml文件中引入引起的。仔细检查下。
解决方案二:
ApplicationContext.xml文件配置问题