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

Tomahawk used by Admin GUI fails deployment randomly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: EJBCA 6.2.6
    • Fix Version/s: None
    • Component/s: CA GUI
    • Labels:
      None
    • Environment:
      JBoss EAP 6.2
    • Issue discovered during:
      Customer

      Description

      The following error appears randomly (and me not reproduable for me) after:

      • shutdown of JBoss
      • copy of the ejbca.ear to the jboss-eap-6.2/standalone/deployments/ directory
      • start JBoss

      WARN [org.jboss.modules] (MSC service thread 1-24) Failed to define class org.apache.myfaces.custom.document.AbstractDocumentTag in Module "deployment.ejbca.ear.adminweb.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/myfaces/custom/document/AbstractDocumentTag (Module "deployment.ejbca.ear.adminweb.war:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:428) [jboss-modules.jar:1.3.0.Final-redhat-2]
      ...
      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      Caused by: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_51]
      ...
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423) [jboss-modules.jar:1.3.0.Final-redhat-2]
      ... 31 more
      Caused by: java.lang.ClassNotFoundException: javax.faces.webapp.UIComponentTag from [Module "deployment.ejbca.ear.adminweb.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final-redhat-2]
      ...
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final-redhat-2]
      ... 35 more

      We might need to add a jboss-deployment-structure.xml file to ensure that MyFaces is loaded as a dependency instead of when it is found out to be needed.

      See also https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments and http://www.jboss.org/schema/jbossas/jboss-deployment-structure-1_0.xsd

      Work-around exists: Touching the file (triggering a hot redeploy) solves the problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              johan Johan Eklund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: