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
EJBCA-ce-6-1-1-JBOS-7-final-ubuntu12.04:ant部署失败_Ant_Jboss_Ca_Ejbca - Fatal编程技术网

EJBCA-ce-6-1-1-JBOS-7-final-ubuntu12.04:ant部署失败

EJBCA-ce-6-1-1-JBOS-7-final-ubuntu12.04:ant部署失败,ant,jboss,ca,ejbca,Ant,Jboss,Ca,Ejbca,我试图应用ejbca网站上解释的步骤,但当我谈到“ant部署”时,它不起作用 在UbuntuTermenal上出现 > lama@lama-VirtualBox:~/ejbca_ce_6_1_1$ ant install Buildfile: /home/lama/ejbca_ce_6_1_1/build.xml customejbca.message: [echo] No custom changes to merge. appserver.error.message:

我试图应用ejbca网站上解释的步骤,但当我谈到“ant部署”时,它不起作用

在UbuntuTermenal上出现

> lama@lama-VirtualBox:~/ejbca_ce_6_1_1$ ant install
Buildfile: /home/lama/ejbca_ce_6_1_1/build.xml

customejbca.message:
     [echo] No custom changes to merge.

appserver.error.message:
     [echo] 'appserver.type' could not be detected or is not configured. Glassfish 2.1.1, Glassfish 3.1, Glassfish 4.0, JBoss 5.1.0.GA, JBoss EAP 5.1, JBoss 6.0, JBoss 7.1.1, JBoss EAP 6.1 and 6.2, WildFly 8, WebLogic 10.3.3, WebSphere 7.0.0.13 can be detected. (Is 'appserver.home' configured?)
     [echo] jndi.properties.file: /home/lama/ejbca_ce_6_1_1/conf/jndi.properties.${appserver.type}

fail-unless-appserver-detected:
     [echo] appserver.home: ${env.APPSRV_HOME}
     [echo] appserver.type: ${appserver.type}
     [echo] appserver.subtype: ${appserver.subtype}

BUILD FAILED
/home/lama/ejbca_ce_6_1_1/propertyDefaults.xml:263: 'appserver.type' could not be detected or is not configured. Glassfish 2.1.1, Glassfish 3.1, Glassfish 4.0, JBoss 5.1.0.GA, JBoss EAP 5.1, JBoss 6.0, JBoss 7.1.1, JBoss EAP 6.1 and 6.2, WildFly 8, WebLogic 10.3.3, WebSphere 7.0.0.13 can be detected. (Is 'appserver.home' configured?)

Total time: 2 seconds
lama@lama-VirtualBox:~/ejbca_ce_6_1_1$ 
有人知道如何解决这个错误吗


谢谢

正如哈米德指出的,您没有ejbca.properties文件,或者该文件缺少appserver.home条目

来自EJBCA的安装指南:

配置EJBCA,以便它可以找到应用程序服务器(JBoss)

您需要定制用户,可能还需要定制jbossundejbca版本:)。或者,如果你做的完全不同,也可能是整个过程


您是否在conf/ejbca.properties中设置了appserver.home?如果没有,请在conf/ejbca.properties中设置jboss home目录或导出APPSRV_home=
echo "appserver.home=/home/user/jboss-as-7.1.1.Final" >> ejbca_6_0_3/conf/ejbca.properties