geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6381) Breakpoint failed after hotswap classes
Date Tue, 21 Aug 2012 17:59:38 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438913#comment-13438913
] 

Jarek Gawor commented on GERONIMO-6381:
---------------------------------------

The basic problem here seems like Eclipse does HCR in debug mode then Geronimo tries to do
its own HCR but when Geronimo does it the breakpoint information is lost by the JVM. 

I think the patch has the right idea (to disable Geronimo HCR) in this case but we don't want
to disable Geronimo HCR in non-debug mode. So, in revision 1375681 I exposed a new function
called updateEBAArchive() which can be used to only update the contents of a bundle in an
OSGi application. That way GEP can use that function to update the archive when Eclipse HCR
is done. Otherwise, in non-debug mode GEP will continue to call hotSwapEBAContent() to perform
Geronimo HCR. The related changes in GEP were committed in revision 1375692.

                
> Breakpoint failed after hotswap classes
> ---------------------------------------
>
>                 Key: GERONIMO-6381
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6381
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: viola.lu
>         Attachments: EBA2_1.0.0.201208201742.eba, GERONIMO-6381.patch
>
>
> 1.Install geronimo develop tool and OSGI TOOL in eclipse
> 2.Define a geronimo server, right-click defined server, click "Open", check "update osgi
modified bundle"to enable hotswap classes function.
> 3. Right-click defined server, click " debug" to starting server in debug mode. 
> 4.Develop an EBA application containing one WAB, one regular bundle. WAB calles one static
method in the regular bundle. Set one breakpoint in WAB servlet, and the bundle called static
method.
> 5. right-click defined server , click "add and remove", add your EBA to geronimo
> 6. Access the WAB URL, for example: http://localhost:8080/w2/TestServlet, it will go
into debug breakpoint. Enter resume or F8 button to the end.
> 7. Update wab servlet class or bundle class, the server will republish , change its status
from republish to synchronized, once synchronized, reaccess url: http://localhost:8080/w2/TestServlet,
you can't redebug into the breakpoint.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message