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

Redeployment on Glassfish 2.1.1 does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 4.0.0
    • Component/s: AdminGUI
    • Labels:
      None
    • Environment:
      Glassfish 2.1.1

      Description

      During redeployment of EJBCA, the following Exception is thrown when adminweb.war is deployed:

      [#|2010-10-26T17:12:34.208+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=httpWorkerThread-4848-3;_RequestID=a7dc2f63-8136-4ff2-9180
      -8fb89806998b;|WebModule[/ejbca/adminweb]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4655)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:5364)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:345)
      ...
      Caused by: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
      at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
      at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
      at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown Source)
      at org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager.<init>(Unknown Source)
      at org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.<init>(Unknown Source)
      at org.apache.xerces.jaxp.validation.AbstractXMLSchema.newValidatorHandler(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      at com.sun.faces.config.ConfigManager$ParseTask.getBuilderForSchema(ConfigManager.java:523)
      at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:455)
      at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416)
      at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373)
      ...

      The cause of this is that Glassfish 2.1.1 bundles Xerces-J 2.6.2 and EJBCA bundles Xerces-J 2.7.1.

      The Xerces implementation bundled with EJBCA is used by Batik for SVG image manipulation for HardTokens.

      Tested workarounds:

      • Copy/symlink EJBCA_HOME/lib/batik/xerces.jar to APPSRV_HOME/domains/domain1/lib/ext/
      • Restart appserver after each between each undeploy and deploy

      Possible solutions:

      • Remove this part of hardtoken manipulation, since it is from what I understand used only for integration with PrimeCard.
      • Live with the workaround
      • Downgrade EJBCA version of Xerces

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: