Errors when trying to deploy and run EJBCA in Ubuntu





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to build a slightly modified version of EJBCA, and while I'm able to compile it with no problems, I get class not found exceptions from code that that I did not modify. Since there are plenty of EJBCA deployments, I wanted to ask for advice on how to deploy it.
The modifications I've done to the code are minimal (just printed some extra information on the log during the HMAC calculation/validation), so should not cause problems by themselves.



I've downloaded the 31372 revision (latest when I downloaded) from the trunk repository for the EJBCA project (https://svn.cesecore.eu/svn/ejbca), and trying to make it work in a virtual machine running a fresh install of Ubuntu 18.04.1 LTS. I´m using the openJDK-8-jdk package as virtual machine, wildfly 10.1.0 Final (one of the errors I was having went away the moment I switched to the recommended Wildfly 10) , and MariaDB 10.1 (package mariadb-server from the Ubuntu repository).



After following the guide available in https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.0.html I'm able to build and deploy the project without any problems, using the "ant clean deployear", but when trying to run the next command in the guide, "ant runinstall", I get the following error:



[java] log4j:WARN Error during default initialization
[java] java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
[java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
[java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
[java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
[java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
[java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
[java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
[java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
[java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
[java] at org.apache.xerces.util.ObjectFactory.findProviderClass(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractDOMParser.reset(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
[java] at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
[java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
[java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
[java] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
[java] at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
[java] at org.apache.log4j.Logger.getLogger(Logger.java:117)
[java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:44)
[java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
[java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
[java] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS
[java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
[java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
[java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
[java] ... 33 more
[java] log4j:WARN No appenders could be found for logger (org.jboss.logging).
[java] log4j:WARN Please initialize the log4j system properly.
[java] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[java] WARNING: An illegal reflective access operation has occurred
[java] WARNING: Illegal reflective access by org.xnio.nio.NioXnio$2 (file:/home/alpha1983/ejbca_svn/dist/ejbca-ejb-cli/lib/jboss-client.jar) to constructor sun.nio.ch.EPollSelectorProvider()
[java] WARNING: Please consider reporting this to the maintainers of org.xnio.nio.NioXnio$2
[java] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[java] WARNING: All illegal access operations will be denied in a future release


BUILD FAILED



The version of log4j used and bundled within the sources of EJBCA is log4j-1.2.17 (located here: https://svn.cesecore.eu/svn/ejbca/trunk/ejbca/lib/), a rather old version. The lib tries to find the DocumentLS class that is deprecated in xerces, so I have tried to use a lower version of xerces, but was not able to download a package from the ubuntu repositories that would implement the required class. Upgrading the log4j to a newer version 2.x is not a solution either, since it would entail changing the EJBCA code in too many places.
Since people are able to deploy EJBCA, I'm guessing that there's an easier way around this issue than a re-write of the sources, so I'm asking for advice.



I'm guessing that there's some field that I'm not configuring, but so far I haven't been able to figure out which one it is, and wanted to ask for advice on the topic.
Thanks in advance










share|improve this question































    0















    I'm trying to build a slightly modified version of EJBCA, and while I'm able to compile it with no problems, I get class not found exceptions from code that that I did not modify. Since there are plenty of EJBCA deployments, I wanted to ask for advice on how to deploy it.
    The modifications I've done to the code are minimal (just printed some extra information on the log during the HMAC calculation/validation), so should not cause problems by themselves.



    I've downloaded the 31372 revision (latest when I downloaded) from the trunk repository for the EJBCA project (https://svn.cesecore.eu/svn/ejbca), and trying to make it work in a virtual machine running a fresh install of Ubuntu 18.04.1 LTS. I´m using the openJDK-8-jdk package as virtual machine, wildfly 10.1.0 Final (one of the errors I was having went away the moment I switched to the recommended Wildfly 10) , and MariaDB 10.1 (package mariadb-server from the Ubuntu repository).



    After following the guide available in https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.0.html I'm able to build and deploy the project without any problems, using the "ant clean deployear", but when trying to run the next command in the guide, "ant runinstall", I get the following error:



    [java] log4j:WARN Error during default initialization
    [java] java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
    [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
    [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
    [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    [java] at org.apache.xerces.util.ObjectFactory.findProviderClass(Unknown Source)
    [java] at org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(Unknown Source)
    [java] at org.apache.xerces.parsers.AbstractDOMParser.reset(Unknown Source)
    [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    [java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    [java] at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
    [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
    [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
    [java] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    [java] at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    [java] at org.apache.log4j.Logger.getLogger(Logger.java:117)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:44)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
    [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
    [java] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS
    [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    [java] ... 33 more
    [java] log4j:WARN No appenders could be found for logger (org.jboss.logging).
    [java] log4j:WARN Please initialize the log4j system properly.
    [java] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    [java] WARNING: An illegal reflective access operation has occurred
    [java] WARNING: Illegal reflective access by org.xnio.nio.NioXnio$2 (file:/home/alpha1983/ejbca_svn/dist/ejbca-ejb-cli/lib/jboss-client.jar) to constructor sun.nio.ch.EPollSelectorProvider()
    [java] WARNING: Please consider reporting this to the maintainers of org.xnio.nio.NioXnio$2
    [java] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    [java] WARNING: All illegal access operations will be denied in a future release


    BUILD FAILED



    The version of log4j used and bundled within the sources of EJBCA is log4j-1.2.17 (located here: https://svn.cesecore.eu/svn/ejbca/trunk/ejbca/lib/), a rather old version. The lib tries to find the DocumentLS class that is deprecated in xerces, so I have tried to use a lower version of xerces, but was not able to download a package from the ubuntu repositories that would implement the required class. Upgrading the log4j to a newer version 2.x is not a solution either, since it would entail changing the EJBCA code in too many places.
    Since people are able to deploy EJBCA, I'm guessing that there's an easier way around this issue than a re-write of the sources, so I'm asking for advice.



    I'm guessing that there's some field that I'm not configuring, but so far I haven't been able to figure out which one it is, and wanted to ask for advice on the topic.
    Thanks in advance










    share|improve this question



























      0












      0








      0








      I'm trying to build a slightly modified version of EJBCA, and while I'm able to compile it with no problems, I get class not found exceptions from code that that I did not modify. Since there are plenty of EJBCA deployments, I wanted to ask for advice on how to deploy it.
      The modifications I've done to the code are minimal (just printed some extra information on the log during the HMAC calculation/validation), so should not cause problems by themselves.



      I've downloaded the 31372 revision (latest when I downloaded) from the trunk repository for the EJBCA project (https://svn.cesecore.eu/svn/ejbca), and trying to make it work in a virtual machine running a fresh install of Ubuntu 18.04.1 LTS. I´m using the openJDK-8-jdk package as virtual machine, wildfly 10.1.0 Final (one of the errors I was having went away the moment I switched to the recommended Wildfly 10) , and MariaDB 10.1 (package mariadb-server from the Ubuntu repository).



      After following the guide available in https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.0.html I'm able to build and deploy the project without any problems, using the "ant clean deployear", but when trying to run the next command in the guide, "ant runinstall", I get the following error:



      [java] log4j:WARN Error during default initialization
      [java] java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
      [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
      [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
      [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] at org.apache.xerces.util.ObjectFactory.findProviderClass(Unknown Source)
      [java] at org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(Unknown Source)
      [java] at org.apache.xerces.parsers.AbstractDOMParser.reset(Unknown Source)
      [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      [java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      [java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      [java] at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
      [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
      [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      [java] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      [java] at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      [java] at org.apache.log4j.Logger.getLogger(Logger.java:117)
      [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:44)
      [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
      [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
      [java] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] ... 33 more
      [java] log4j:WARN No appenders could be found for logger (org.jboss.logging).
      [java] log4j:WARN Please initialize the log4j system properly.
      [java] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      [java] WARNING: An illegal reflective access operation has occurred
      [java] WARNING: Illegal reflective access by org.xnio.nio.NioXnio$2 (file:/home/alpha1983/ejbca_svn/dist/ejbca-ejb-cli/lib/jboss-client.jar) to constructor sun.nio.ch.EPollSelectorProvider()
      [java] WARNING: Please consider reporting this to the maintainers of org.xnio.nio.NioXnio$2
      [java] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      [java] WARNING: All illegal access operations will be denied in a future release


      BUILD FAILED



      The version of log4j used and bundled within the sources of EJBCA is log4j-1.2.17 (located here: https://svn.cesecore.eu/svn/ejbca/trunk/ejbca/lib/), a rather old version. The lib tries to find the DocumentLS class that is deprecated in xerces, so I have tried to use a lower version of xerces, but was not able to download a package from the ubuntu repositories that would implement the required class. Upgrading the log4j to a newer version 2.x is not a solution either, since it would entail changing the EJBCA code in too many places.
      Since people are able to deploy EJBCA, I'm guessing that there's an easier way around this issue than a re-write of the sources, so I'm asking for advice.



      I'm guessing that there's some field that I'm not configuring, but so far I haven't been able to figure out which one it is, and wanted to ask for advice on the topic.
      Thanks in advance










      share|improve this question
















      I'm trying to build a slightly modified version of EJBCA, and while I'm able to compile it with no problems, I get class not found exceptions from code that that I did not modify. Since there are plenty of EJBCA deployments, I wanted to ask for advice on how to deploy it.
      The modifications I've done to the code are minimal (just printed some extra information on the log during the HMAC calculation/validation), so should not cause problems by themselves.



      I've downloaded the 31372 revision (latest when I downloaded) from the trunk repository for the EJBCA project (https://svn.cesecore.eu/svn/ejbca), and trying to make it work in a virtual machine running a fresh install of Ubuntu 18.04.1 LTS. I´m using the openJDK-8-jdk package as virtual machine, wildfly 10.1.0 Final (one of the errors I was having went away the moment I switched to the recommended Wildfly 10) , and MariaDB 10.1 (package mariadb-server from the Ubuntu repository).



      After following the guide available in https://www.ejbca.org/docs/WildFly_10___JBoss_EAP_7.0.html I'm able to build and deploy the project without any problems, using the "ant clean deployear", but when trying to run the next command in the guide, "ant runinstall", I get the following error:



      [java] log4j:WARN Error during default initialization
      [java] java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
      [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
      [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      [java] at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
      [java] at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] at org.apache.xerces.util.ObjectFactory.findProviderClass(Unknown Source)
      [java] at org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(Unknown Source)
      [java] at org.apache.xerces.parsers.AbstractDOMParser.reset(Unknown Source)
      [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      [java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      [java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      [java] at org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:769)
      [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
      [java] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      [java] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      [java] at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      [java] at org.apache.log4j.Logger.getLogger(Logger.java:117)
      [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:44)
      [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
      [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
      [java] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS
      [java] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
      [java] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
      [java] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
      [java] ... 33 more
      [java] log4j:WARN No appenders could be found for logger (org.jboss.logging).
      [java] log4j:WARN Please initialize the log4j system properly.
      [java] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      [java] WARNING: An illegal reflective access operation has occurred
      [java] WARNING: Illegal reflective access by org.xnio.nio.NioXnio$2 (file:/home/alpha1983/ejbca_svn/dist/ejbca-ejb-cli/lib/jboss-client.jar) to constructor sun.nio.ch.EPollSelectorProvider()
      [java] WARNING: Please consider reporting this to the maintainers of org.xnio.nio.NioXnio$2
      [java] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      [java] WARNING: All illegal access operations will be denied in a future release


      BUILD FAILED



      The version of log4j used and bundled within the sources of EJBCA is log4j-1.2.17 (located here: https://svn.cesecore.eu/svn/ejbca/trunk/ejbca/lib/), a rather old version. The lib tries to find the DocumentLS class that is deprecated in xerces, so I have tried to use a lower version of xerces, but was not able to download a package from the ubuntu repositories that would implement the required class. Upgrading the log4j to a newer version 2.x is not a solution either, since it would entail changing the EJBCA code in too many places.
      Since people are able to deploy EJBCA, I'm guessing that there's an easier way around this issue than a re-write of the sources, so I'm asking for advice.



      I'm guessing that there's some field that I'm not configuring, but so far I haven't been able to figure out which one it is, and wanted to ask for advice on the topic.
      Thanks in advance







      ubuntu java






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 5 at 10:17







      Alpha1983

















      asked Feb 5 at 8:12









      Alpha1983Alpha1983

      12




      12






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402153%2ferrors-when-trying-to-deploy-and-run-ejbca-in-ubuntu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402153%2ferrors-when-trying-to-deploy-and-run-ejbca-in-ubuntu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...