Chapter 8. Test your Installation
After you have installed the JBoss Enterprise Application Platform, it is wise to perform a simple startup test to validate that there are no major problems with your Java VM/operating system combination. To test your installation, move to JBOSS_DIST/jboss-as/bin directory and execute the run.bat (for Windows) or run.sh (for Linux) script, as appropriate for your operating system. Your output should look like the following (accounting for installation directory differences) and contain no error or exception messages:
[vrenish@vinux bin]$ ./run.sh
=====================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/vrenish/jboss-eap-4.2/jboss-as
JAVA: /usr/java/jdk1.5.0_11/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1503m -Xmx1503m -Dsun.rmi.dgc.cli ent.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.prefer IPv4Stack=true
CLASSPATH: /home/vrenish/jboss-eap-4.2/jboss-as/bin/run.jar:/u sr/java/jdk1.5.0_11/lib/tools.jar
=====================================================
18:45:49,550 INFO [Server] Starting JBoss (MX MicroKernel)...
18:45:49,551 INFO [Server] Release ID: JBoss [EAP] 4.2.0.GA_CP01 (build: SVNTag =JBPAPP_4_2_0_GA_CP01
date=200708310047)
18:45:49,584 INFO [Server] Home Dir: /home/vrenish/jboss-eap-4.2/jboss-as
18:45:49,584 INFO [Server] Home URL: file:/home/vrenish/jboss-eap-4.2/jboss-as/
18:45:49,617 INFO [Server] Patch URL: null
18:45:49,617 INFO [Server] Server Name: production
18:45:49,685 INFO [Server] Server Home Dir:
/home/vrenish/jboss-eap-4.2/jboss-as/server/production
18:45:49,686 INFO [Server] Server Home URL:
file:/home/vrenish/jboss-eap-4.2/jboss-as/server/production/
18:45:49,686 INFO [Server] Server Log Dir:
/home/vrenish/jboss-eap-4.2/jboss-as/server/production/log
18:45:49,726 INFO [Server] Server Temp Dir:
/home/vrenish/jboss-eap-4.2/jboss-as/server/production/tmp
18:45:49,726 INFO [Server] Root Deployment Filename: jboss-service.xml
18:45:50,449 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
18:45:50,449 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_11-b03 ,Sun Microsystems Inc.
18:45:50,449 INFO [ServerInfo] OS-System: Linux 2.6.9-42.0.3.EL,i386
18:45:51,824 INFO [Server] Core system initialized
18:45:59,622 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 /
18:45:59,659 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour ce:jboss-log4j.xml
Note that there is no "Server Started" message shown at the console when the server is started using the production profile, which is the default profile used when no other is specified. This message may be observed in the server.log file located in the server/production/log subdirectory.
Now open http://localhost:8080 in your web browser. (Make sure you dont have anything else already on your machine using that port).[2] The contents of your page should look similar to this: Figure 8.1, “Test your Installation”.
You are now ready to use the JBoss Enterprise Application Platform. Refer to the Getting Started Guide for more information about the platform layout and example applications showcasing JBoss in action.
[2] Note that on some machines, the name localhost won’t resolve properly and you should use the local loopback address 127.0.0.1 instead.