[jboss-jira] [JBoss JIRA] (AS7-5951) Cannot reliably deploy OSGi host and fragment bundles on server restart

Paul Illingworth (JIRA) jira-events at lists.jboss.org
Tue Nov 20 09:33:21 EST 2012


    [ https://issues.jboss.org/browse/AS7-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735740#comment-12735740 ] 

Paul Illingworth edited comment on AS7-5951 at 11/20/12 9:32 AM:
-----------------------------------------------------------------

I have pulled ed2bc551a55ec6a8167a8657cbb5d8abc6e07748 from Github.

To my installation I have added pax-web and the felix web console so I can see what is going on. These are in the bundles folder structure and exposed as capabilities.

Adding in all my applications bundles into the deployments folder and starting up I am getting the same as before. Sometimes the fragments attach sometimes they don't. Deploying guice in an EAR doesn't improve matters.

Removing all my applications bundles and just having guice, guice-server and guice-persist jars in the deployments folder these correctly attached every time (6 out of 6). Wrapping up the three guice jars in an EAR and having just the EAR in the deployments folder again it started 6 out of 6 times.


                
      was (Author: pillingworth):
    I have pulled ed2bc551a55ec6a8167a8657cbb5d8abc6e07748 from Github.

To my installation I have added pax-web and the felix we console so I can see what is going on. These are in the bundles folder structure and exposed as capabilities.

Adding in all my applications bundles into the deployments folder and starting up I am getting the same as before. Sometimes the fragments attach sometimes they don't. Deploying guice in an EAR doesn't improve matters.

Removing all my applications bundles and just having guice, guice-server and guice-persist jars in the deployments folder these correctly attached every time (6 out of 6). Wrapping up the three guice jars in an EAR and having just the EAR in the deployments folder again it started 6 out of 6 times.


                  
> Cannot reliably deploy OSGi host and fragment bundles on server restart
> -----------------------------------------------------------------------
>
>                 Key: AS7-5951
>                 URL: https://issues.jboss.org/browse/AS7-5951
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 7.2.0.Alpha1
>         Environment: Windows XP SP3
>            Reporter: Paul Illingworth
>            Assignee: Thomas Diesler
>              Labels: OSGI
>             Fix For: 7.2.0.Alpha1
>
>
> If I deploy guice-3.0.0 (host bundle), guice-servlet (fragment) and guice-persist (fragment) into the "deployments" folder then the there is no guarantee the fragments will be installed before the host and so they may not be attached to the host when it resolves.
> This happens on starting the application server. Sometimes the fragments are attached, sometimes they aren't.
> If I install the bundles into the "bundles" folder structure and add capability entries to the standalone.xml file then it works as expected.
> I am using 7.2.0-Alpha1 built from cb72a7cd1669131b28a552f1dbf3c2582ad19813.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list