我正在尝试在 Ubuntu 12.04 上安装 EJBCA 6.2.0,但是当我执行“ant deploy”命令时出现以下错误。
在进行“ant deploy”之前,我安装了 JBoss 7.1.1 并运行它。
安装 EJBCA 日志是这样的。
jee:deployServices:
jee:deployDSJBoss5:
jee:deployDSJBoss7:
[exec] Result: 1
[exec] Result: 1
[echo] data-source add --name=ejbcads --driver-name="h2" --connection-url="jdbc:h2:~/ejbcadb;DB_CLOSE_DELAY=-1" --jndi-name="java:/EjbcaDS" --use-ccm=true --user-name="sa" --password="sa" --validate-on-match=true --background-validation=false --prepared-statements-cache-size=50 --share-prepared-statements=true --min-pool-size=5 --max-pool-size=150 --pool-prefill=true --transaction-isolation=TRANSACTION_READ_COMMITTED --check-valid-connection-sql="select 1"
[exec] JBAS014803: Duplicate resource [
[exec] ("subsystem" => "datasources"),
[exec] ("data-source" => "ejbcads")
[exec] ]
BUILD FAILED
/home/mjshin/ejbca_ce_6_2_0/build.xml:649: The following error occurred while executing this line:
/home/mjshin/ejbca_ce_6_2_0/bin/jboss.xml:289: The following error occurred while executing this line:
/home/mjshin/ejbca_ce_6_2_0/bin/jboss.xml:556: exec returned: 1
Total time: 4 minutes 55 seconds
root@mjshin-VirtualBox:~/ejbca_ce_6_2_0#
我不熟悉 ant、JBOSS 等 Web 应用程序服务器环境,所以我不知道应该如何解决这个问题。