在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
好纠结,怎么解决啊?这是一个二次开发的项目……

3个回答

主要看这句,Setting property 'source' to 'org.eclipse.jst.j2ee.server:pkp-deliver-web' did not find a matching property.这是说在这个类里面没有找到source属性。看你的tomcat版本是6点几的,猜测是tomcat版本太低造成的,你可以换个tomcat7或者tomcat8试试。

jre1.8。。。。。。。。。。。。。。。。。。。。

我的是 Could not resolve placeholder 'CATALINA_HOME'、、、纠结中

xx599306170
xx599306170 回复于瓜瓜: 应该是环境变量的事儿吧。。我忘了。。现在好了
4 年多之前 回复
nich002
于瓜瓜 请问你解决这个问题了么,我的项目也出现了这个问题.
大约 5 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐