How to start/stop the JBoss server?
You can use the "ctlscript.sh" utility which is in the installation directory.
$ ./ctlscript.sh start jboss
On Windows: Start -> BitNami application Stack -> Services -> Start servers
You can also open the Windows Services panel and check the "applicationJBoss" service.
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?
The default port to access to the Web Application Console is 9990 by default.
If you are running the Virtual Appliance in a secure environment, you can open this port in the firewall. Check how to enable a port in the Virtual Appliances firewall.
You can create an encrypted tunnel using SSH.
1. Get your SSH private key if you don't have it already. More info in here.
2. Create the tunnel.
- If you are in Linux or Mac you can run the following in a console in your local machine:
$ ssh -v -N -L 9992:127.0.0.1:9990 -i bitnami-hosting.pem firstname.lastname@example.org
- 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:
o Source port: "9992"
o Destination: "localhost:9990"
* Click Open
3. While the tunnel is active you can connect to the JBoss Console at http://127.0.0.1:9992
In BitNami Cloud Hosting the default credentials to access the console are:
password: <user defined> (default: auto-generated more info)
How to connect Apache server with JBoss?
Some Stacks like Tomcat Stack or JBoss Stack ships 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.
You should enable the "mod_proxy.so" and "mod_proxy_ajp.so" modules in "installdir/apache2/conf/httpd.conf" and add the following lines in the same 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 in /opt/bitnami/jboss/conf/jboss.conf 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.