Note that there are some explanatory texts on larger screens.

plurals
  1. POThrift service as a bundle in OSGI
    primarykey
    data
    text
    <p>I was creating a simple Calculator service in thrift as a bundle in OSGI. The src/lib contains all the dependent jars, and they have been included in the pom.xml</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;commons-lang-2.4&lt;/groupId&gt; &lt;artifactId&gt;commons-lang-2.4&lt;/artifactId&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;version&gt;2.4&lt;/version&gt; &lt;systemPath&gt;${basedir}\src\lib\commons-lang-2.4.jar&lt;/systemPath&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;httpcore-4.1.3&lt;/groupId&gt; &lt;artifactId&gt;httpcore-4.1.3&lt;/artifactId&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;version&gt;4.1.3&lt;/version&gt; &lt;systemPath&gt;${basedir}\src\lib\httpcore-4.1.3.jar&lt;/systemPath&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;httpclient-4.0-alpha4&lt;/groupId&gt; &lt;artifactId&gt;httpclient-4.0-alpha4&lt;/artifactId&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;version&gt;4.0&lt;/version&gt; &lt;systemPath&gt;${basedir}\src\lib\httpclient-4.0-alpha4.jar&lt;/systemPath&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.thrift-0.9.0&lt;/groupId&gt; &lt;artifactId&gt;org.apache.thrift-0.9.0&lt;/artifactId&gt; &lt;scope&gt;system&lt;/scope&gt; &lt;version&gt;0.9.0&lt;/version&gt; &lt;systemPath&gt;${basedir}\src\lib\org.apache.thrift-0.9.0.jar&lt;/systemPath&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>Also the imported package has references to :</p> <pre><code>&lt;Import-Package&gt; org.apache.commons.logging, org.apache.felix.dm, org.apache.thrift, org.apache.thrift.async, org.apache.thrift.meta_data, org.apache.thrift.protocol, org.apache.thrift.scheme, org.apache.thrift.server, org.apache.thrift.transport ...... </code></pre> <p>It compiles fine but the bundle refuses to come up :</p> <p>!Message framework Event Error !STACK 0 org.osgi.framework.BundleException: The Bundle "org.thrift.northbound_0.4.0:SNAPSHOT[95]" could not be resolved. Reason:Missing Constraint Import-Package: org.apache.thift ; version="[0.9.0, 1.0.0)"</p> <p>Any pointers as to what am I missing ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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