You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2007/03/11 01:42:09 UTC

[jira] Created: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
-------------------------------------------------------------------------------------

                 Key: GERONIMO-2951
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: startup/shutdown
    Affects Versions: 2.0-M3
            Reporter: David Jencks
         Assigned To: Jason Dillon
             Fix For: 2.0-beta1


To enable jpa runtime enhancement you need to start geronimo with a command line resembling

  java -javaagent:bin/jpa.jar -jar bin/server.jar

Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon closed GERONIMO-2951.
----------------------------------


Reports are that this works fine.

> startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
> -------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2951
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.0-M3
>            Reporter: David Jencks
>         Assigned To: Jason Dillon
>             Fix For: 2.0-beta1
>
>
> To enable jpa runtime enhancement you need to start geronimo with a command line resembling
>   java -javaagent:bin/jpa.jar -jar bin/server.jar
> Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480209 ] 

David Jencks commented on GERONIMO-2951:
----------------------------------------

Unfortunately AFAICT yes this is the only way.

On the other hand maybe this will get people to use jpa instead of cmp and pre-enhance their classes during the build.... in which case java -jar bin/server.jar --long would still work fine.

> startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
> -------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2951
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.0-M3
>            Reporter: David Jencks
>         Assigned To: Jason Dillon
>             Fix For: 2.0-beta1
>
>
> To enable jpa runtime enhancement you need to start geronimo with a command line resembling
>   java -javaagent:bin/jpa.jar -jar bin/server.jar
> Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480195 ] 

Jason Dillon commented on GERONIMO-2951:
----------------------------------------

Is this the only way to specify this configuration? Seems like this will kill the ability to simply {{java -jar bin/server.jar}} and will force folks to use the platform scripts...

> startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
> -------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2951
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.0-M3
>            Reporter: David Jencks
>         Assigned To: Jason Dillon
>             Fix For: 2.0-beta1
>
>
> To enable jpa runtime enhancement you need to start geronimo with a command line resembling
>   java -javaagent:bin/jpa.jar -jar bin/server.jar
> Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon resolved GERONIMO-2951.
------------------------------------

    Resolution: Fixed

I've updated the platform scripts and g-m-p to set {{-javaagent:bin/jpa.jar}} if that file exists.

Mostly untested... someone should verify this does the right thing.  Re-open this issue if there are any problems.

> startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
> -------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2951
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.0-M3
>            Reporter: David Jencks
>         Assigned To: Jason Dillon
>             Fix For: 2.0-beta1
>
>
> To enable jpa runtime enhancement you need to start geronimo with a command line resembling
>   java -javaagent:bin/jpa.jar -jar bin/server.jar
> Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2951) startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480290 ] 

Jason Dillon commented on GERONIMO-2951:
----------------------------------------

it does not look like jpa.jar makes it into bin for minimal or framework assemblies.  What happens when {{-javaagent: bin/jpa.jar}} is set, but {{bin/jpa.jar}} is missing?

Or do we added logic to the scripts to only set that flag if the {{bin/jpa.jar}} file exists?  Easy enough in /bin/sh... icky in windows batch hell though.

Would almost be easier to make a simple launcher JVM which can spawn the real JVM and set the required bits in platform independent ways... at the cost of another JVM though (even with a limited heap on her).  But this would simplify the platform launch scripts, and allow java -jar bin/server.jar to work and still have the server JVM executed with all of the right flags.  And potentially allow for hooks to restart the server if it crashes too... or spawn new server instances.

> startup scripts need to be able to include -javaagent:bin/jpa.jar in the command line
> -------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2951
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2951
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.0-M3
>            Reporter: David Jencks
>         Assigned To: Jason Dillon
>             Fix For: 2.0-beta1
>
>
> To enable jpa runtime enhancement you need to start geronimo with a command line resembling
>   java -javaagent:bin/jpa.jar -jar bin/server.jar
> Our startup scripts and maven stuff should either always include this or have a flag to include it.  This is also needed for ejb 2.1 cmp support in openejb3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.