开发者社区> 问答> 正文

在Tomcat部署的时候出现Could not resolve placeholder

错误提示:

四月 08, 2015 5:24:09 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_31\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_40/bin/server;C:/Program Files/Java/jre1.8.0_40/bin;C:/Program Files/Java/jre1.8.0_40/lib/amd64;D:\app\Administrator\product\11.2.0\client_2\bin;D:\app\Administrator\product\11.2.0\client_1\bin;D:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Apache\apache-maven-3.2.5\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Java\jre1.8.0_31\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\eclipse;;.
四月 08, 2015 5:24:09 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:pkp-deliver-web' did not find a matching property.
四月 08, 2015 5:24:09 下午 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
四月 08, 2015 5:24:09 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 347 ms
四月 08, 2015 5:24:09 下午 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
四月 08, 2015 5:24:09 下午 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.43
四月 08, 2015 5:24:10 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
[08/04/15 05:24:10:010 CST] INFO context.ContextLoader: Root WebApplicationContext: initialization started
[08/04/15 05:24:10:010 CST] INFO support.XmlWebApplicationContext: Refreshing Root WebApplicationContext: startup date [Wed Apr 08 17:24:10 CST 2015]; root of context hierarchy
[08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [jar:file:/C:/Users/Administrator/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/pkp-deliver-web/WEB-INF/lib/framework-server-1.1.2.jar!/com/deppon/foss/framework/server/META-INF/spring.xml]
[08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [jar:file:/C:/Users/Administrator/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/pkp-deliver-web/WEB-INF/lib/pda-bdm-push-0.0.1-express-SNAPSHOT.jar!/com/deppon/pda/bdm/module/push/server/META-INF/spring.xml]
[08/04/15 05:24:10:010 CST] INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring.xml]
[08/04/15 05:24:11:011 CST] INFO support.DefaultListableBeanFactory: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@fd8294b: defining beans [org.springframework.aop.config.internalAutoProxyCreator,pushDao,pushService,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,{http://www.deppon.com/fin/module/claimpay/service}IFinClaimNumServicePort.http-conduit,dataSourceSpied,dataSource,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sqlSessionFactory,mongo,mongodbFactory,performanceLog,mongoLogSender,poolConfig,client,storage,client1,storage1,client2,storage2,client3,storage3,esbInitUtil,fileConfig,fileManager,fileUpload,attachementDao,attachementService,appProfile,logSwitch,activeMQUtil,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,extendConfigurationDao,smsSender,messageCache,messageCacheProvider,oracleDialect,exceptionConvert,syncDataFetcherScanner,webApplicationContextHolder,JSONInterceptor,securityInterceptor,messageBundle,JSPErrorResult]; root of factory hierarchy
[08/04/15 05:24:11:011 CST] ERROR context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mongo' defined in ServletContext resource [/WEB-INF/spring.xml]: Could not resolve placeholder 'mongodb.host'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.deppon.foss.framework.server.web.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mongo' defined in ServletContext resource [/WEB-INF/spring.xml]: Could not resolve placeholder 'mongodb.host'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
四月 08, 2015 5:24:11 下午 org.apache.catalina.core.StandardContext start
严重: Context [/pkp-deliver-web] startup failed due to previous errors
四月 08, 2015 5:24:11 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
四月 08, 2015 5:24:11 下午 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
四月 08, 2015 5:24:11 下午 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
四月 08, 2015 5:24:11 下午 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/18 config=null
四月 08, 2015 5:24:11 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2212 ms

展开
收起
小旋风柴进 2016-03-03 14:14:39 8170 0
1 条回答
写回答
取消 提交回答
  • org.springframework.beans.factory.config.PropertyPlaceholderConfigurer 这个类未配置吧 导致没有把对应的属性值转换成功

    2019-07-17 18:51:21
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载