Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 安装EJBCA 6时出错_Java_Ant_Jboss7.x_Ejbca - Fatal编程技术网

Java 安装EJBCA 6时出错

Java 安装EJBCA 6时出错,java,ant,jboss7.x,ejbca,Java,Ant,Jboss7.x,Ejbca,我正在使用给定的ant在linux机器上安装EJBCA 6 我已经使用以下命令成功地在jboss-as-7服务器上部署了它 ant deploy 但当我使用antinstall命令安装ejbca时,它会给出以下错误 ejbca:initCA: [echo] Initializing CA with 'myCompnyCA1' 'CN=myCompnyCA1,O=myCompny,C=US' 'soft' <ca.tokenpassword hidden> '2048' '

我正在使用给定的ant在linux机器上安装EJBCA 6

我已经使用以下命令成功地在jboss-as-7服务器上部署了它

ant deploy
但当我使用
antinstall
命令安装ejbca时,它会给出以下错误

ejbca:initCA:
     [echo] Initializing CA with 'myCompnyCA1' 'CN=myCompnyCA1,O=myCompny,C=US' 'soft' <ca.tokenpassword hidden> '2048' 'RSA' '3650' 'null' 'SHA1WithRSA'   -superadmincn 'SuperAdmin'...
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.

ejbca:adminweb:
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.
     [echo] batch tomcat
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.

ejbca:batchsuperadmin:
     [echo] batch superadmin
     [java] CLI authentication failed. The user 'ejbca' with the given password does not exist.

BUILD FAILED
/home/indra/EJBCA_6_and_jobss_as_7/ejbca_ce_6_0_3/build.xml:60: The following error occurred while executing this line:
/home/indra/EJBCA_6_and_jobss_as_7/ejbca_ce_6_0_3/build.xml:66: The following error occurred while executing this line:
/home/indra/EJBCA_6_and_jobss_as_7/ejbca_ce_6_0_3/bin/cli.xml:96: The following error occurred while executing this line:
/home/indra/EJBCA_6_and_jobss_as_7/ejbca_ce_6_0_3/bin/cli.xml:137: Batch generation failed!
ejbca:initCA:
[echo]正在使用'mycopnyca1'CN=mycopnyca1,O=mycopny,C=US''soft''2048''RSA''3650''null''初始化CA,并使用RSA'-SuperAdmin'SuperAdmin'-SHA1WithRSA'-SuperAdmin'-。。。
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
ejbca:adminweb:
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
[echo]批量tomcat
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
ejbca:batchsuperadmin:
[echo]批量超级管理员
[java]CLI身份验证失败。具有给定密码的用户“ejbca”不存在。
构建失败
/home/indra/EJBCA_6_和_jobss_as_7/EJBCA_ce_6_0_3/build.xml:60:执行此行时发生以下错误:
/home/indra/EJBCA_6_和_jobss_as_7/EJBCA_ce_6_0_3/build.xml:66:执行此行时发生以下错误:
/home/indra/EJBCA_6_和_jobss_as_7/EJBCA_ce_6_0_3/bin/cli.xml:96:执行此行时发生以下错误:
/home/indra/EJBCA_6_和_jobss_as_7/EJBCA_ce_6_0_3/bin/cli.xml:137:批生成失败!
请帮帮我…

得到答案了吗

我刚刚删除了旧的ejbca数据库,并使用相同的凭据重新创建


问题是:-过去我使用的是ejbca 4。。为此,我创建了一个名为ejbca的数据库,我试图使用ejbca 6的同一个数据库,但出现了错误,最后删除和创建数据库解决了我的问题

您是如何清理旧的ejbca数据库的?你用的是h2还是mysql或者什么数据库?我用的是mysql。。我刚刚用SQLyog清空了整个数据库