Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3229

Remove unnecessary warnings during build and startup

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.0.0
    • Fix Version/s: EJBCA 6.0.0
    • Component/s: Install-script, PKI core
    • Labels:
      None
    • Environment:
      JBoss 6.1 EAP, EJBCA 6.0, Java 7
    • Issue discovered during:
      Integration

      Description

      There are currently some warnings during building and startup that I believe should be removed.

      It should not be too hard to do and unnecessary warnings draw the attention away from the real problems when using the logs for locating problems.

      I have listed most of the warnings during a single test run: and added some comments about them.

      See: https://hudson.primekey.se/view/EJBCA%20trunk/job/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/164/consoleFull

      I suggest we find out which are due to misconfiguration and fix those, which ones should be fixed in code/scripts, and which ones are motivated to keep.

      1. The scariest one imho is during build:

      ----- snip ----
      compile-library:
      [mkdir] Created dir: /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/modules/ejbca-ws/build-lib
      [javac] Compiling 16 source files to /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/modules/ejbca-ws/build-lib
      [javac] /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/modules/dist/cesecore-common.jar(org/cesecore/authorization/AuthorizationDeniedException.class): warning: Cannot find annotation method 'rollback()' in type 'ApplicationException': class file for javax.ejb.ApplicationException not found
      [javac] 1 warning
      ---- end snip -------

      2. Another one is probably there by design, but I think it will keep many people on their toes needlessly:
      none-existing-ocsp-extensionclass:
      [echo] WARNING: ocsp.extensionclass does not exist and can't be compiled.

      Same with this one:
      [copy] Warning: Could not find file /home/hudson/clover/clover-ant-3.0.2/lib/clover.jar to copy.

      3. This one makes sense assuming most users want databaseprotection:
      [copy] Warning: Could not find file /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/conf/databaseprotection.properties to copy.

      4. Warnings about log4j should probably be possible to avoid!?
      [copy] Warning: Could not find file /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/conf/log4j-jboss.xml.sample to copy.

      And do we even need to warn about this one on EJBCA 6.x? (Since it as I understand it requires JBoss EAB 6.1 or JBoss 7).
      [copy] Warning: Could not find file /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/conf/log4j-jboss.xml to copy.

      Is this supposed to be used, if so maybe this is just a misconfiguration on jenkins:
      [copy] Warning: Could not find file /home/hudson/workspace/EJBCA_TRUNK_MARIADB_UBUNTU1204_JBOSSEAP61_PUPPET/ejbca/conf/log4j-jbosseap6.xml to copy.

      5. There are also many classpath problems:
      [0m[33m01:22:14,718 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/bcpkix-jdk15on-149.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,719 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/bcprov-jdk15on-149.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,719 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/cert-cvc.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,720 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/cesecore-common.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,720 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/cesecore-ejb-interface.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,721 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/cesecore-entity.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,721 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/commons-collections-3.2.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,722 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/commons-configuration-1.6.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,722 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/commons-lang-2.5.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,723 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/commons-logging-1.1.1.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,723 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/ejbca-util.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,724 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/ejbca-ws.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.
      [0m[33m01:22:14,724 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015960: Class Path entry lib/log4j-1.2.16.jar in /content/ejbca.ear/lib/ejbca-ws-cli.jar does not point to a valid jar for a Class-Path reference.

      6. This one is probably also by design. Is it best practice to use AuthenticationKeyBinding? I would reconsider if this should be an info message otherwise
      [0m[33m01:22:31,917 WARN [org.ejbca.core.ejb.ocsp.OcspKeyRenewalSessionBean] (EJB default - 2) No AuthenticationKeyBinding is configured. Unable to authenticate to EJBCA WebService.

      Then there is an error message:
      [0m[31m01:22:31,925 ERROR [org.ejbca.core.ejb.ocsp.OcspKeyRenewalSessionBean] (EJB default - 2) Could not locate a suitable web service

      Are the two messages above due to some misconfiguration maybe?

      7. This one happens while building the batch enrollment GUI
      [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

      8. The below are probably due to a configuration problem on Jenkins!?
      [0m[33m01:23:44,927 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 3) Can not read public key certificate with alias 'privatesignkeyalias' from keystore, got null. If the key of the certificate was generated after the latest application server start then restart the application server.
      [0m[33m01:23:44,928 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 3) Can not read private key with alias 'privatesignkeyalias' from keystore, got null. If the key was generated after the latest application server start then restart the application server.
      [0m[33m01:23:44,929 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 3) No key with alias 'privatesignkeyalias'.
      [0m[0m01:23:45,622 INFO [org.cesecore.audit.impl.log4j.Log4jDevice] (EJB default - 3) 2013-10-21 01:23:45+02:00;CRYPTOTOKEN_GEN_KEYPAIR;SUCCESS;CRYPTOTOKEN;CORE;ejbca;-2061519592;;;msg=Generated new keypair in CryptoToken -2061519592;keyAlias=privatesignkeyalias;keySpecification=2048
      [0m[0m01:23:45,650 INFO [org.cesecore.audit.impl.log4j.Log4jDevice] (EJB default - 5) 2013-10-21 01:23:45+02:00;ACCESS_CONTROL;SUCCESS;ACCESSCONTROL;CORE;ejbca;;;;resource0=/cryptotoken/keys/generate/-2061519592
      [0m[33m01:23:45,658 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 5) Can not read public key certificate with alias 'privatedeckeyalias' from keystore, got null. If the key of the certificate was generated after the latest application server start then restart the application server.
      [0m[33m01:23:45,659 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 5) Can not read private key with alias 'privatedeckeyalias' from keystore, got null. If the key was generated after the latest application server start then restart the application server.
      [0m[33m01:23:45,660 WARN [org.cesecore.keys.token.BaseCryptoToken] (EJB default - 5) No key with alias 'privatedeckeyalias'.

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tham OLD PK - Tham Wickenberg (Inactive)
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: