请教下Spring MVC框架下面maven更新jar包错误。

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in URL [jar:file:/E:/EosSpace/eos/src/main/webapp/WEB-INF/lib/platform-config-1.1.0-SNAPSHOT.jar!/conf/platform-ds.xml]: Could not resolve placeholder 'platform.database.driverClassName'
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
2014-08-14 08:30:13.001:INFO::Started [email protected]:8080

第1个回答  2014-08-15
和maven没关系吧。
Could not resolve placeholder 'platform.database.driverClassName'

你看一下你spring xml配置的数据源platform.database.driverClassName这个的配置,是不是有问题了。
也有可以是maven没下载全包,具体还需要去测试问题所在追问

谢谢解答
和maven有关系的。
maven加载jar包,出现错误。我把jar 下面部署的maven删除就好了。

第2个回答  2014-08-15
第一步:选中项目,先project----》clean一下。
第二步:选中项目,Debug AS------>maven clean
第三部:加载pom里的jar,Debug AS------>maven INSTALL追问

谢谢,问题找到了。
lib 下面jar都存在的。还是maven加载JAR包的问题。
我把maven删除后,就没问题了。

本回答被提问者采纳
相似回答