0 Replies Latest reply on Aug 5, 2014 7:10 AM by Ricki Lambert

    JBoss Connection Issues

    Ricki Lambert Newbie

      Anyone that solves this - I will donate £20 worth of beer tokens via paypal!

       

      I have a jboss standalone server running on my home network on address 192.168.0.xx - This has a public ip address of 94.5.19.27 which my colleague remotes too.

       

      We have managed to open ports for every service, including jenkins, sonar, open fire, mysql and these all work fine, and we can connect to them externally. For some reason the only playing around is an external jboss/jconsole connection.

       

      I have modified my standalone.conf file to pass a number of JVM arguments, these can be seen below;

       

      if [ "x$JAVA_OPTS" = "x" ]; then

         JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"

         JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"

         JAVA_OPTS="$JAVA_OPTS -Duser.timezone=GMT"

         JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:/var/opt/jboss/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.1.Final-redhat-1.jar

         JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

         JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

         JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=8081"

         JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.rmi.port=8081"

         JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

         JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

         JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=94.5.19.27"

        # JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"

      else

         echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"

      fi

       

      It makes no difference on how i pass the connection string in to jconsole it just gets rejected repeatedly.

       

      I am begging, please can someone help me in identifying what I need to do in order to connect to my server via jconsole. As you can see, all authentication is off (this is dev so i don't mind too much) so I figure someone here might be able to try and connect?!

       

      I am not entirely sure why the dev box is listening for tcp6 eitheer?

       

      [root@secondstory1d bin]# netstat -an | egrep 'Proto|LISTEN'

      Proto Recv-Q Send-Q Local Address           Foreign Address         State     

      tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN    

      tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN    

      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN    

      tcp        0      0 0.0.0.0:36280           0.0.0.0:*               LISTEN    

      tcp        0      0 127.0.0.1:32000         0.0.0.0:*               LISTEN    

      tcp6       0      0 127.0.0.1:9990          :::*                    LISTEN    

      tcp6       0      0 :::5222                 :::*                    LISTEN    

      tcp6       0      0 :::9000                 :::*                    LISTEN    

      tcp6       0      0 :::5229                 :::*                    LISTEN    

      tcp6       0      0 127.0.0.1:9999          :::*                    LISTEN    

      tcp6       0      0 :::111                  :::*                    LISTEN    

      tcp6       0      0 :::8080                 :::*                    LISTEN    

      tcp6       0      0 :::7443                 :::*                    LISTEN    

      tcp6       0      0 :::60211                :::*                    LISTEN    

      tcp6       0      0 :::5269                 :::*                    LISTEN    

      tcp6       0      0 :::60342                :::*                    LISTEN    

      tcp6       0      0 :::22                   :::*                    LISTEN    

      tcp6       0      0 :::45465                :::*                    LISTEN    

      tcp6       0      0 :::7070                 :::*                    LISTEN    

      tcp6       0      0 :::4447                 :::*                    LISTEN    

      tcp6       0      0 :::7777                 :::*                    LISTEN    

      tcp6       0      0 :::9090                 :::*                    LISTEN    

      tcp6       0      0 :::9091                 :::*                    LISTEN    

      Proto RefCnt Flags       Type       State         I-Node   Path

      unix  2      [ ACC ]     STREAM     LISTENING     8191     /var/run/cups/cups.sock

      unix  2      [ ACC ]     STREAM     LISTENING     16392    @ISCSIADM_ABSTRACT_NAMESPACE

      unix  2      [ ACC ]     STREAM     LISTENING     21513    /run/user/0/systemd/private

      unix  2      [ ACC ]     STREAM     LISTENING     15932    @/tmp/dbus-kVVZeDk3tu

      unix  2      [ ACC ]     STREAM     LISTENING     16399    /var/run/rpcbind.sock

      unix  2      [ ACC ]     STREAM     LISTENING     15635    /var/run/abrt/abrt.socket

      unix  2      [ ACC ]     STREAM     LISTENING     16408    /var/run/avahi-daemon/socket

      unix  2      [ ACC ]     STREAM     LISTENING     18208    /run/user/42/pulse/native

      unix  2      [ ACC ]     STREAM     LISTENING     16420    /var/run/dbus/system_bus_socket

      unix  2      [ ACC ]     STREAM     LISTENING     17994    @/tmp/dbus-NbJAFaGV

      unix  2      [ ACC ]     STREAM     LISTENING     20030    /tmp/.ICE-unix/849

      unix  2      [ ACC ]     STREAM     LISTENING     20505    @/tmp/dbus-EpvHJbKD6f

      unix  2      [ ACC ]     STREAM     LISTENING     8172     @ISCSID_UIP_ABSTRACT_NAMESPACE

      unix  2      [ ACC ]     SEQPACKET  LISTENING     10063    /run/udev/control

      unix  2      [ ACC ]     STREAM     LISTENING     15699    /var/run/NetworkManager/private-dhcp

      unix  2      [ ACC ]     STREAM     LISTENING     20315    /run/user/1000/systemd/private

      unix  2      [ ACC ]     STREAM     LISTENING     13980    @/tmp/.X11-unix/X0

      unix  2      [ ACC ]     STREAM     LISTENING     19304    /var/run/NetworkManager/private

      unix  2      [ ACC ]     STREAM     LISTENING     17996    @/tmp/dbus-gTWcagvi

      unix  2      [ ACC ]     STREAM     LISTENING     114554   /run/user/996/systemd/private

      unix  2      [ ACC ]     STREAM     LISTENING     6532     /run/lvm/lvmetad.socket

      unix  2      [ ACC ]     STREAM     LISTENING     19352    /var/run/libvirt/libvirt-sock

      unix  2      [ ACC ]     STREAM     LISTENING     19354    /var/run/libvirt/libvirt-sock-ro

      unix  2      [ ACC ]     STREAM     LISTENING     13981    /tmp/.X11-unix/X0

      unix  2      [ ACC ]     STREAM     LISTENING     17337    @/tmp/dbus-DW9w81BI

      unix  2      [ ACC ]     STREAM     LISTENING     16828    /var/run/rpcbind.sock

      unix  2      [ ACC ]     STREAM     LISTENING     20029    @/tmp/.ICE-unix/849

      unix  2      [ ACC ]     STREAM     LISTENING     9924     /run/systemd/private

      unix  2      [ ACC ]     STREAM     LISTENING     17997    @/tmp/dbus-khLFUj8e

      unix  2      [ ACC ]     STREAM     LISTENING     7396     /run/systemd/journal/stdout

      unix  2      [ ACC ]     STREAM     LISTENING     17993    @/tmp/dbus-iGcSU5W7

      unix  2      [ ACC ]     STREAM     LISTENING     705629   /var/lib/mysql/mysql.sock

      unix  2      [ ACC ]     STREAM     LISTENING     19441    /run/user/42/systemd/private

      unix  2      [ ACC ]     STREAM     LISTENING     8179     /var/run/pcscd/pcscd.comm