...
Installing Java SE 5 or 6
Apache Geronimo v2v3.2 is Java EE 5 Certified0-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 JRE or JDK of Java SE 5 or Java SE 6, go to http://java.sun.com.
Info |
---|
It is possible to run Apache Geronimo v2.2 on the IBM 1.5.0/1.6.0 SDK and other implementations of Java that are certified as Java SE 5 or 6 compliant, but Geronimo is not tested or certified on those implementationsGeronimo 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. |
Downloading binary files
You can go to http://geronimo.apache.org/downloads.html to download the available packages (binary files and source code). You must select the installation file according to the platform that you plan to install and run Apache Geronimo on.
Geronimo v2v3.2 0-M1 is available in the following three assembly configurations:
- Java EE 5 : full Java EE 5 functionalityWeb Container releases : Java EE 6 web profile(not certified)
- Minimal (Little-G) : Web Container, Transaction, and Connector capabilities
- Framework : Geronimo kernel core functionality
In this section, we use Java EE 5 assembly configuration the release with Tomcat Web container for demonstration. For more information about the difference between these three assembly configurations, see Getting and installing Geronimo.
You can download the installation file with the compression format (.zip or .tar.gz) that is compatible with your operating system by clikcing clicking the link on the website. To install Apache Geronimo, extract the binary files to a new directory on your hard disk, for example, zd:/geronimo. In the rest of this section, this directory is referred to as <geronimo_home>.
...
- In the command-line interface, go to the <geronimo_home>/bin directory.
- Type one of the following commands:
geronimo run
start-server
gsh geronimo/start-server
These commands start the server within the command-line interface instead of in the background. When the server is started, you can see the following information.
No Format | ||
---|---|---|
| ||
Launching Geronimo Server... Booting Geronimo Kernel (in Java 1.5.0_13)... Module 1/65 org.apache.geronimo.framework/j2ee-system/2.2-SNAPSHOT/carUsing GERONIMO_HOME: D:\geronimo Using GERONIMO_TMPDIR: var/temp Using JRE_HOME: C:\java-i386-60\jre started in .000s Module 2/65 org.apache.geronimo.framework/jee-specs/2.2-SNAPSHOT/car ______ _ started in .000s Module 3/65 org.apache.geronimo.framework/rmi-naming/2.2-SNAPSHOT/car / ____/___ _________ ____ (_)____ ___ ____ started in/ / .180s Module 4/65 org.apache.geronimo.framework/j2ee-security/2.2-SNAPSHOT/car started in .126s Module 5/65 org.apache.geronimo.configs/j2ee-server/2.2-SNAPSHOT/car started in .031s Module 6/65 org.apache.geronimo.plugins.classloaders/geronimo-javaee-deployment_1.1MR3_spec/2.2-SNAPSHOT/car started in .000s Module 7/65 org.apache.geronimo.framework/xmlbeans/2.2-SNAPSHOT/car started in .000s Module 8/65 org.apache.geronimo.framework/plugin/2.2-SNAPSHOT/car started in .495s Module 9/65 org.apache.geronimo.framework/geronimo-gbean-deployer/2.2-SNAPSHOT/car started in .233s Module 10/65 org.apache.geronimo.framework/transformer-agent/2.2-SNAPSHOT/car started in .000s Module 11/65 org.apache.geronimo.configs/transaction/2.2-SNAPSHOT/car started in .254s Module 12/65 org.apache.geronimo.plugins.classloaders/xbean-finder/2.2-SNAPSHOT/car started in .000s Module 13/65 org.apache.geronimo.configs/derby/2.2-SNAPSHOT/car started in .000s Module 14/65 org.apache.geronimo.configs/system-database/2.2-SNAPSHOT/car started in 1.416s Module 15/65 org.apache.geronimo.plugins.classloaders/geronimo-schema-jee_5/2.2-SNAPSHOT/car started in .000s Module 16/65 org.apache.geronimo.configs/webservices-common/2.2-SNAPSHOT/car started in .000s Module 17/65 org.apache.geronimo.configs/activemq-broker/2.2-SNAPSHOT/car started in 1.182s Module 18/65 org.apache.geronimo.configs/openjpa/2.2-SNAPSHOT/car started in .004s Module 19/65 org.apache.geronimo.framework/server-security-config/2.2-SNAPSHOT/car started in .027s Module 20/65 org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car started in .805s Module 21/65 org.apache.geronimo.configs/axis/2.2-SNAPSHOT/car started in .113s Module 22/65 org.apache.geronimo.configs/axis2/2.2-SNAPSHOT/car started in .000s Module 23/65 org.apache.geronimo.configs/axis2-ejb/2.2-SNAPSHOT/car started in .000s Module 24/65 org.apache.geronimo.configs/j2ee-corba-yoko/2.2-SNAPSHOT/car started in .575s Module 25/65 org.apache.geronimo.configs/jasper/2.2-SNAPSHOT/car started in .004s Module 26/65 org.apache.geronimo.configs/tomcat6/2.2-SNAPSHOT/car started in 2.167s Module 27/65 org.apache.geronimo.configs/aspectj/2.2-SNAPSHOT/car started in .014s Module 28/65 org.apache.geronimo.configs/clustering/2.2-SNAPSHOT/car started in .055s Module 29/65 org.apache.geronimo.configs/tomcat6-no-ha/2.2-SNAPSHOT/car started in .000s Module 30/65 org.apache.geronimo.configs/j2ee-deployer/2.2-SNAPSHOT/car started in .179s Module 31/65 org.apache.geronimo.configs/connector-deployer/2.2-SNAPSHOT/car started in .073s Module 32/65 org.apache.geronimo.configs/tomcat6-deployer/2.2-SNAPSHOT/car started in .072s Module 33/65 org.apache.geronimo.configs/tomcat6-clustering-builder-wadi/2.2-SNAPSHOT/car started in .956s Module 34/65 org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/car started in .253s Module 35/65 org.apache.geronimo.configs/javamail/2.2-SNAPSHOT/car started in .023s Module 36/65 org.apache.geronimo.configs/jasper-deployer/2.2-SNAPSHOT/car started in .016s Module 37/65 org.apache.geronimo.configs/myfaces/2.2-SNAPSHOT/car started in .013s Module 38/65 org.apache.geronimo.configs/myfaces-deployer/2.2-SNAPSHOT/car started in .015s Module 39/65 org.apache.geronimo.configs/openejb-deployer/2.2-SNAPSHOT/car started in .077s Module 40/65 org.apache.geronimo.configs/openejb-corba-deployer/2.2-SNAPSHOT/car started in .097s Module 41/65 org.apache.geronimo.configs/persistence-jpa10-deployer/2.2-SNAPSHOT/car started in .053s Module 42/65 org.apache.geronimo.configs/axis-deployer/2.2-SNAPSHOT/car started in .052s Module 43/65 org.apache.geronimo.configs/jaxws-deployer/2.2-SNAPSHOT/car started in .000s Module 44/65 org.apache.geronimo.configs/axis2-deployer/2.2-SNAPSHOT/car started in .043s Module 45/65 org.apache.geronimo.configs/jaxws-ejb-deployer/2.2-SNAPSHOT__ / _ \/ ___/ __ \/ __ \/ // __ `__ \/ __ \ / /_/ // __/ / / /_/ / / / / // / / / / / /_/ / \____/ \___/_/ \____/_/ /_/_//_/ /_/ /_/\____/ Apache Geronimo (3.0-M1) Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Geronimo. geronimo> Booting Geronimo Kernel (in Java 1.6.0)... Module 1/36 org.apache.geronimo.framework/j2ee-system/3.0-M1/car started in .000s Module 46 2/6536 org.apache.geronimo.configsframework/axis2rmi-ejb-deployernaming/23.20-SNAPSHOTM1/car started in .224s Module 3/36 org.apache.geronimo.framework/plugin/3.0-M1/car started in .041s146s Module 47 4/6536 org.apache.geronimo.configsframework/clientj2ee-deployersecurity/23.20-SNAPSHOTM1/car started in .250s Module 5/36 org.apache.geronimo.framework/server-security-config/3.0-M1/car started in .026s Module 6/36 org.apache.geronimo.framework/geronimo-gbean-deployer/3.0-M1/car started in .051s206s Module 48 7/6536 org.apache.geronimo.configs/hotj2ee-deployerserver/23.20-SNAPSHOTM1/car started in .026s Module 8/36 org.apache.geronimo.configs/j2ee-deployer/3.0-M1/car started in .303s092s Module 499/6536 org.apache.geronimo.configs/welcometransaction-tomcat1_6/23.20-SNAPSHOTM1/car started in .212s Module 10/36 org.apache.geronimo.configs/connector-deployer-1_6/3.0-M1/car started in .150s083s Module 5011/6536 org.apache.geronimo.configs/springjasper/23.20-SNAPSHOTM1/car started in .022s Module 12/36 org.apache.geronimo.configs/tomcat7/3.0-M1/car started in 1.000s175s Module 5113/6536 org.apache.geronimo.pluginsconfigs/plutotomcat7-supportdeployer/23.20-SNAPSHOTM1/car started in .028s Module 14/36 org.apache.geronimo.configs/web-extender/3.0-M1/car started in .209s014s Module 5215/6536 org.apache.geronimo.pluginsconfigs/consolewelcome-tomcat/23.20-SNAPSHOTM1/car started in .541s Module 16/36 org.apache.geronimo.configs/remote-deploy-tomcat/3.0-M1/car started in 2 .503s431s Module 5317/6536 org.apache.geronimo.pluginsconfigs/pluginjasper-console-tomcatdeployer/23.20-SNAPSHOTM1/car started in .315s007s Module 5418/6536 org.apache.geronimo.plugins/sysdb-console-tomcat/2.2-SNAPSHOT/car configs/myfaces/3.0-M1/car started in .377s016s Module 5519/6536 org.apache.geronimo.pluginsconfigs/activemq-consolemyfaces-tomcatdeployer/23.20-SNAPSHOTM1/car started in .559s014s Module 5620/6536 org.apache.geronimo.configs/remotearies-deploy-tomcatdeployer/23.20-SNAPSHOTM1/car started in .009s Module 21/36 org.apache.geronimo.configs/persistence-jpa20-deployer/3.0-M1/car started in .066s026s Module 5722/6536 org.apache.geronimo.configs/uddi-tomcatopenjpa2/23.20-SNAPSHOTM1/car started in .004s Module 23/36 org.apache.geronimo.configs/system-database/3.0-M1/car started in 8.477s714s Module 5824/6536 org.apache.geronimo.configs/cadojo-helper-tomcat/23.20-SNAPSHOTM1/car started in .077s Module 25/36 org.apache.geronimo.plugins/pluto-support/3.0-M1/car started in .103s005s Module 5926/6536 org.apache.geronimo.configsplugins/sharedlibconsole-tomcat/23.20-SNAPSHOTM1/car started in .872s Module 27/36 org.apache.geronimo.plugins/plugin-console-tomcat/3.0-M1/car started in .007s521s Module 6028/6536 org.apache.geronimo.configs/mejbclient-deployer/23.20-SNAPSHOTM1/car started in .029s Module 29/36 org.apache.geronimo.configs/webservices-common/3.0-M1/car started in .242s000s Module 6130/6536 org.apache.geronimo.configs/concurrentopenejb/23.20-SNAPSHOTM1/car started in .120s674s Module 6231/6536 org.apache.geronimo.configs/concurrentopenejb-deployer/23.20-SNAPSHOTM1/car started in .029s Module 32/36 org.apache.geronimo.configs/openejb-corba-deployer/3.0-M1/car started in .021s035s Module 6333/6536 org.apache.geronimo.frameworkconfigs/gshellj2ee-corba-frameworkyoko/23.20-SNAPSHOTM1/car started in .308s Module 34/36 org.apache.geronimo.configs/activemq-broker-blueprint/3.0-M1/car started in .000s877s Module 6435/6536 org.apache.geronimo.frameworkconfigs/gshellactivemq-geronimora/23.20-SNAPSHOTM1/car started in .000s240s Module 6536/6536 org.apache.geronimo.frameworkconfigs/gshell-remotejavamail/23.20-SNAPSHOTM1/car started in .000s026s Startup completed in 1723.632s324s seconds Listening on Ports: 1050 127.0.0.1 CORBA Naming Service 1099 0127.0.0.01 RMI Naming 1527 0127.0.0.01 Derby Connector 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 Adapter 80804201 0127.0.0.01 Tomcat Connector HTTP BIO HTTPOpenEJB Daemon 84434203 0127.0.0.01 OpenEJB Daemon Tomcat Connector HTTPS BIO HTTPS6142 239.255.3.2 OpenEJB Daemon 99996882 0127.0.0.01 JMXOpenEJB RemotingORB ConnectorAdapter 61613 8009 0127.0.0.01 Tomcat ActiveMQConnector TransportAJP ConnectorTomcatAJPConnector 616168080 0127.0.0.01 ActiveMQTomcat Transport Connector HTTP Started Application Modules:BIO TomcatWebConnector EAR:8443 org127.apache0.geronimo.configs/uddi-tomcat/2.2-SNAPSHOT/car0.1 Tomcat Connector HTTPS BIO TomcatWebSSLConnector EAR:9999 org127.apache0.geronimo.plugins/console-tomcat/2.2-SNAPSHOT/car 0.1 JMX JAR: org.apache.geronimo.configs/mejb/2.2-SNAPSHOT/carRemoting Connector Started Application RAR: org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/carModules: RAREAR: org.apache.geronimo.configsplugins/systemconsole-databasetomcat/23.20-SNAPSHOTM1/car WARRAR: org.apache.geronimo.configs/caactivemq-helper-tomcatra/23.20-SNAPSHOTM1/car WARRAR: org.apache.geronimo.configs/remotesystem-deploy-tomcatdatabase/23.20-SNAPSHOTM1/car WAR: org.apache.geronimo.configs/welcomedojo-tomcat/23.20-SNAPSHOTM1/car WAR: org.apache.geronimo.pluginsconfigs/activemqremote-consoledeploy-tomcat/23.20-SNAPSHOTM1/car WAR: org.apache.geronimo.pluginsconfigs/plugin-consolewelcome-tomcat/23.20-SNAPSHOTM1/car WAR: org.apache.geronimo.plugins/sysdbplugin-console-tomcat/23.20-SNAPSHOTM1/car Web Applications: / /CAHelper /activemq /console /console-base /juddidojo /plugin /remote-deploy /system-database-deploy Geronimo Application Server started Geronimo Server started in 0:00:20.803 |
To verify that the Apache Geronimo server is running, go to http://localhost:8080/console to open the Geronimo administrative console. The Geronimo administrative console is the first application you can test. It is deployed in the standard, full Java EE certified distribution of Apache Geronimo.
...
- Create a directory named WEB-INF in the <app_home> directory.
- In the <app_home>/WEB-INF directory, create a plain text file named geronimo-web.xml, and then copy the following code to this file.
Code Block xml xml borderStyle solid title Geronimo deployment plan geronimo-web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> <environment> <moduleId> <groupId>org.apache.geronimo.samples</groupId> <artifactId>HelloWorldApp</artifactId> <version>2<version>1.2<0</version> <type>war</type> </moduleId> </environment> <context-root>/hello</context-root> </web-app>
- In the <app_home>/WEB-INF directory, create a plain text file named web.xml, and then copy the following code to this file.
Code Block xml xml borderStyle solid title web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <welcome-file-list> <welcome-file>HelloWorld.jsp</welcome-file> </welcome-file-list> </web-app>
Deploying and testing the application
...
No Format | ||
---|---|---|
| ||
D:\geronimo-tomcat6-javaee5-2.2\bin>deploy --user system --password manager deploy --inPlace \HelloWorld Using GERONIMO_BASE: D:\geronimo-tomcat6-javaee5-2.2 Using GERONIMO_HOME: D:\geronimo-tomcat6-javaee5-2.2 Using GERONIMO_TMPDIR: var\temp Using JRE_HOME: C:\Java\jdk1.5.0_06\java-i386-60\jre Deployed sample.applications/HelloWorldApp/21.20/war @ /hello |
To test the application, go to http://localhost:8080/hello.
...