You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jason Dillon (JIRA)" <de...@geronimo.apache.org> on 2006/08/08 09:17:13 UTC

[jira] Created: (GERONIMO-2299) Unpack assemblies for easier development/testing

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


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

        

[jira] Commented: (GERONIMO-2299) Unpack assemblies for easier development/testing

Posted by "Jason Dillon (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2299?page=comments#action_12428864 ] 
            
Jason Dillon commented on GERONIMO-2299:
----------------------------------------

So, Java sucks when it comes to file perms... even if we unzip or untgz these files, they will *NOT* have the correct permissions.

Not sure there is much we can do about this except for add an external script and/or shell out to execute that script from antrun... sucks.

> 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
>
> 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

        

[jira] Commented: (GERONIMO-2299) Unpack assemblies for easier development/testing

Posted by "Jason Dillon (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2299?page=comments#action_12432325 ] 
            
Jason Dillon commented on GERONIMO-2299:
----------------------------------------

Can probably use {{mvn geronimo:start}} for this... need to add a profile to the root pom with jetty and tomcat assemblies configured, then you can use the default... or pick on {{mvn geronimo:start -DassemblyId=tomcat}}.

> 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
>
> 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

        

[jira] Closed: (GERONIMO-2299) Unpack assemblies for easier development/testing

Posted by "Jason Dillon (JIRA)" <de...@geronimo.apache.org>.
     [ 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