WildFly – A New Improved JBoss Application Server for Linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Kuldeep Sharma

Currently, Working in Middleware(Jboss/Apache Tomcat) And POSIX related technologies. Having more than 5 years of experience and love to do R&D on different open source tools/technologies.

Host Your Own Website at $97 Discount + One Free Domain Using our Promo Code 'Tec97' (Enter this code during Signup) - Signup with DreamHost Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

14 Responses

  1. Kuldeep says:

    Hi Vilbi,

    Sorry, I didn’t noticed about your comment.
    Just, upgrade your jdk to version 7 as Wildwfly doesn’t support 6 or older.

    @khaya-mfini
    Thank you!!
    Its good to add things to alternatives. But, another thing that I would suggest is that you can Install jdk-1.7 to any specific directory and it just set your variable in standalone.conf/sh file.
    With this you can have multiple java version running on same systems and will not break running things :)..

    Thanks!!

  2. khaya-mfini says:

    Hi Vilbi,

    I know it’s months after, but you may want to also change your “alternatives” on your system for java. I have written steps for you below:

    1. First install Java EE 7 on the server or pc
    1.1) Download:
    jdk-7u67-linux-i586.tar.gz (this should contain a jre on it)

    1.2) Extract to /opt

    1.3) Create a symlink called “java”
    $ cd /opt
    $ ln -s /opt/jdk1.7.0_67 java

    1.4) You should see:
    lrwxrwxrwx 1 root root 11 Aug 24 15:25 java -> jdk1.7.0_67
    drwxr-xr-x 8 uucp 143 4096 Jul 25 18:14 jdk1.7.0_67

    1.5) Make this version of java default:

    1.5.1) Edit /etc/environment and append “/opt/java/bin” to your PATH environment variable.
    Also add a JAVA_HOME that is set to “/opt/java”. Something like:

    PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/java/bin”
    JAVA_HOME=”/opt/java”

    These will take effect next time you restart your pc.

    1.5.2) $ sudo update-alternatives –install “/usr/bin/java” “java” “/opt/java/jre/bin/java” 1
    1.5.3) $ sudo update-alternatives –config java
    1.5.4) Check if version is correct: $ java -version
    java version “1.7.0_67″
    Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
    Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode)

  3. Vilbi Raju says:

    Please go thrrough the installation steps and error

    Installation Steps
    ======================================================================
    mkdir /data
    cd /data/
    unzip wildfly-8.0.0.Final.zip
    cd wildfly-8.0.0.Final/bin
    yum install *openjdk* -y
    find /usr -name *jdk // to see the java path /usr/lib/jvm/java-openjdk
    vi standalone.conf
    vi standalone.conf //JAVA_HOME=”/usr/lib/jvm/java-openjdk”
    //JBOSS_HOME=”/data/wildfly-8.0.0.Final”
    Java Vesion
    =======================================================================
    [root@REDHAT2 bin]# java -version
    java version “1.6.0_20″
    OpenJDK Runtime Environment (IcedTea6 1.9.7) (rhel-1.39.1.9.7.el6-i386)
    OpenJDK Client VM (build 19.0-b09, mixed mode)
    =======================================================================
    Starting Wildfly
    ./standalone.sh –server-config standalone-full-ha.xml

    OUTPUT

    [root@REDHAT2 bin]# ./standalone.sh –server-config standalone-full-ha.xml
    =========================================================================
    OUTPUT
    =========================================================================
    JBoss Bootstrap Environment

    JBOSS_HOME: /data/wildfly-8.0.0.Final

    JAVA: /usr/lib/jvm/java-openjdk/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

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

    21:53:13,426 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
    21:53:13,436 WARN [org.jboss.modules] (main) Failed to define class org.jboss.as.jmx.PluggableMBeanServerBuilder in Module

    “org.jboss.as.jmx:main” from local module loader @1ffc686 (finder: local module finder @142bece (roots: /data/wildfly-

    8.0.0.Final/modules,/data/wildfly-8.0.0.Final/modules/system/layers/base)): java.lang.UnsupportedClassVersionError:

    org/jboss/as/jmx/PluggableMBeanServerBuilder : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_20]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [rt.jar:1.6.0_20]
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.Module.loadModuleClass(Module.java:548) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-

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

    modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]
    at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:534) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:314) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:229) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:190) [rt.jar:1.6.0_20]
    at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:320) [rt.jar:1.6.0_20]
    at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521) [rt.jar:1.6.0_20]
    at org.jboss.modules.Main.main(Main.java:449) [jboss-modules.jar:1.3.0.Final]

    Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jboss/as/jmx/PluggableMBeanServerBuilder : Unsupported

    major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
    at org.jboss.modules.Module.loadModuleClass(Module.java:548)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118)
    at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441)
    at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483)
    at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:534)
    at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:314)
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:229)
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:190)
    at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:320)
    at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521)
    at org.jboss.modules.Main.main(Main.java:449)

  4. vilbiraju says:

    Please go through the steps that i follwed and error messages..

    correct my mistakes

    Installation Steps
    ======================================================================
    mkdir /data
    250 cd /data/
    251 LS
    252 ls
    253 unzip wildfly-8.0.0.Final.zip
    254 ls
    255 cd wildfly-8.0.0.Final
    256 ls
    257 cd bin/
    258 ls
    259 find /usr -name *jdk
    260 cd /usr/lib/jvm/java-openjdk
    261 ls
    262 cd /data/wildfly-8.0.0.Final/bin/
    263 vi standalone.conf
    264 pwd
    265 vi standalone.conf //JAVA_HOME=”/usr/lib/jvm/java-openjdk”
    //JBOSS_HOME=”/data/wildfly-8.0.0.Final”
    =======================================================================
    [root@REDHAT2 bin]# java -version
    java version “1.6.0_20″
    OpenJDK Runtime Environment (IcedTea6 1.9.7) (rhel-1.39.1.9.7.el6-i386)
    OpenJDK Client VM (build 19.0-b09, mixed mode)
    =======================================================================

    266 ./standalone.sh –server-config standalone-full-ha.xml

    [root@REDHAT2 bin]# ./standalone.sh –server-config standalone-full-ha.xml
    =========================================================================
    OUTPUT
    =========================================================================
    JBoss Bootstrap Environment

    JBOSS_HOME: /data/wildfly-8.0.0.Final

    JAVA: /usr/lib/jvm/java-openjdk/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

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

    21:53:13,426 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
    21:53:13,436 WARN [org.jboss.modules] (main) Failed to define class org.jboss.as.jmx.PluggableMBeanServerBuilder in Module “org.jboss.as.jmx:main” from local module loader @1ffc686 (finder: local module finder @142bece (roots: /data/wildfly-8.0.0.Final/modules,/data/wildfly-8.0.0.Final/modules/system/layers/base)): java.lang.UnsupportedClassVersionError: org/jboss/as/jmx/PluggableMBeanServerBuilder : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_20]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [rt.jar:1.6.0_20]
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.Module.loadModuleClass(Module.java:548) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]
    at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:534) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:314) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:229) [rt.jar:1.6.0_20]
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:190) [rt.jar:1.6.0_20]
    at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:320) [rt.jar:1.6.0_20]
    at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521) [rt.jar:1.6.0_20]
    at org.jboss.modules.Main.main(Main.java:449) [jboss-modules.jar:1.3.0.Final]

    Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jboss/as/jmx/PluggableMBeanServerBuilder : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
    at org.jboss.modules.Module.loadModuleClass(Module.java:548)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118)
    at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441)
    at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483)
    at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:534)
    at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:314)
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:229)
    at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:190)
    at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:320)
    at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521)
    at org.jboss.modules.Main.main(Main.java:449)

    • Kuldeep says:

      Hi vilbiraju,

      Check your java version as :
      #java -version

      It should be 7.*. The error is due to old version of java, Upgrade this to 7 and it will work. WildFly is compatible with JDK 7.*.
      Let us know, if you still have any issues.

      Thanks!
      Kuldeep

  5. Abhi says:

    Thanks, the article is well written and easy to understand. Hoping to see more such posts from you. keep it bro!

  6. hdaz says:

    Thanks for a great write-up are you planning on doing more?

    clustered version ?? are there still many ways to deploy the cluster ??

    how about good examples of deploying apps (( i.e. different ways ?? ))

    or even a short few articles on developing some basic apps ??

    Cheers
    hdaz

    • Kuldeep says:

      Hi hdaz,

      It’s really good to know that you like this.
      Yes, we are coming with more articles on WildFly-8 i.e. About Standalone, Clustered, different ways of deployment and undeployments etc.

      Stay tuned with tecmint :) !!

      Thanks!!

  7. Thai says:

    Why do you want to install JDK/JRE 7u25 on Feb 17 2014? 7u51 was already there for a while. Or is it because WildFly uses Guava which doesn’t work with 7u51?

    • Kuldeep says:

      Hi Thai,

      WildFly 8 the First Release which is compatible with JEE 7. It’ll work with both 7u25 and 7u51. Infact, it’ll work with any release of JDK 7.

      Hope this will help you!
      Please let us know if still you have any queries.

      Thanks!
      Kuldeep

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 48100
  2. 2222
  3. 11697
Enter your email to get latest Linux Howto's