【问题标题】:Error connection - Dspace 6.0错误连接 - Dspace 6.0
【发布时间】:2017-05-30 20:33:06
【问题描述】:

我进行了 dspace 6.0 的干净默认安装,但是当我启动 tomcat 服务器时,我将返回以下错误。

2017-05-30 16:58:32,475 INFO  org.dspace.storage.rdbms.DatabaseUtils @ Loading Flyway DB migrations from: filesystem:/dspace/etc/postgres, classpath:org.dspace.storage.rdbms.sqlmigration.postgres, classpath:org.dspace.storage.rdbms.migration
2017-05-30 16:58:32,497 INFO  org.flywaydb.core.internal.util.VersionPrinter @ Flyway 4.0.3 by Boxfuse
2017-05-30 16:58:32,538 INFO  org.flywaydb.core.internal.dbsupport.DbSupportFactory @ Database: jdbc:postgresql://localhost:5432/dspace (PostgreSQL 9.4)
2017-05-30 16:58:32,616 INFO  org.dspace.storage.rdbms.DatabaseUtils @ DSpace database schema is up to date
2017-05-30 16:58:32,629 INFO  org.dspace.event.EventServiceImpl @ EventService dispatcher pool initialized
2017-05-30 16:58:32,839 INFO  org.hibernate.annotations.common.Version @ HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
2017-05-30 16:58:32,845 INFO  org.hibernate.Version @ HHH000412: Hibernate Core {4.2.21.Final}
2017-05-30 16:58:32,847 INFO  org.hibernate.cfg.Environment @ HHH000206: hibernate.properties not found
2017-05-30 16:58:32,848 INFO  org.hibernate.cfg.Environment @ HHH000021: Bytecode provider name : javassist
2017-05-30 16:58:32,873 INFO  org.hibernate.cfg.Configuration @ HHH000044: Configuring from URL: file:/dspace/config/hibernate.cfg.xml
2017-05-30 16:58:32,926 INFO  org.hibernate.cfg.Configuration @ HHH000041: Configured SessionFactory: null
2017-05-30 16:58:33,109 INFO  org.hibernate.dialect.Dialect @ HHH000400: Using dialect: org.dspace.storage.rdbms.hibernate.postgres.DSpacePostgreSQL82Dialect
2017-05-30 16:58:33,122 INFO  org.hibernate.engine.jdbc.internal.LobCreatorBuilder @ HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2017-05-30 16:58:33,130 INFO  org.hibernate.type.BasicTypeRegistry @ HHH000270: Type registration [pg-uuid] overrides previous : org.hibernate.type.PostgresUUIDType@765f490b
2017-05-30 16:58:33,131 INFO  org.hibernate.type.BasicTypeRegistry @ HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@4c1e9e97
2017-05-30 16:58:33,389 WARN  org.hibernate.mapping.RootClass @ HHH000039: Composite-id class does not override hashCode(): org.dspace.eperson.Group2GroupCache
2017-05-30 16:58:33,390 WARN  org.hibernate.mapping.RootClass @ HHH000038: Composite-id class does not override equals(): org.dspace.checker.MostRecentChecksum
2017-05-30 16:58:33,390 WARN  org.hibernate.mapping.RootClass @ HHH000039: Composite-id class does not override hashCode(): org.dspace.checker.MostRecentChecksum
2017-05-30 16:58:33,396 INFO  org.hibernate.engine.transaction.internal.TransactionFactoryInitiator @ HHH000399: Using default transaction strategy (direct JDBC transactions)
2017-05-30 16:58:33,401 INFO  org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory @ HHH000397: Using ASTQueryTranslatorFactory
2017-05-30 16:58:33,442 WARN  net.sf.ehcache.config.ConfigurationFactory @ No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/C:/dspace/webapps/jspui/WEB-INF/lib/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
2017-05-30 16:58:33,451 WARN  net.sf.ehcache.CacheManager @ Creating a new instance of CacheManager using the diskStorePath "C:\Program Files\Apache Software Foundation\Tomcat 7.68\temp " which is already used by an existing CacheManager.
The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$DefaultConfigurationSource@33e55fd5.
The diskStore path for this CacheManager will be set to C:\Program Files\Apache Software Foundation\Tomcat 7.68\temp \ehcache_auto_created_1496174313451.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2017-05-30 16:58:33,452 INFO  org.hibernate.cache.spi.UpdateTimestampsCache @ HHH000250: Starting update timestamps cache at region: org.hibernate.cache.spi.UpdateTimestampsCache
2017-05-30 16:58:33,455 WARN  org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory @ HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.
2017-05-30 16:58:33,466 INFO  org.hibernate.cfg.Configuration @ HHH000044: Configuring from URL: file:/dspace/config/hibernate.cfg.xml
2017-05-30 16:58:33,471 INFO  org.hibernate.cfg.Configuration @ HHH000041: Configured SessionFactory: null
2017-05-30 16:58:33,478 INFO  org.hibernate.dialect.Dialect @ HHH000400: Using dialect: org.dspace.storage.rdbms.hibernate.postgres.DSpacePostgreSQL82Dialect
2017-05-30 16:58:33,478 INFO  org.hibernate.engine.jdbc.internal.LobCreatorBuilder @ HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2017-05-30 16:58:33,478 INFO  org.hibernate.type.BasicTypeRegistry @ HHH000270: Type registration [pg-uuid] overrides previous : org.hibernate.type.PostgresUUIDType@765f490b
2017-05-30 16:58:33,479 INFO  org.hibernate.type.BasicTypeRegistry @ HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@4c1e9e97
2017-05-30 16:58:33,513 WARN  org.hibernate.mapping.RootClass @ HHH000039: Composite-id class does not override hashCode(): org.dspace.eperson.Group2GroupCache
2017-05-30 16:58:33,514 WARN  org.hibernate.mapping.RootClass @ HHH000038: Composite-id class does not override equals(): org.dspace.checker.MostRecentChecksum
2017-05-30 16:58:33,514 WARN  org.hibernate.mapping.RootClass @ HHH000039: Composite-id class does not override hashCode(): org.dspace.checker.MostRecentChecksum
2017-05-30 16:58:33,515 INFO  org.hibernate.engine.transaction.internal.TransactionFactoryInitiator @ HHH000399: Using default transaction strategy (direct JDBC transactions)
2017-05-30 16:58:33,515 INFO  org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory @ HHH000397: Using ASTQueryTranslatorFactory
2017-05-30 16:58:33,515 WARN  net.sf.ehcache.config.ConfigurationFactory @ No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/C:/dspace/webapps/jspui/WEB-INF/lib/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
2017-05-30 16:58:33,519 WARN  net.sf.ehcache.CacheManager @ Creating a new instance of CacheManager using the diskStorePath "C:\Program Files\Apache Software Foundation\Tomcat 7.68\temp " which is already used by an existing CacheManager.
The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$DefaultConfigurationSource@33e55fd5.
The diskStore path for this CacheManager will be set to C:\Program Files\Apache Software Foundation\Tomcat 7.68\temp \ehcache_auto_created_1496174313519.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2017-05-30 16:58:33,519 INFO  org.hibernate.cache.spi.UpdateTimestampsCache @ HHH000250: Starting update timestamps cache at region: org.hibernate.cache.spi.UpdateTimestampsCache
2017-05-30 16:58:33,519 WARN  org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory @ HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.

2017-05-30 16:58:33,521 FATAL org.dspace.core.Context @ 无法获取提供数据库连接的 bean。检查 dspace.log 中以前的条目,找出数据库无法初始化的原因。

我通过命令行测试了连接,它可以正常工作。

dspace\bin>dspace database test
Using DSpace installation in: \dspace

Attempting to connect to database
Connected successfully!
Database Type: postgres
Database URL: jdbc:postgresql://localhost:5432/dspace
Database Schema: extensions
Database Username: dspace
Database Software: PostgreSQL version 9.4.5
Database Driver: PostgreSQL Native Driver version PostgreSQL 9.4.1211
PostgreSQL 'pgcrypto' extension installed/up-to-date? true (version=1.1)

**

如何解决?

【问题讨论】:

    标签: dspace


    【解决方案1】:

    已经有一段时间了,所以我记不太清了,但我隐约记得由于缺少分配给 java 的内存而遇到了类似的问题。也许您可以尝试增加您的 java opts 中的内存分配,看看它是否会产生更好的结果?

    祝你好运

    【讨论】:

    • 我增加了java的内存但是问题依旧。
    猜你喜欢
    • 1970-01-01
    • 2018-04-03
    • 2016-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多