8 Replies Latest reply on Jun 20, 2016 7:33 AM by Marek Goldmann

    Trying to setup wildfly error loading module

    John Spencer Newbie

      Hello, I'm using trying to setup wildfly on a computer running fedora 23. Whenever I try to run standalone.sh wildfly returns an error:

      Previously I had trouble creating a user through add-user.sh because wildfly was reading my JAVA_HOME variable from /etc/environment instead of $JAVA_HOME defined at ~/.profile as export JAVA_HOME=/usr/lib/jvm/java-1.8.0

      I changed the definition to match that of ~/.profile and managed to succesfully create a user.

      Interestingly the following stack trace mentions OPENJDK for some reason, which is strange because although it is also installed on this machine it is not mentioned in any environment variables that I know of and it is also not set as prefered alternative in my java configuration.

      I've found this issue report [WFLY-3068] could fail more gracefully when wrong Java version used - JBoss Issue Tracker which seems to be related but I don't think I'm using an incorrect runtime version.

      Here is the full stack trace:

       

      =========================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: /usr/share/wildfly

       

        JAVA: /usr/lib/jvm/java-1.8.0/bin/java

       

        JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

       

      =========================================================================

       

      OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

      23:19:21,988 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final

      23:19:22,038 WARN  [org.jboss.modules] (main) Failed to define class org.jboss.as.server.jmx.PluggableMBeanServer in Module "org.jboss.as.server:main" from local module loader @7d4793a8 (finder: local module finder @449b2d27 (roots: /usr/share/wildfly/modules,/usr/share/wildfly/modules/system/layers/base)): org.jboss.modules.ModuleLoadError: Error loading module from /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/module.xml

          at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1392) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:563) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_92]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_92]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_92]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_92]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.as.jmx.PluggableMBeanServerBuilder.newMBeanServer(PluggableMBeanServerBuilder.java:47) [wildfly-jmx-8.1.0.Final.jar:8.1.0.Final]

          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:329) [rt.jar:1.8.0_92]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231) [rt.jar:1.8.0_92]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192) [rt.jar:1.8.0_92]

          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:469) [rt.jar:1.8.0_92]

          at org.jboss.modules.Main.main(Main.java:454) [jboss-modules.jar:1.3.3.Final]

      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'log4j-1.2.17.jar' at path 'log4j-1.2.17.jar' (position: END_TAG seen ...<resources>\n        <resource-root path="log4j-1.2.17.jar"/>... @27:49) caused by: java.io.FileNotFoundException: /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-1.2.17.jar (No such file or directory)

          at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:723) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:572) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:394) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:219) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:153) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:132) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:154) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:148) [jboss-modules.jar:1.3.3.Final]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_92]

          at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:148) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:455) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:358) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:305) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.addPaths(Module.java:1036) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.link(Module.java:1406) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPaths(Module.java:1367) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1390) [jboss-modules.jar:1.3.3.Final]

          ... 36 more

       

      23:19:22,049 WARN  [org.jboss.modules] (main) Failed to define class org.jboss.as.jmx.PluggableMBeanServerImpl in Module "org.jboss.as.jmx:main" from local module loader @7d4793a8 (finder: local module finder @449b2d27 (roots: /usr/share/wildfly/modules,/usr/share/wildfly/modules/system/layers/base)): org.jboss.modules.ModuleLoadError: Error loading module from /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/module.xml

          at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1392) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:563) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_92]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_92]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_92]

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_92]

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.as.jmx.PluggableMBeanServerBuilder.newMBeanServer(PluggableMBeanServerBuilder.java:47) [wildfly-jmx-8.1.0.Final.jar:8.1.0.Final]

          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:329) [rt.jar:1.8.0_92]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231) [rt.jar:1.8.0_92]

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192) [rt.jar:1.8.0_92]

          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:469) [rt.jar:1.8.0_92]

          at org.jboss.modules.Main.main(Main.java:454) [jboss-modules.jar:1.3.3.Final]

      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'log4j-1.2.17.jar' at path 'log4j-1.2.17.jar' (position: END_TAG seen ...<resources>\n        <resource-root path="log4j-1.2.17.jar"/>... @27:49) caused by: java.io.FileNotFoundException: /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-1.2.17.jar (No such file or directory)

          at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:723) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:572) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:394) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:219) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:153) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:132) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:154) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:148) [jboss-modules.jar:1.3.3.Final]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_92]

          at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:148) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:455) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:358) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:305) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.addPaths(Module.java:1036) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.link(Module.java:1406) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPaths(Module.java:1367) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1390) [jboss-modules.jar:1.3.3.Final]

          ... 36 more

       

      Exception in thread "main" org.jboss.modules.ModuleLoadError: Error loading module from /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/module.xml

          at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:78)

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1392)

          at org.jboss.modules.Module.loadModuleClass(Module.java:563)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

          at java.lang.ClassLoader.defineClass1(Native Method)

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92)

          at org.jboss.modules.Module.loadModuleClass(Module.java:568)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

          at java.lang.ClassLoader.defineClass1(Native Method)

          at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

          at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361)

          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482)

          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277)

          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92)

          at org.jboss.modules.Module.loadModuleClass(Module.java:568)

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

          at org.jboss.as.jmx.PluggableMBeanServerBuilder.newMBeanServer(PluggableMBeanServerBuilder.java:47)

          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:329)

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231)

          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192)

          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:469)

          at org.jboss.modules.Main.main(Main.java:454)

      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'log4j-1.2.17.jar' at path 'log4j-1.2.17.jar' (position: END_TAG seen ...<resources>\n        <resource-root path="log4j-1.2.17.jar"/>... @27:49) caused by: java.io.FileNotFoundException: /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-1.2.17.jar (No such file or directory)

          at org.jboss.modules.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:723)

          at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:572)

          at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:394)

          at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:219)

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:153)

          at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:132)

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:154)

          at org.jboss.modules.LocalModuleFinder$1.run(LocalModuleFinder.java:148)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:148)

          at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:455)

          at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:358)

          at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:305)

          at org.jboss.modules.Module.addPaths(Module.java:1036)

          at org.jboss.modules.Module.link(Module.java:1406)

          at org.jboss.modules.Module.getPaths(Module.java:1367)

          at org.jboss.modules.Module.getPathsUnchecked(Module.java:1390)

          ... 36 more

        • 1. Re: Trying to setup wildfly error loading module
          jaikiran pai Master

          Post the output of:

           

          /usr/lib/jvm/java-1.8.0/bin/java -version

           

          That's the Java runtime that's being used by the WildFly instance.

          • 2. Re: Trying to setup wildfly error loading module
            John Spencer Newbie

            Output is

             

            ⚓  ~  /usr/lib/jvm/java-1.8.0/bin/java -version

             

            openjdk version "1.8.0_92"

             

            OpenJDK Runtime Environment (build 1.8.0_92-b14)

             

            OpenJDK 64-Bit Server VM (build 25.92-b14, mixed mode)

             

             

            Wow I didn't realise /usr/lib/jvm was openjdk's folder all this time... Anyway I've now set my JAVA_HOME variable to /usr/java/default so wildfly's output is:

              JBoss Bootstrap Environment

             

              JBOSS_HOME: /usr/share/wildfly

             

              JAVA: /usr/java/default/bin/java

             

              JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

             

            And if I do /usr/java/default/bin/java -version

            The output is:

            java version "1.8.0_91"

            Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

            Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

             

            But it still returns the same warnings aswell as the same error whenever I run sudo /usr/share/wildfly/bin/standalone.sh:

            Exception in thread "main" org.jboss.modules.ModuleLoadError: Error loading module from /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/module.xml

             

            I installed  the standard wildfly repository that comes with fedora by doing dnf install wildfly and I just realised that I'm running version 8.1..0, could that be the problem?

            • 3. Re: Trying to setup wildfly error loading module
              jaikiran pai Master

              Can you do:

               

              ls -l /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/

               

              and post the output here?

               

              What user are you running this script as and what permissions are set on the WildFly folders of that installation?

              • 4. Re: Trying to setup wildfly error loading module
                John Spencer Newbie

                The output for ls -l /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/ is:

                total 8

                lrwxrwxrwx. 1 root root   30 Jul 28  2014 log4j-1.2.17.jar -> /usr/lib/java/log4j-1.2.17.jar

                lrwxrwxrwx. 1 root root   65 Jul 28  2014 log4j-jboss-logmanager.jar -> /usr/share/java/log4j-jboss-logmanager/log4j-jboss-logmanager.jar

                -rw-r--r--. 1 root root 1636 Jul 28  2014 module.xml

                 

                I've tried running it as a standard user as well as root and I get the same output regardless.

                • 5. Re: Trying to setup wildfly error loading module
                  jaikiran pai Master

                  John Spencer wrote:

                   

                  The output for ls -l /usr/share/wildfly/modules/system/layers/base/org/jboss/log4j/logmanager/main/ is:

                  total 8

                  lrwxrwxrwx. 1 root root   30 Jul 28  2014 log4j-1.2.17.jar -> /usr/lib/java/log4j-1.2.17.jar

                  lrwxrwxrwx. 1 root root   65 Jul 28  2014 log4j-jboss-logmanager.jar -> /usr/share/java/log4j-jboss-logmanager/log4j-jboss-logmanager.jar

                  -rw-r--r--. 1 root root 1636 Jul 28  2014 module.xml

                   

                  So it looks like this is all symlinked. I haven't ever tried such a setup and don't know if it's a genuine issue in the WildFly code or has to do with the installation itself.

                   

                  Is there are specific reason why you intend to use the WildFly distributed via the Fedora package manager (I'm assuming that's what this is, based on what I have seen so far in this thread)? I don't know who maintains it and if it has any known issues like this one.

                   

                  Personally, I (and almost everyone I know) use the .tar.gz binary from WildFly which is available for download here Downloads · WildFly. All you have to do is untar it and that's it - the installation is done and far easily manageable (IMO).

                  • 6. Re: Trying to setup wildfly error loading module
                    jaikiran pai Master

                    jaikiran wrote:

                     

                     

                    Is there are specific reason why you intend to use the WildFly distributed via the Fedora package manager (I'm assuming that's what this is, based on what I have seen so far in this thread)? I don't know who maintains it and if it has any known issues like this one.

                     

                    Actually, I remember now - I think it's goldmann. So maybe he will know more about it and might be able to help.

                    • 7. Re: Trying to setup wildfly error loading module
                      John Spencer Newbie

                      Thanks, I installed version 10 and it worked.

                      I'd installed wildfly's fedora distributed version because I figured it'd be easier and more stable, since both fedora and wildfly are redhat's but it seems theres some sort of bug in version 8.1.0. It's also quite weird that they haven't updated the repository in such a long time... Anyway thank, you version 10 works perfectly!

                      • 8. Re: Trying to setup wildfly error loading module
                        Marek Goldmann Master

                        WildFly in Fedora is in a pretty complicated state. I do not have time to maintain it anymore and it requires a lot of time and love to make it great again. There is some community move to make this happen, but since it's mostly one person - it takes a bit.