I would add a !com.sun.java_cup.internal.* in the Import-Packages before the *
ie !com.sun.java_cup.internal.*, * That might work, but I am not certain what com.sun.java_cup.internal does. Ian On 8 August 2013 02:56, Dishara Wijewardana <[email protected]> wrote: > On Wed, Aug 7, 2013 at 6:48 PM, Ian Boston <[email protected]> wrote: > >> On 7 August 2013 12:49, Dishara Wijewardana <[email protected]> >> wrote: >> >> >> >> @Dishara >> >> >> >> Will be better to just add Guava as a bundle rathe than embed it since >> >> it uses threads to reap weak references and do clean up. >> >> >> >> >> > I manually Added Guva OSGI bundle. It worked as mentioned. Is that what >> you >> > meant? >> > And I am going through each missing ones and adding those to pom and >> > checking. Still few more to go. Will update on that. Meantime I would >> want >> > to know whether sling already has a Apache Thrift bundle in sling >> runtime ? >> > If so how can I find the version of it. Because If I add package a >> > different version I think it will again be confused at runtime because of >> > the two versions of the same bundle. >> >> One of the strengths of OSGi is you can add many versions of the same >> jar/bundle containing different versions of the same package. Thats >> why import and export have version numbers on the packages. >> >> AFAIK, there isnt a Thrift bundle. >> >> Hi Ian, > I got all of them solved except one. Now only following is there and seems > this is something else. I tried couple of dependencies and still same > result. Any idea why ? > com.sun.java_cup.internal -- Cannot be resolved and overwritten by Boot > Delegation > > Here is what I additionally added to include the missing classes. > > <Embed-Dependency>hector-core,jaxp-ri,FastInfoset,cassandra-thrift,commons-pool,libthrift,httpclient,httpcore</Embed-Dependency> > > And those dependencies are > > <dependency> > <groupId>com.sun.org.apache</groupId> > <artifactId>jaxp-ri</artifactId> > <version>1.4</version> > </dependency> > <dependency> > <groupId>com.sun.xml.fastinfoset</groupId> > <artifactId>FastInfoset</artifactId> > <version>1.2.8</version> > </dependency> > <dependency> > <groupId>org.apache.cassandra</groupId> > <artifactId>cassandra-thrift</artifactId> > <version>1.1.0</version> > </dependency> > <dependency> > <groupId>commons-pool</groupId> > <artifactId>commons-pool</artifactId> > <version>1.5.5</version> > </dependency> > <dependency> > <groupId>org.apache.thrift</groupId> > <artifactId>libthrift</artifactId> > <version>0.9.0</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpclient</artifactId> > <version>4.2</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpcore</artifactId> > <version>4.2</version> > </dependency> > > > > >> Ian >> > > > > -- > Thanks > /Dishara
