EJBCA-ce-6-1-1-JBOS-7-final-ubuntu12.04:ant部署失败
我试图应用ejbca网站上解释的步骤,但当我谈到“ant部署”时,它不起作用 在UbuntuTermenal上出现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:
> 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