[ http://issues.apache.org/jira/browse/GERONIMO-2299?page=all ]
Jason Dillon closed GERONIMO-2299.
----------------------------------
Fix Version/s: 1.2
Resolution: Fixed
I've added default assembly configuration for use with {{mvn geronimo:start}}
(and {{mvn geronimo:stop}}).
Assembly ids:
* jetty
* jetty-minimal
* tomcat
* tomcat-minimal
Defaults to jetty.
To use, first build the tree:
{noformat}
mvn install
{noformat}
And then use the {{geronimo:start}} goal:
{noformat}
mvn geronimo:start
{noformat}
This should result in the {{geronimo-jetty-j2ee}} assembly being installed,
extracted and started:
{noformat}
[INFO] [geronimo:start]
[INFO] Starting Geronimo server...
[INFO] Using assembly configuration:
org.apache.geronimo.assemblies:geronimo-jetty-j2ee:bin:1.2-SNAPSHOT:zip
[INFO] Waiting for Geronimo server...
[INFO] Booting Geronimo Kernel (in Java 1.4.2_09)...
[INFO] Module 1/20 org.apache.geronimo.configs/rmi-naming/1.2-SNAPSHOT/car
started in .398s
[INFO] Module 2/20 org.apache.geronimo.configs/j2ee-server/1.2-SNAPSHOT/car
started in 1.084s
[INFO] Module 3/20 org.apache.geronimo.configs/j2ee-security/1.2-SNAPSHOT/car
started in .684s
[INFO] Module 4/20 org.apache.geronimo.configs/axis/1.2-SNAPSHOT/car
started in .101s
...
[INFO] Geronimo Application Server started
{noformat}
Or to run {{geronimo-tomcat-j2ee}:
{noformat}
mvn geronimo:start -DassemblyId=tomcat
{noformat}
h3. NOTE
The logic to determine if the server has fully started is lossy... pending some
better hooks in the JMX tree to determine when this is actually done. Also,
the minimal assemblies may never ack that the server has started because of no
welcome app.
Due to this you may see logs like:
{noformat}
[INFO] Geronimo server started
[INFO] Waiting for Geronimo server to shutdown...
{noformat}
But the server has not really started until you see the port, module, webapp
list and:
{noformat}
[INFO] Geronimo Application Server started
{noformat}
Hopefully this will be fixed soon.
> Unpack assemblies for easier development/testing
> ------------------------------------------------
>
> Key: GERONIMO-2299
> URL: http://issues.apache.org/jira/browse/GERONIMO-2299
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: buildsystem
> Affects Versions: 1.2
> Reporter: Jason Dillon
> Assigned To: Jason Dillon
> Priority: Minor
> Fix For: 1.2
>
>
> Should unpack the assemblies (or a given assembly) automatically to help ease
> development.
> Probably just need to add a new profile that will use antrun to unzip the
> archive.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira