使用jboss-as-7.1.1.Final在CentOS 6.6上安装ejbca_ce_6_1_1

时间:2015-03-07 12:41:40

标签: java linux ant jboss ejbca

我正在尝试从本指南安装ejbca:http://ejbcacentos.blogspot.gr/2014/04/how-to-install-ejbca-611-on-centos-65.html

当我输入命令sudo -u jboss ant deploy(它在章节安装EJBCA /指南的初始部署)时,我收回了这个java错误:

/opt/ejbca_ce_6_1_1/build.xml:79:执行失败:java.io.IOException:无法运行程序“java”:java.io.IOException:error = 2,没有这样的文件或目录

我在/ etc / profile

中设置了java home

我不知道可能导致此错误的原因,我无法在谷歌上找到与此相关的内容。如果有人知道可能导致此错误的原因,我非常感谢您提供的任何帮助。

这是完整的终端输出:

[root@localhost ejbca]# sudo -u jboss ant deploy
Buildfile: build.xml

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

appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

deprecated:check:

customejbca.message:

appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    deprecated:notify:

    cleanDistDir:

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

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    dependecy-check-clean:

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    -pre-init:

    -init-private:

    -pre-init-libraries:

    -init-private-libraries:

    -init-libraries:

    -init-user:

    -init-project:

    -init-macrodef-property:

    -do-init:

    -post-init:

    -init-check:

    -init-ap-cmdline-properties:

    -init-macrodef-javac-with-processors:

    -init-macrodef-javac-without-processors:

    -init-macrodef-javac:

    -init-macrodef-junit:

    -init-debug-args:

    -init-macrodef-nbjpda:

    -init-macrodef-debug:

    -init-macrodef-java:

    -init-presetdef-jar:

    -init-ap-cmdline-supported:

    -init-ap-cmdline:

    init:

    -deps-clean-init:

    deps-clean:
        [mkdir] Created dir: /opt/ejbca_ce_6_1_1/modules/batchenrollment-gui/build

    -warn-already-built-clean:
    [propertyfile] Updating property file: /opt/ejbca_ce_6_1_1/modules/batchenrollment-gui/build/built-clean.properties

    -check-call-dep:

    -maybe-call-dep:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    -do-clean:
       [delete] Deleting directory /opt/ejbca_ce_6_1_1/modules/batchenrollment-gui/build

    -post-clean:

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    cesecore-common.clean:

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    cesecore-common.clean:

    cesecore-entity.clean:

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    cesecore-common.clean:

    cesecore-entity.clean:

    cesecore-ejb-interface.clean:

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    clean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    validationtoolclean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    statedumpclean:

    customejbca.message:

    appserver.error.message:
         [echo] jndi.properties.file: /opt/ejbca_ce_6_1_1/conf/jndi.properties.jboss7

    ctclean:

    failinproduction-deprecation:

    fail-unless-appserver-detected:
         [echo] appserver.home: /opt/jboss
         [echo] appserver.type: jboss
         [echo] appserver.subtype: jboss7

    testforgnujava:

    BUILD FAILED
    /opt/ejbca_ce_6_1_1/build.xml:79: Execute failed: java.io.IOException: Cannot run program "java": java.io.IOException: error=2, No such file or directory 

1 个答案:

答案 0 :(得分:0)

尝试在个人资料中设置APPSRV_HOME = $ JBOSS_HOME。