Installing EJBCA from scratch - lab environment

Help
berky
2014-02-12
2014-02-13
  • berky
    berky
    2014-02-12

    I'm trying to create a new installation of EJB for our lab. We were using the livecd (ejbca v4.0.3 and jboss 5.1.0). We started having problems with that server (VM) so we wanted to create a new one that has the latest versions on it. Anyway, I'm trying to follow the installation instructions, but they are not very straightforward (or else I'm really messing something up), and I'm not very familiar with jboss in general. I'm running into problems when I get to the step of 'ant deploy' within ejbca. I had a few questions that I'm hoping will help me along.

    Server info:
    Ubuntu 12.04 LTS server x64
    - ESX 5.x w/1 CPU and 2GB RAM
    jboss 7.1.1
    ejbca ce 6.0.3

    1) Is a database required? I don't see a database in use on the livecd, but wasn't sure if that was because it was an older version. If a DB is required, what is recommended for simplicity?

    2) I got the following "deploy" errors:

    BUILD FAILED
    /home/ejb/ejbca_ce_6_0_3/build.xml:635: The following error occurred while executing this line:
    /home/ejb/ejbca_ce_6_0_3/bin/jboss.xml:240: The following error occurred while executing this line:
    /home/ejb/ejbca_ce_6_0_3/bin/jboss.xml:512: exec returned: 1
    

    I've read others saying this typically refers to an issue running jboss, but that was up and running. There aren't any 'errors'.

    ejb@ejbca:~$ /home/ejb/jboss-as/bin/standalone.sh
    =========================================================================
    
      JBoss Bootstrap Environment
    
      JBOSS_HOME: /home/ejb/jboss-as
    
      JAVA: java
    
      JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
    
    =========================================================================
    
    14:53:15,594 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
    14:53:15,939 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
    14:53:16,002 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
    14:53:17,269 INFO  [org.xnio] XNIO Version 3.0.3.GA
    14:53:17,286 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
    14:53:17,295 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
    14:53:17,323 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
    14:53:17,383 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
    14:53:17,389 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
    14:53:17,418 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
    14:53:17,472 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
    14:53:17,500 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
    14:53:17,534 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
    14:53:17,546 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
    14:53:17,605 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
    14:53:17,618 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
    14:53:17,690 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
    14:53:17,694 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
    14:53:18,055 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
    14:53:18,124 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA
    14:53:18,415 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
    14:53:18,910 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
    14:53:18,948 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /home/ejb/jboss-as/standalone/deployments
    14:53:18,987 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:4447
    14:53:19,066 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
    14:53:19,087 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
    14:53:19,088 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3860ms - Started 133 of 208 services (74 services are passive or on-demand)
    14:56:55,582 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011942: Stopping OSGi Framework
    14:56:55,597 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
    14:56:55,626 INFO  [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService
    14:56:55,627 INFO  [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager
    14:56:55,707 INFO  [org.jboss.as.mail.extension] JBAS015401: Unbound mail session [java:jboss/mail/Default]
    14:56:55,708 INFO  [org.jboss.as.connector.subsystems.datasources] JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
    14:56:55,720 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 147ms
    14:56:55,721 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
    14:56:55,855 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
    14:56:55,869 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
    14:56:55,874 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
    14:56:55,886 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
    14:56:55,895 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
    14:56:55,895 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
    14:56:55,903 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
    14:56:55,926 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
    14:56:55,911 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
    14:56:55,915 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
    14:56:55,955 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
    14:56:55,959 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
    14:56:55,959 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
    14:56:55,962 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
    14:56:56,030 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
    14:56:56,058 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
    14:56:56,097 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /home/ejb/jboss-as/standalone/deployments
    14:56:56,114 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
    14:56:56,115 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:4447
    14:56:56,126 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
    14:56:56,127 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 393ms - Started 133 of 208 services (74 services are passive or on-demand)
    
    ^C
    15:06:16,666 INFO  [org.jboss.as.controller] (MSC service thread 1-1) JBAS014774: Service status report
    JBAS014775:    New missing/unsatisfied dependencies:
          service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication (missing) dependents: [service jboss.server.controller.management.security_realm.ApplicationRealm]
    
    15:06:16,669 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011942: Stopping OSGi Framework
    15:06:16,686 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
    15:06:16,692 INFO  [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService
    15:06:16,693 INFO  [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager
    15:06:16,694 INFO  [org.jboss.as.controller] JBAS014774: Service status report
    JBAS014776:    Newly corrected services:
          service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication (new available)
    
    15:06:16,702 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 22ms
    

    The only thing I saw was this:

    JBAS014775: New missing/unsatisfied dependencies:
    service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication (missing) dependents: [service jboss.server.controller.management.security_realm.ApplicationRealm]

    I'm just not familiar enough with jboss to know where to go from here. Thanks for any help.

     
    • berky
      berky
      2014-02-13

      I've determined that jboss as 7.1.1 fails deploy, while jboss as 6.1.0 succeeds with the deploy. However, both versions of jboss fail the install with the same errors:

      BUILD FAILED
      /home/ejb/ejbca_ce_6_0_3/build.xml:60: The following error occurred while executing this line:
      /home/ejb/ejbca_ce_6_0_3/build.xml:66: The following error occurred while executing this line:
      /home/ejb/ejbca_ce_6_0_3/bin/cli.xml:96: The following error occurred while executing this line:
      /home/ejb/ejbca_ce_6_0_3/bin/cli.xml:137: Batch generation failed!