You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2011/05/04 22:53:03 UTC

[jira] [Commented] (GERONIMO-5764) Support Bundles Deployment in deployment command line

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

Jarek Gawor commented on GERONIMO-5764:
---------------------------------------

I believe we have ran into another problem with this patch / approach. When deploying a bundle with its own bundle activator, the activator will invoked during the deployment process. Here are the stack traces to demonstrate the problem:

java.lang.Exception: Starting - Printing the Test Exception Trace from bundle
                     at osgi_test.Activator.start(Activator.java:13)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
                     at java.security.AccessController.doPrivileged(Native Method)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
                     at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
                     at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
                     at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:208)
                     at org.apache.geronimo.deployment.DeploymentContext.initializeConfiguration(DeploymentContext.java:189)
                     at org.apache.geronimo.osgibundle.builder.OSGiBundleConfigBuilder.buildConfiguration(OSGiBundleConfigBuilder.java:130)
                     at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:250)
                     at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)


java.lang.Exception: Stopping the OSGi bundle
                     at osgi_test.Activator.stop(Activator.java:23)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:843)
                     at java.security.AccessController.doPrivileged(Native Method)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:836)
                     at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:501)
                     at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstallWorker(AbstractBundle.java:788)
                     at org.eclipse.osgi.framework.internal.core.AbstractBundle.uninstall(AbstractBundle.java:768)
                     at org.apache.geronimo.deployment.DeploymentContext.close(DeploymentContext.java:513)
                     at org.apache.geronimo.deployment.Deployer.install(Deployer.java:395)
                     at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:265)
                     at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)

java.lang.Exception: Starting - Printing the Test Exception Trace from bundle
                     at osgi_test.Activator.start(Activator.java:13)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
                     at java.security.AccessController.doPrivileged(Native Method)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
                     at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
                     at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
                     at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
                     at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:304)
                     at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:282)
                     at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:126)


> Support Bundles Deployment in deployment command line
> -----------------------------------------------------
>
>                 Key: GERONIMO-5764
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5764
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: commands
>    Affects Versions: 3.0-M2, 3.0
>            Reporter: viola.lu
>            Assignee: Rex Wang
>            Priority: Minor
>             Fix For: 3.0-M2, 3.0
>
>         Attachments: GERONIMO-5764.patch
>
>
> Now we have to deploy a regular bundle via karaf shell: osgi:install file:/[bunlde_path], not deployer command line, so open this jira to track this feature enablement.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira