Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added other ways to start a server

...

With Apache Geronimo already installed, open a command line console and change directory to <geronimo_home>/bin and run one of the following commandcommands:

geronimo run
start-server
gsh geronimo/start-server

This will start This script starts the server on within the same terminal you run the commandexisting terminal, instead of as a background process. Once the server is started you should see a screen similar to this one.

No Format
bgColor#000000
borderStylesolid

D:\geronimo-tomcat6-javaee5-2.1\bin>geronimo run
Using GERONIMO_BASE:   D:\geronimo-tomcat6-javaee5-2.1
Using GERONIMO_HOME:   D:\geronimo-tomcat6-javaee5-2.1
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        C:\Java\jdk1.5.0_06\jre
Booting Geronimo Kernel (in Java 1.5.0_06)...
Starting Geronimo Application Server v2.1
[****************************************] 100%  46s Startup complete
  Listening on Ports:
       0 0.0.0.0   Derby Connector
    1050 127.0.0.1 CORBA Naming Service
    1099 0.0.0.0   RMI Naming
    2001 127.0.0.1 OpenEJB ORB Adapter
    4201 0.0.0.0   OpenEJB Daemon
    6882 127.0.0.1 OpenEJB ORB Adapter
    8009 0.0.0.0   Tomcat Connector AJP AJP
    8080 0.0.0.0   Tomcat Connector HTTP BIO HTTP
    8443 0.0.0.0   Tomcat Connector HTTPS BIO HTTPS
    9999 0.0.0.0   JMX Remoting Connector
   61613 0.0.0.0   ActiveMQ Transport Connector
   61616 0.0.0.0   ActiveMQ Transport Connector

  Started Application Modules:
    EAR: org.apache.geronimo.configs/uddi-tomcat/2.1/car
    EAR: org.apache.geronimo.plugins/agent/2.1/car
    EAR: org.apache.geronimo.plugins/console-tomcat/2.1/car
    EAR: org.apache.geronimo.plugins/mconsole-tomcat/2.1/car
    JAR: org.apache.geronimo.configs/mejb/2.1/car
    RAR: org.apache.geronimo.configs/activemq-ra/2.1/car
    RAR: org.apache.geronimo.configs/system-database/2.1/car
    RAR: org.apache.geronimo.plugins/agent-ds/2.1/car
    RAR: org.apache.geronimo.plugins/mconsole-ds/2.1/car
    WAR: org.apache.geronimo.configs/ca-helper-tomcat/2.1/car
    WAR: org.apache.geronimo.configs/dojo-legacy-tomcat/2.1/car
    WAR: org.apache.geronimo.configs/dojo-tomcat/2.1/car
    WAR: org.apache.geronimo.configs/remote-deploy-tomcat/2.1/car
    WAR: org.apache.geronimo.configs/welcome-tomcat/2.1/car
    WAR: org.apache.geronimo.plugins/activemq-console-tomcat/2.1/car
    WAR: org.apache.geronimo.plugins/debugviews-console-tomcat/2.1/car
    WAR: org.apache.geronimo.plugins/plancreator-console-tomcat/2.1/car
    WAR: org.apache.geronimo.plugins/plugin-console-tomcat/2.1/car
    WAR: org.apache.geronimo.plugins/sysdb-console-tomcat/2.1/car

  Web Applications:
    /
    /CAHelper
    /activemq
    /console
    /console-base
    /debug-views
    /dojo
    /dojo/0.4
    /juddi
    /monitoring
    /plan-creator
    /plugin
    /remote-deploy
    /system-database

Geronimo Application Server started

...

http://localhost:8080/hello

Stop the server

In the terminal used to start the server, press CTRL+C initiate a server shutdown.

Summary

This article showed you how simple is to have Apache Geronimo up and running. The overall time for getting the server running should be less than five minutes if you have the prerequisites already installed. Additionally, this article also showed you how to create, deploy and test a very simple JSP in less than five minutes.