Hi,
I was following the tutorials[1], [2] regarding OSGi bundle installing and
uninstalling.
Just out of curiosity I uninstalled and reinstalled the same bundle.
before uninstallation...
154 ACTIVE tomcat-ha_7.0.34.wso2v1
155 ACTIVE tribes_7.0.34.wso2v1
156 ACTIVE woden_1.0.0.M8-wso2v1
157 ACTIVE wsdl4j_1.6.2.wso2v4
158 ACTIVE wss4j_1.5.11.wso2v6
159 ACTIVE xmlbeans_2.3.0.wso2v1
160 ACTIVE org.wso2.carbon.student.mgt_4.2.0
Uninstalled...
osgi> uninstall 160
Bundle status...
154 ACTIVE tomcat-ha_7.0.34.wso2v1
155 ACTIVE tribes_7.0.34.wso2v1
156 ACTIVE woden_1.0.0.M8-wso2v1
157 ACTIVE wsdl4j_1.6.2.wso2v4
158 ACTIVE wss4j_1.5.11.wso2v6
159 ACTIVE xmlbeans_2.3.0.wso2v1
Reinstallation...
osgi> install file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
Bundle id is 161
ClassLoader null
RegisteredServices null
ServicesInUse null
Fragments null
LoaderProxy org.wso2.carbon.student.mgt; bundle-version="4.2.0"
ProtectionDomain null
Key 161
Location file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
State 2
Bundle 161|Installed | 1|org.wso2.carbon.student.mgt
(4.2.0)
BundleContext null
BundleId 161
SymbolicName org.wso2.carbon.student.mgt
BundleData org.wso2.carbon.student.mgt_4.2.0
KeyHashCode 161
StateChanging null
BundleDescription org.wso2.carbon.student.mgt_4.2.0
Framework
org.eclipse.osgi.framework.internal.core.Framework@371ce84e
ResolutionFailureException org.osgi.framework.BundleException: The bundle
"org.wso2.carbon.student.mgt_4.2.0 [161]" could not be resolved
Revisions [org.wso2.carbon.student.mgt_4.2.0]
StartLevel 1
Version 4.2.0
LastModified 1408949755925
Headers Bnd-LastModified = 1408938710105
Build-Jdk = 1.7.0_67
Built-By = suhanr
Bundle-ManifestVersion = 2
Bundle-Name = org.wso2.carbon.student.mgt
Bundle-SymbolicName = org.wso2.carbon.student.mgt
Bundle-Version = 4.2.0
Created-By = Apache Maven Bundle Plugin
Export-Package =
org.wso2.carbon.student.mgt;version="4.2.0";uses:="org.wso2.carbon.student.mgt.data",org.wso2.carbon.student.mgt.data;version="4.2.0"
Manifest-Version = 1.0
Require-Capability = osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.5))"
Tool = Bnd-2.3.0.201405100607
Bundle status...
154 ACTIVE tomcat-ha_7.0.34.wso2v1
155 ACTIVE tribes_7.0.34.wso2v1
156 ACTIVE woden_1.0.0.M8-wso2v1
157 ACTIVE wsdl4j_1.6.2.wso2v4
158 ACTIVE wss4j_1.5.11.wso2v6
159 ACTIVE xmlbeans_2.3.0.wso2v1
161 INSTALLED org.wso2.carbon.student.mgt_4.2.0
Start the bundle...
osgi> start 161
osgi> [2014-08-25 12:26:37,587] INFO
{org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2
service: StudentManager {super-tenant}
Bundle status...
154 ACTIVE tomcat-ha_7.0.34.wso2v1
155 ACTIVE tribes_7.0.34.wso2v1
156 ACTIVE woden_1.0.0.M8-wso2v1
157 ACTIVE wsdl4j_1.6.2.wso2v4
158 ACTIVE wss4j_1.5.11.wso2v6
159 ACTIVE xmlbeans_2.3.0.wso2v1
161 ACTIVE org.wso2.carbon.student.mgt_4.2.0
Each time I perform the operation, I'm loosing the previous bundle ID and
new ID is assigned again.
154 ACTIVE tomcat-ha_7.0.34.wso2v1
155 ACTIVE tribes_7.0.34.wso2v1
156 ACTIVE woden_1.0.0.M8-wso2v1
157 ACTIVE wsdl4j_1.6.2.wso2v4
158 ACTIVE wss4j_1.5.11.wso2v6
159 ACTIVE xmlbeans_2.3.0.wso2v1
162 INSTALLED org.wso2.carbon.student.mgt_4.2.0
Is this the expected behaviour? Is it acceptable to have gaps between
bundle IDs?
Please note that this has no impact to the workflow, just an observation.
[1] http://wso2.com/library/articles/getting-started-wso2-carbon/#carbon
[2]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
Thanks and Regards,
Suhan
--
Suhan Dharmasuriya
Software Engineer - Test Automation
*WSO2, Inc. *
lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev