图片左边是windows平台启动日志,右边是linux平台启动日志,看了报错好像跟连接池,可是系统没用用到连接池。还有项目是跑在虚拟机里,下面是出错的完整日志。
2014-05-29 04:00:06 [org.springframework.web.context.ContextLoader]-[INFO] - Root WebApplicationContext: initialization started 2014-05-29 04:00:06 [org.springframework.web.context.support.XmlWebApplicationContext]-[INFO] - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@ef45815: display name [Root WebApplicationContext]; startup date [Thu May 29 04:00:06 CST 2014]; root of context hierarchy 2014-05-29 04:00:06 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml] 2014-05-29 04:00:07 [org.springframework.web.context.support.XmlWebApplicationContext]-[INFO] - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@ef45815]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3cbaefbb 2014-05-29 04:00:08 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]-[INFO] - Loading properties file from class path resource [dataSource.properties] 2014-05-29 04:00:08 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3cbaefbb: defining beans [dataSourceProperty,dataSource,sessionFactory,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,regionParticipantDaoImpl,commentDaoImpl,UpdateTimeDaoImpl,regionDaoImpl,MeetingDataDaoImpl,LogDaoImpl,RoleActionDaoImpl,hardwareInfoDaoImpl,departmentDaoImpl,companyDaoImpl,ManagerDaoImpl,MeetingDaoImpl,ModuleDaoImpl,ActionDaoImpl,RoleDaoImpl,MenuDaoImpl,participantDaoImpl,meetingItemDaoImpl,MeetingServiceImpl,regionParticipantServiceImpl,MeetingDataServiceImpl,meetingItemServiceImpl,MenuServiceImpl,regionServiceImpl,departmentServiceImpl,commentServiceImpl,RoleServiceImpl,RoleActionServiceImpl,hardwareInfoServiceImpl,companyServiceImpl,ActionServiceImpl,LogServiceImpl,UpdateInfoServiceImpl,ManagerServiceImpl,ModuleServiceImpl,participantServiceImpl,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor]; root of factory hierarchy 2014-05-29 04:00:08 [org.hibernate.cfg.annotations.Version]-[INFO] - Hibernate Annotations 3.4.0.GA 2014-05-29 04:00:08 [org.hibernate.cfg.Environment]-[INFO] - Hibernate 3.3.2.GA 2014-05-29 04:00:08 [org.hibernate.cfg.Environment]-[INFO] - hibernate.properties not found 2014-05-29 04:00:08 [org.hibernate.cfg.Environment]-[INFO] - Bytecode provider name : javassist 2014-05-29 04:00:08 [org.hibernate.cfg.Environment]-[INFO] - using JDK 1.4 java.sql.Timestamp handling 2014-05-29 04:00:08 [org.hibernate.annotations.common.Version]-[INFO] - Hibernate Commons Annotations 3.1.0.GA 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Log 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Log on table t_logs 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Menu 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Menu on table t_menus 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Action 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Action on table t_actions 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.RoleAction 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.RoleAction on table t_roleActions 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Comment 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Comment on table t_comments 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Participant 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Participant on table t_participants 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.RegionParticipant 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.RegionParticipant on table t_regionparticipants 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.UpdateInfo 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.UpdateInfo on table t_updateinfo 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Module 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Module on table t_modules 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Department 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Department on table t_departments 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Role 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Role on table t_roles 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Region 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Region on table t_regions 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.MeetingItem 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.MeetingItem on table t_meetingitems 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.HardwareInfo 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.HardwareInfo on table t_hardwareinfos 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Company 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Company on table t_companys 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Manager 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Manager on table t_managers 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.MeetingData 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.MeetingData on table t_meetingdatas 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationBinder]-[INFO] - Binding entity from annotated class: com.jl.entity.Meeting 2014-05-29 04:00:09 [org.hibernate.cfg.annotations.EntityBinder]-[INFO] - Bind entity com.jl.entity.Meeting on table t_meetings 2014-05-29 04:00:09 [org.hibernate.cfg.AnnotationConfiguration]-[INFO] - Hibernate Validator not found: ignoring 2014-05-29 04:00:09 [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]-[INFO] - Building new Hibernate SessionFactory 2014-05-29 04:00:09 [org.hibernate.cfg.search.HibernateSearchEventListenerRegister]-[INFO] - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled. 2014-05-29 04:00:09 [org.hibernate.connection.ConnectionProviderFactory]-[INFO] - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider 2014-05-29 04:00:10 [org.hibernate.util.JDBCExceptionReporter]-[WARN] - SQL Error: 0, SQLState: null 2014-05-29 04:00:10 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] - Cannot create PoolableConnectionFactory (������������: ������ "meeting" Ident ������������) 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[WARN] - Could not obtain connection to query metadata org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (������������: ������ "meeting" Ident ������������) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) 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.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) 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:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.postgresql.util.PSQLException: ������������: ������ "meeting" Ident ������������ at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:398) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:173) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136) at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:397) at org.postgresql.Driver.connect(Driver.java:267) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221) ... 51 more 2014-05-29 04:00:10 [org.hibernate.dialect.Dialect]-[INFO] - Using dialect: org.hibernate.dialect.PostgreSQLDialect 2014-05-29 04:00:10 [org.hibernate.transaction.TransactionFactoryFactory]-[INFO] - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory 2014-05-29 04:00:10 [org.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Automatic flush during beforeCompletion(): disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Automatic session close at end of transaction: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Scrollable result sets: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - JDBC3 getGeneratedKeys(): disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Connection release mode: auto 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Default batch fetch size: 1 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Generate SQL with comments: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Order SQL updates by primary key: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Order SQL inserts for batching: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 2014-05-29 04:00:10 [org.hibernate.hql.ast.ASTQueryTranslatorFactory]-[INFO] - Using ASTQueryTranslatorFactory 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Query language substitutions: {} 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - JPA-QL strict compliance: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Second-level cache: enabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Query cache: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Optimize cache for minimal puts: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Structured second-level cache entries: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Echoing all SQL to stdout 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Statistics: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Deleted entity synthetic identifier rollback: disabled 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Default entity-mode: pojo 2014-05-29 04:00:10 [org.hibernate.cfg.SettingsFactory]-[INFO] - Named query checking : enabled 2014-05-29 04:00:10 [org.hibernate.impl.SessionFactoryImpl]-[INFO] - building session factory 2014-05-29 04:00:11 [org.hibernate.impl.SessionFactoryObjectFactory]-[INFO] - Not binding factory to JNDI, no JNDI name configured 2014-05-29 04:00:11 [org.hibernate.tool.hbm2ddl.SchemaUpdate]-[INFO] - Running hbm2ddl schema update 2014-05-29 04:00:11 [org.hibernate.tool.hbm2ddl.SchemaUpdate]-[INFO] - fetching database metadata 2014-05-29 04:00:11 [org.hibernate.util.JDBCExceptionReporter]-[WARN] - SQL Error: 0, SQLState: null 2014-05-29 04:00:11 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] - Cannot create PoolableConnectionFactory (������������: ������ "meeting" Ident ������������) 2014-05-29 04:00:11 [org.hibernate.tool.hbm2ddl.SchemaUpdate]-[ERROR] - could not get database metadata org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (������������: ������ "meeting" Ident ������������) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82) at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:356) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) 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.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) 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:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.postgresql.util.PSQLException: ������������: ������ "meeting" Ident ������������ at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:398) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:173) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136) at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:397) at org.postgresql.Driver.connect(Driver.java:267) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221) ... 51 more
又经测试windows平台项目连接linux上的数据库,可以访问项目,linux上的项目连接windows平台的库,也没有问题,问题就是linux项目连本地库就问题,是不是pg_hba.conf少配置?
问题已解决,整了好久,绝望的时候找到了头绪。还是部署过程的疏忽。
修改访问方式为trust,之前为ident。了解访问方式可参考 http://blog.163.com/czg_e/blog/static/461045612011411113855161/
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。