Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to wire proper bundle with my own bundle in wso2 app server
    text
    copied!<p>I am using wso2 Application Server 5.1.0. I have deployed my own bundle having name <strong>demo-service</strong> which contains import-package definition in its manifest as below:</p> <pre><code>&gt;Bundle-SymbolicName = demo-service Import-Package = javax.sql,org.apache.commons.dbcp;version="[1.4,2)" </code></pre> <p>I tried to diagnose the most popular "uses conflict" in OSGi world for my case and I found that <strong>commons-dbcp_1.4.0.wso2v1.jar</strong> and <strong>commons-dbcp-1.4.jar</strong> both were converted to OSGi bundle by container and exported their packages with version <strong>"0.0.0"</strong> which can be observed from the output below:</p> <pre><code>&gt;osgi&gt; packages org.apache.commons.dbcp org.apache.commons.dbcp; version="0.0.0"&lt;commons-dbcp_1.4.0.wso2v1 [49]&gt; compass_2.0.1.wso2v2 [60] imports org.wso2.carbon.core_4.1.0 [256] imports org.wso2.carbon.registry.core_4.1.0 [377] imports org.wso2.carbon.tenant.mgt_2.1.0 [434] imports synapse-commons_2.1.1.wso2v3 [528] imports synapse-core_2.1.1.wso2v3 [529] imports org.apache.commons.dbcp; version="0.0.0"&lt;commons_dbcp_1.4_1.0.0 [57]&gt; </code></pre> <p>According to the requirement of my demo-service bundle it's not able to find org.apache.commons.dbcp;version="[1.4,2)"</p> <p>Is there any way to export the packages of <strong>commons-dbcp-1.4.jar</strong> after it gets converted from <strong>non-osgi</strong> bundle to <strong>osgi</strong> bundle because I need to make sure that my demo-service bundle should wire with <strong>commons-dbcp-1.4.jar</strong>.. </p> <p>In brief, <strong>any version of thirdparty jar I put in WSO2_HOME\repository\components\lib folder container exports it with version="0.0.0" .. which discourages the main concept for classloading of OSGi</strong></p> <p>please suggest if any workaround is possible in this case .. :)</p> <p>Thanks ..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload