问题描述
-RootWebApplicationContext:initializationstarted-LoadingXMLbeandefinitionsfromServletContextresource[/WEB-INF/springconf/springConfig-attrdict.xml]2014-12-2322:32:41org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException:Errorregisteringbeanwithname''definedinServletContextresource[/WEB-INF/springconf/springConfig-attrdict.xml]:Beanclass[com.toone.iems3.framework.attrdict.business.BODictBizImpl]notfound;nestedexceptionisjava.lang.ClassNotFoundException:com.toone.iems3.framework.attrdict.business.BODictBizImpljava.lang.ClassNotFoundException:com.toone.iems3.framework.attrdict.business.BODictBizImplatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)atjava.lang.Class.forName0(NativeMethod)atjava.lang.Class.forName(Class.java:247)atorg.springframework.util.ClassUtils.forName(ClassUtils.java:87)atorg.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:64)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:369)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parsePropertySubElement(DefaultXmlBeanDefinitionParser.java:667)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parsePropertyValue(DefaultXmlBeanDefinitionParser.java:657)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parsePropertyElement(DefaultXmlBeanDefinitionParser.java:600)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parsePropertyElements(DefaultXmlBeanDefinitionParser.java:499)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:367)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:266)atorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:238)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:155)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:124)atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:140)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:116)atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:84)atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:267)atorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2014-12-2322:32:41org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.toone.itop.middleware.tor.util.ApplicationListener
解决方案
解决方案二:
Beanclass[com.toone.iems3.framework.attrdict.business.BODictBizImpl]notfound;是不是缺包,或者spring配置文件有错
解决方案三:
@cs516623814貌似是缺包,不过不知道是缺什么包了。。。
解决方案四:
ClassNotFoundException:com.toone.iems3.framework.attrdict.business.BODictBizImpl少这个类,看着像是你自己写的吧楼主,看看这个路径对吗
解决方案五:
问题有两种可能:一是com.toone.iems3.framework.attrdict.business.BODictBizImpl.class这个类不存在,如果是楼主自己写的,到对应目录下找找,看是不是有,如果是jar包里的类,就查看一下构建路径吧。另一种可能:是applicationContext-*.xml的配置文件路径问题。检查一下配置路径,如果没问题的话,看看你的配置文件中是不是有中文注释,有可能是字符集搞的鬼,删掉所有中文注释,看是不是可以正常启动。