ant fresh_install错误/构建失败4秒

时间:2018-04-26 15:05:38

标签: java maven tomcat dspace

专家 我正在Windows 10上安装Dspace 6.2,我在运行时遇到了错误,并且#34; ant fresh_install"。这是我正在使用的配置:  dspace-6.2-src-release,jdk1.8.0_171,apache-tomcat-8.5.30,apache-maven-3.3.3,postgresql" pgAdmin 4 v1.6发布"。

这是错误:

C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer> ant fresh_install 拿起JAVA_TOOL_OPTIONS:-Djava.vendor =" OracleJava7Fix" 构建文件:C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ build.xml

init_installation:

prepare_configs:     [mkdir]创建目录:C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ config-temp      [copy]将158个文件复制到C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ config-temp      [copy]将1个文件复制到C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ config-temp      [copy]将16个文件复制到C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ config-temp

init_configs:      [copy]将1个文件复制到C:\ dspace \ config    [删除]删除目录C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ config-temp

test_database:      [java] 2018-04-26 11:47:02,427 WARN org.apache.commons.configuration.DefaultConfigurationBuilder @内部错误      [java] org.apache.commons.configuration.ConfigurationException:找不到配置源local.cfg      [java] at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:259)      [java] at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:238)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder $ FileConfigurationProvider.getConfiguration(DefaultConfigurationBuilder.java:1455)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder $ ConfigurationBeanFactory.createBean(DefaultConfigurationBuilder.java:1321)      [java] at org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHelper.java:390)      [java] org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHelper.java:412)      [java] at org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHelper.java:426)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder.createConfigurationAt(DefaultConfigurationBuilder.java:855)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder.initCombinedConfiguration(DefaultConfigurationBuilder.java:719)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder.getConfiguration(DefaultConfigurationBuilder.java:622)      [java] at org.apache.commons.configuration.DefaultConfigurationBuilder.getConfiguration(DefaultConfigurationBuilder.java:587)      [java] at org.dspace.servicemanager.config.DSpaceConfigurationService.loadInitialConfig(DSpaceConfigurationService.java:494)      [java] at org.dspace.servicemanager.config.DSpaceConfigurationService。(DSpaceConfigurationService.java:87)      [java] at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:148)      [java] at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)      [java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:49)      [java] 2018-04-26 11:47:04,170 WARN org.dspace.services.email.EmailServiceImpl @无法从环境中获取电子邮件会话:需要在环境或系统属性中指定类名,或者作为applet参数,或在应用程序资源文件中:java.naming.factory.initial      [java] 2018-04-26 11:47:04,414 ERROR org.dspace.storage.rdbms.DatabaseUtils @无法针对DSpace数据库设置Flyway      [java] java.sql.SQLException:无法创建PoolableConnectionFactory(FATAL:用户密码验证失败" dspace")      [java] at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2294)      [java] at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039)      [java] at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)      [java] at org.dspace.storage.rdbms.DatabaseUtils.setupFlyway(DatabaseUtils.java:473)      [java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:98)      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      【JAVA]      [java]运行错误' test':      [java] - java.sql.SQLException:无法创建PoolableConnectionFactory(FATAL:密码验证失败,用户" dspace")      【JAVA]      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      [java]请参阅DSpace文档以获取帮助。      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      [java] java.lang.reflect.Method.invoke(Method.java:498)      【JAVA]      [java] at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)      [java] java.sql.SQLException:无法创建PoolableConnectionFactory(FATAL:用户密码验证失败" dspace")      [java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)      [java] at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2294)      [java] at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039)      [java]引起:org.postgresql.util.PSQLException:致命:用户密码验证失败" dspace"在org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)      【JAVA]      [java] at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:446)      [java] at org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:105)      [java] atg.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:220)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      [java] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)      【JAVA]      [java] at org.postgresql.jdbc.PgConnection。(PgConnection.java:219)      [java] at org.postgresql.Driver.makeConnection(Driver.java:407)      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      [java] at org.postgresql.Driver.connect(Driver.java:275)      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      [java] at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:39)      [java] java.lang.reflect.Method.invoke(Method.java:498)      [java] at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)      [java] at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:256)      [java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)      [java]引起:org.postgresql.util.PSQLException:致命:用户密码验证失败" dspace"      [java] at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)      [java] at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2290)      [java] at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:446)... 10更多      【JAVA]      【JAVA]      [java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:220)      [java]尝试在org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)连接数据库      【JAVA]      [java] 2018-04-26 11:47:04,451 WARN org.dspace.services.sessions.SessionRequestServiceImpl @Request interceptor(org.dspace.services.events.SystemEventService$EventRequestInterceptor@359cd110)无法执行结束(request-297) -1524754024364):null      [java] at org.postgresql.jdbc.PgConnection。(PgConnection.java:219)      [java] at org.postgresql.Driver.makeConnection(Driver.java:407)      [java] at org.postgresql.Driver.connect(Driver.java:275)      [java] at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:39)      [java] at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:256)      [java] at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)      [java] at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2290)      [java] ...还有9个      [java]选择了JAVA_TOOL_OPTIONS:-Djava.vendor =" OracleJava7Fix"

建立失败 C:\ dspace-6.2-src-release \ dspace-6.2-src-release \ dspace \ target \ dspace-installer \ build.xml:792:Java返回:1

总时间:4秒

C:\ dSPACE的-6.2-SRC-释放\ dSPACE的-6.2-SRC-释放\ dSPACE的\目标\ dSPACE的安装程序>

1 个答案:

答案 0 :(得分:0)

致命:用户“dspace”的密码验证失败

安装脚本无法建立与数据库的连接,因为它使用的凭据不正确。可能的原因是会议早些时候:

org.apache.commons.configuration.ConfigurationException:找不到配置源local.cfg

应在'local.cfg'中找到正确的数据库凭据(以及其他许多内容),但安装程序找不到该文件。没有它,将使用config / dspace.cfg中的默认数据库用户'dspace'和密码'dspace'。您需要找出无法找到“local.cfg”的原因。