QueryDSL MongoDB does not work with an OSGi environment #164

Closed
ctranxuan opened this Issue Jun 7, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@ctranxuan

When trying to deploy a bundle that uses querydsl-mongodb on an OSGi environment (with mongo-java-driver-2.7.3.jar), the OSGi platform complains the bundle querydsl-mongodb is missing an import package constraint: com.mongodb;version="2.1"

The exception comes from the fact that the MANIFEST.MF of mongo-java-driver-2.7.3 exports packages without any version declaration. As matter of fact, to fix this issue, the bundle querydsl-mongodb must declare in its MANIFEST.MF the Import-Package as follows

Import-Package: com.mongodb;version="0"

Tested with

  • Eclipse Virgo 3.0.2.RELEASE
  • mongo-java-driver-2.7.3.jar
  • querydsl-mongodb-2.3.3.jar

Proposed fix also tested successfully with the same environment.

NB: the issue exists on all the versions 2.3.3 up to 2.6 of querydsl-mongodb, since all the MANIFEST.MF declares an import of "com.mongo" with a version number.

@tinhtruong

This comment has been minimized.

Show comment
Hide comment
@tinhtruong

tinhtruong Jun 22, 2012

Could you please give us an ETA for this fix to be released?
Thanks.

Could you please give us an ETA for this fix to be released?
Thanks.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Jun 22, 2012

Member

Next week

Member

timowest commented Jun 22, 2012

Next week

@tinhtruong

This comment has been minimized.

Show comment
Hide comment
@tinhtruong

tinhtruong Jun 22, 2012

Many thanks!

Many thanks!

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Jun 28, 2012

Member

Released in 2.7.0

Member

timowest commented Jun 28, 2012

Released in 2.7.0

@timowest timowest closed this Jun 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment