jdbc无法连接linux上的mysql数据库
在linux虚拟机上安装一个mysql,在linux中可以启动,也可以用mysql,命令连接,在远程的window服务器使用navicate也可以连接,就是使用jdbc连接出错,(jdbc连接window上的mysql是可以的),而且报错《错误日志;
Excluded entry=D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-apptargettest-classes
Excluded entry=D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-askwebtargettest-classes
Excluded entry=D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-servicetargettest-classes
Excluded entry=D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-apitargettest-classes
Excluded entry=D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-daotargettest-classes
2015-08-28 17:18:13.546:INFO::jetty-6.1.26
2015-08-28 17:18:14.477:INFO:/ask:Initializing Spring root WebApplicationContext
2015-08-28 17:18:14.479 [main] INFO org.springframework.web.context.ContextLoader -
Root WebApplicationContext: initialization started
2015-08-28 17:18:14.572 [main] INFO o.s.web.context.support.XmlWebApplicationContext -
Refreshing Root WebApplicationContext: startup date [Fri Aug 28 17:18:14 CST 2015]; root of context hierarchy
2015-08-28 17:18:14.624 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from URL [file:/D:/newtouch/git/ask-server/ask-server/com.newtouch.ask/com.newtouch.ask-app/target/classes/applicationContext-admin.xml]
2015-08-28 17:18:14.725 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [common/applicationContext-scan.xml]
2015-08-28 17:18:15.265 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [common/applicationContext-common.xml]
2015-08-28 17:18:15.288 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [common/applicationContext-datasource.xml]
2015-08-28 17:18:15.330 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [common/applicationContext-properties.xml]
2015-08-28 17:18:15.384 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [cache/applicationContext-cache.xml]
2015-08-28 17:18:15.484 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [dao/applicationContext-jpa.xml]
2015-08-28 17:18:15.509 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [tx/applicationContext-tx.xml]
2015-08-28 17:18:15.555 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [shiro/applicationContext-shiroweb.xml]
2015-08-28 17:18:15.589 [main] INFO o.s.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from class path resource [freemarker/applicationContext-freemarker.xml]
2015-08-28 17:18:16.494 [main] INFO o.s.beans.factory.config.PropertiesFactoryBean -
Loading properties file from class path resource [application.properties]
2015-08-28 17:18:17.459 [main] WARN o.s.web.context.support.XmlWebApplicationContext -
Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'entityManagerFactory' defined in class path resource [dao/applicationContext-jpa.xml]: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:174) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:151) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:671) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) [spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) [spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26]
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.Server.doStart(Server.java:224) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26]
at runjettyrun.Bootstrap.main(Bootstrap.java:97) [run-jetty-run-bootstrap.jar:na]
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:190) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:164) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:167) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitList(BeanDefinitionVisitor.java:228) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:192) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:206) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
... 18 common frames omitted
2015-08-28 17:18:17.460 [main] INFO o.s.b.factory.support.DefaultListableBeanFactory -
Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19a8cd8a: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataTableController,indexController,adminLoginController1,cacheMonitorController,hibernateMonitorController,jvmMonitorController,sessionController,sysApplicationPropertyContorller,webCacheController,sysCodeController,sysCodelistController,sysCodeTypeController,sysDataColumnController,sysDataGridContorller,departmentController,groupController,iconController,loginLogController,parameterController,reminderController,sysResourceController,roleController,tasksController,sysAccount,sysCalendar,sysUserAccount,sysUserController,treeController,applicationController,springContextUtil,applicationPropertyDaoImpl,dataColumnDao,dataGridDao,calendarDao,codeListDao,codeTypeDao,demoDao,departmentDao,groupDao,groupRoleDao,iconDao,loginLogDao,loginLogGroup,parameterDao,positionDaoImpl,reminderDao,resourceDao,roleDao,roleGroupDao,tasksDao,tipTextDao,userDao,userGroupDao,userRoleDao,applicationInfoService,applicationPropertyServiceImpl,dataColumnService,dataGridService,excelExportService,calendarService,codeListService,codeServiceImpl,codeTypeService,demoService,departmentService,groupServiceImpl,iconService,loginLogService,parameterService,passwordEncoderService,positionServiceImpl,reminderService,resourceService,roleService,tasksService,tipTextService,userService,parameterCacheService,menuServiceImpl,sessionServiceImpl,extendDepartmentServiceImpl,treeResourceServiceImpl,applicationCacheManagerImpl,passwordEncoder,shiroResouceServiceImpl,hibernateMonitorDaoImpl,hibernateMonitorServiceImpl,jvmMonitorServiceImpl,commonFrontController,detailFrontController,indexFrontController,answerFrontController,collectFrontController,concernFrontController,personCommonController,personDataFrontController,personQuestionFrontController,reminderFrontController,questionFrontController,questionListFrontController,tagFrontController,answerService,browseQuestionServiceImpl,questionServiceImpl,reminderServiceImpl,sensitivceServiceImpl,staffService,staffTagService,staticsServiceImpl,tagService,answerDaoImpl,browseQuestionDaoImpl,footprintDaoImpl,questionDaoImpl,reminderDaoImpl,sensitiveDaoImpl,staffDaoImpl,staffTagDaoImpl,staticsDaoImpl,tagDaoImpl,sysMessages,applicationPropertiesConfig,dataSource,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,applicationProperties,databaseConfiguration,org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,cacheManager,sysParameterEhCache,sysParameterCache,codeListEhCache,codeListCache,abstractInitializedCaches,com.newtouch.lion.listener.ApplicationInitializedListenerService#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,persistenceProvider,jpaDialect,jpaVendorAdapter,entityManagerFactory,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,methodTimerAdvice,methodTraceAdvice,txAdvice,doMethodTimer,idoMethodTimer,methodTrace,serviceTx,cacheManagerShiro,credentialsMatcher,userRealm,sessionIdGenerator,sessionIdCookie,rememberMeCookie,rememberMeManager,sessionDAO,sessionValidationScheduler,sessionManager,securityManager,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,formAuthenticationFilter,forceLogoutFilter,sessionControlFilter,sessionCacheManager,logoutFilter,ajaxPermissions,shiroFilter,filterChainDefinitionManager,lifecycleBeanPostProcessor,freeMarkerConfigurer,freemarkerConfiguration,authenticated,guest,hasAnyRoles,hasPermission,hasRole,lacksPermission,lacksRole,notAuthenticated,principal,user,menu,dataGrid,comboBox,strIsEmpty,strIsNotEmpty,shiroTag,uiTag,shiro,ui,multipartResolver,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
2015-08-28 17:18:17.465 [main] ERROR org.springframework.web.context.ContextLoader -
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'entityManagerFactory' defined in class path resource [dao/applicationContext-jpa.xml]: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:174) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:151) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:671) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) ~[spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26]
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.Server.doStart(Server.java:224) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26]
at runjettyrun.Bootstrap.main(Bootstrap.java:97) [run-jetty-run-bootstrap.jar:na]
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:190) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:164) ~[spring-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:167) ~[spring-context-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitList(BeanDefinitionVisitor.java:228) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:192) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:206) ~[spring-beans-3.2.12.RELEASE.jar:3.2.12.RELEASE]
... 18 common frames omitted
2015-08-28 17:18:17.466:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@4820fe6{/ask,D:newtouchgitask-serverask-servercom.newtouch.askcom.newtouch.ask-appsrcmainwebapp}
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'entityManagerFactory' defined in class path resource [dao/applicationContext-jpa.xml]: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:174)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:151)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:671)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
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)
2015-08-28 17:18:17.467:WARN::Nested in org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'entityManagerFactory' defined in class path resource [dao/applicationContext-jpa.xml]: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml":
java.lang.IllegalArgumentException: Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125)
at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:190)
at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:164)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:167)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitList(BeanDefinitionVisitor.java:228)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:192)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82)
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:206)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:174)
at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:151)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:696)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:671)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
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)
2015-08-28 17:18:17.493:INFO::Started SelectChannelConnector@0.0.0.0:8080
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Could not resolve placeholder 'database.prefix' in string value "model/application/bas_app_properties.${database.prefix}.orm.xml 看这个错误是没找到配置文件database.prefix字符串没有替换成功