[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-204) Failure in Bundle.start() uninstalls the bundle

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Nov 16 02:48:43 EST 2009


    [ https://jira.jboss.org/jira/browse/JBOSGI-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12494772#action_12494772 ] 

Thomas Diesler commented on JBOSGI-204:
---------------------------------------

The MC Framework incorrectly uninstalls the bundle if there is a failure in bundle.start()

The controller context reached its required stage DESCRIBED after bundle install. A subsequent call to bundle.start() is supposed to transition to stages CLASSLOADER and then INSTALLED, which corresponds to the Bundle states RESOLVED and ACTIVE respectively.

If the transition to INSTALLED fails, the controller context gets undeployed, which causes the bundle to transition to UNINSTALLED.

The desired behaviour is:

* on fail to resolve: remain in state INSTALLED
* on fail to start: remain in state RESOLVED 

Running org.jboss.test.osgi.jbosgi99.OSGI99TestCase
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.611 sec <<< FAILURE!

Bundle RESOLVED expected:<[RESOLV]ED> but was:<[UNINSTALL]ED>
at org.junit.Assert.assertEquals(Assert.java:124)
at org.jboss.test.osgi.jbosgi99.OSGI99TestCase.assertBundleState(OSGI99TestCase.java:130)
at org.jboss.test.osgi.jbosgi99.OSGI99TestCase.testFailOnStart(OSGI99TestCase.java:117) 

> Failure in Bundle.start() uninstalls the bundle
> -----------------------------------------------
>
>                 Key: JBOSGI-204
>                 URL: https://jira.jboss.org/jira/browse/JBOSGI-204
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core Framework
>            Reporter: Thomas Diesler
>             Fix For:  JBossOSGi 1.0.x
>
>
> mvn -Dtarget.container=jboss600 -Dtest=WebAppNegativeTestCase test
> Caused by: org.jboss.osgi.deployment.interceptor.LifecycleInterceptorException: Cannot obtain web.xml from: vfszip:/tmp/install978383392607557245.jar/
> 	at org.jboss.osgi.framework.service.internal.WebXMLVerifierInterceptor$1.invoke(WebXMLVerifierInterceptor.java:68)
> 	at org.jboss.osgi.deployment.interceptor.AbstractLifecycleInterceptorService.handleStateChange(AbstractLifecycleInterceptorService.java:272)
> 	at org.jboss.osgi.framework.service.internal.LifecycleInterceptorServiceImpl.handleStateChange(LifecycleInterceptorServiceImpl.java:102)
> 	at org.jboss.osgi.framework.bundle.AbstractBundleState.changeState(AbstractBundleState.java:692)
> 	at org.jboss.osgi.framework.bundle.OSGiBundleState.startInternal(OSGiBundleState.java:285)
> 	at org.jboss.osgi.framework.deployers.OSGiBundleActivatorDeployer.deploy(OSGiBundleActivatorDeployer.java:49)
> 	... 41 more
> 10:25:01,031 INFO  [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Bundle UNINSTALLED: Bundle{example-webapp-negative:0.0.0}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list