Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Before you install Geronimo, you must install the Java Runtime Environment (JRE) or Java Development Kit (JDK). JDK is only required for wsgen tools.

Installing Java SE

...

6

Apache Geronimo v3.0-M1 is a non-certified milestone release containing some Java EE 6 features and support for the OSGi programming model. For more information about how to download and install the latest Java SE 6 JRE or JDK of Java SE 5 or Java SE 6, go to http://java.sun.com. here.

Info

Geronimo 3.0-M1 is a milestone release and should only be used for learning about the upcoming Geronimo 3.0 release with Java EE 6 and OSGi/Aries support and not for any type of production usage.

...

  1. In the command-line interface, go to the <geronimo_home>/bin directory.
  2. Type one of the following commandscommand:
    • ./geronimo run
    • startup

These commands start The command starts the server within the command-line interface instead of in the background. When the server is started, you can see the following information.

...

  1. Create a new directory to hold all the application related files. In the rest of this section, this directory is referred to as <app_home>.
  2. In the <app_home> directory, create a plain text file named HelloWorld.jsp, and then copy the following code to this file.

Note: To save time, you can download HelloWorld.war file from this page.

Code Block
javahtmljava
html
borderStylesolid
titleHelloWorld.jsp
<html>
   <head>
      <jsp:useBean id="datetime" class="java.util.Date"/>
    <title>
     <title>
             Basic HelloWorld JSP
         </title>
   </head>
   <body bgcolor="#1276C2">
      <h1>
         <font face="tahoma" color="white">
                 Hello world from GERONIMO!
         </font>
       </h1>
          <font face="tahoma" color="white">on ${datetime}</font>
      </body>
</html>

To deploy an application, you must create a Geronimo specific deployment plan. To create the deployment plan for the sample application:

...

No Format
borderStylesolid
deploy --user system --password manager deploy --inPlace <app_home>

Note: As a quick alternative, the three files in this Hello World sample have been packaged into HelloWorld.war and attached to this page. To deploy it:

  1. Download HelloWorld.war to <war_home> on your system.
  2. Deploy it via:
No Format
borderStylesolid

deploy --user system --password manager deploy <war_home>/HelloWorld.war

When the application is successfully deployed, you can see the following message:

...