You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Tina Li (JIRA)" <ji...@apache.org> on 2011/01/28 10:28:43 UTC

[jira] Commented: (GERONIMO-5793) OSGI Bundle "Stop" doesn't work according to Hot deployed "HelloWorld" osgi bundle sample

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

Tina Li commented on GERONIMO-5793:
-----------------------------------

About "HelloWorld" osgi sample, the class is like this:
Activator.java
# importorg.osgi.framework.BundleActivator;  
# importorg.osgi.framework.BundleContext;  
# publicclass Activator implements BundleActivator {  
# public void start(BundleContext context)throws Exception {  
# System.out.println("Helloworld");  
# }  
# public void stop(BundleContext context)throws Exception {  
# System.out.println("GoodbyeWorld");  
# }  
# } 
Hello World Bundle中的MANIFEST.MF文件
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: HelloWorld
Bundle-SymbolicName: com.javaworld.sample.HelloWorld
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.javaworld.sample.helloworld.Activator
Bundle-Vendor: JAVAWORLD
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.osgi.framework;version="1.3.0"

> OSGI Bundle "Stop" doesn't work according to Hot deployed "HelloWorld" osgi bundle sample
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5793
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5793
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 3.0
>         Environment: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101124_69295 (JIT enabled, AOT enabled)
>            Reporter: Tina Li
>         Attachments: cviewer.war, geronimo.log, HelloWorld.jar, picture1.JPG
>
>
> 1.Use Jan 28 build of Geronimo server
> 2.Start the server if it's not started
> 3.Use simple osgi bundle sample "HelloWorld"
> 4.Hot deploy "HelloWorld.jar",that is, put "HelloWorld.jar" into  file folder of <Geronimo_home>/hotbundles,then  "Hello World!!" info will show in server console ,if you undeploy this bundle,"Goodbye World!!" info will show in server console.
> 5.Deploy an application using command, e.g., deploy cview sample: deploy.bat deploy %SAMPLE_HOME%/applications/cviewer/target/cviewer.war 
> 6. Then "Hello World!!"  and "Goodbye World!!" info showed in commond console,showed in picture1.
> 7.Stop the "HelloWorld" bundle in Geronimo Console, the status of bundle became "resolved".
> 8.Then undeploy cview sample using command :deploy.bat undeploy com.ibm.wasce.samples/cviewer/2.1.1.5/car, then the  "Hello World!!"  and "Goodbye World!!" info showed again.The Stop of bundle doesn't work.
> 9.The "HelloWorld.jar", "cviewer.war" , picture1 and server.log are attached for detail.

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