Bitnami JBoss Stack was configured using JBoss for versions lower than 8.0.0. In this page you can find the documentation related to this configuration.

    If you are using Bitnami Wildfly higher than version 8.0.0, please check this documentation.

    How to start/stop the JBoss server?

    You can use the "ctlscript.sh" utility which is in the installation directory.

    linux_platform.png On Linux:

    $ ./ctlscript.sh start jboss
    

    win_platform.png On Windows: Start -> BitNami application Stack -> Services -> Start servers

    You can also open the Windows Services panel and check the "applicationJBoss" service.

    mac_platform.png On OS X:

    host:~ user$ cd /Applications/application-version
    host:~ user$ ./ctlscript.sh start jboss

    You get more info about this at Native_Installers_Quick_Start_Guide#How_can_start_or_stop_the_servers.3f

    How to access at JBoss server console?

    For security reasons, the JBoss server console will be accessible only when using 127.0.0.1 as the hostname. If you are using a native installer you can access from your own machine but if you are using a Virtual Machine, Amazon cloud image or Windows Azure cloud image, please check the connection steps below.

    Amazon cloud / BitNami Hosting

    By default JBoss Management Console is not accessible from the outside for security reasons. In order to access it, you can create an SSH tunnel to JBoss Management Console, sending your requests to your webserver from 127.0.0.1 (localhost).

    1. Get your SSH private key if you don't have it already. More info

    2. Create the tunnel.

    - If you are in Linux or Mac you can run the following in a Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    ssh -N -L 9992:127.0.0.1:9990 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.com
    

    - If you are using Windows, you can use Putty:

    • Follow the steps described here
    • Before opening the connection. Go to Connection -> SSH -> Tunnels, enter the values below and click "Add" button:
      • Source port: "9992"
      • Destination: "localhost:9990"
    • Click Open

    3. While the tunnel is active you can connect to the web console at http://127.0.0.1:9992/console in your browser. The default login is:

    username/login: manager
    password: <user defined> (default: auto-generated more info)

    Take a look at this link about how to get your application password for BCH servers

     

    Native Installer

    To test your JBoss installation, first make sure that your Apache and JBoss servers are up and running.
     
    To do so, you can use the included "ctlscript.sh" utility. The installdir for Virtual Appliances and AMIs is "/opt/bitnami".
    cd your_installdir
    ./ctlscript.sh status
    

    If you need to start or stop the servers, you just have to follow the steps described here.

    You can access your JBoss Management Console by opening a browser and typing http://127.0.0.1:8080/console or http://127.0.0.1/console.

    The default root user is manager and the password is the same you set during the installation.

    In case you want to access JBoss Management Console from another machine:

    - Modify the JBoss standalone configuration file, installation_directory/jboss/standalone/configuration/standalone.xml, to allow access to the Management interface to other hosts.

    ...
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
    </interface>
    ...
    

    Finally, restart your servers to load the new configuration

    cd your_installdir
    ./ctlscript.sh restart
    

     

    Virtual Machine

    If you are running the Virtual Appliance in a secure environment, you can enable the management console by editing the installation_directory/jboss/standalone/configuration/standalone.xml, to allow access to the Management interface to other hosts.

    ...
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
    </interface>
    ...
    

    After that, allow the access to the Management Console port (9990) through the firewall.

    sudo ufw allow 9990
    

    Finally, restart your servers to load the new configurations:

    $ cd /opt/bitnami
    $ sudo ./ctlscript.sh restart
    

    Then you can access at the same URL with "/console", for example http://YOUR_IP/console

    The default root user is manager. For Virtual Appliances the password is bitnami

    Azure cloud

    By default JBoss Management Console is not accessible from the outside for security reasons. In order to access it, you can create an SSH tunnel to JBoss Console, sending your requests to your webserver from 127.0.0.1 (localhost).

    You should follow these steps to create the tunnel:

    1. Create the tunnel.

    - If you are in Linux or Mac you can run the following in a Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    $ ssh -N -L 9992:127.0.0.1:9990 your_azure_user@xxx.cloudapp.com
    

    - If you are using Windows, you can use Putty:

    • Follow the steps described here
    • Before opening the connection. Go to Connection -> SSH -> Tunnels, enter the values below and click "Add" button:
      • Source port: "9992"
      • Destination: "localhost:9990" 
    • Click Open

    2. While the tunnel is active you can connect to the Wildfly Management Console through http://127.0.0.1:9992:consolein your browser. The default login is:

    username/login: manager
    password: <user defined> (default: auto-generated more info)

    Tabs end


    How is Apache server connected with JBoss?

    Bitnami Stacks ship Apache server. There are different ways to connect these two servers. One of this is connecting through AJP protocol.

    The AJP Connector element represents a Connector component that communicates with a web connector via the AJP protocol. This is used for cases where you wish to invisibly integrate JBoss  into an Apache installation, and you want Apache to handle the static content contained in the web application, and/or utilize Apache's SSL processing.

    To make them work together, we enable the "mod_proxy.so" and "mod_proxy_ajp.so" modules in "installdir/apache2/conf/httpd.conf". Then we add the following lines in the "installdir/jboss/conf/jboss.conf" file:

    <Location /your_application_url>
      ProxyPass ajp://localhost:8009/your_application_url
    </Location>
    

    In BitNami Cloud Hosting JBoss AJP listens at port 8010 by default and a connector is configured to make the application accessible at http://xyz.bitnamiapp.com/jboss/.

    How to change the Java memory settings for JBoss?

    If you find an error similar to this, the problem is that you need to increase the Java memory settings for JBoss.

    java.lang.OutOfMemoryError: PermGen space
    

    You can find below the steps to increase Java settings on your side:

    Edit the /installdir/jboss/scripts/setenv.bat file and increase the Java settings. For example:

    SET JAVA_OPTS="%JAVA_OPTS% -XX:MaxPermSize=1024m -Xmx1024m" 
    

    Then it is necessary to uninstall and install the service again. Open a command prompt as administrator and run the following commands:

    > cd installdir
    > serviceinstall.bat UNINSTALL  (this command will close your current window)
    > serviceinstall.bat INSTALL
    

    How to debug errors?

    The main JBoss log file is created at /installdir/jboss/standalone/log/jboss.out.

    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    27502 view(s), 25 edit(s) and 11958 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments