Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryDSL MongoDB does not work with an OSGi environment #164

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

QueryDSL MongoDB does not work with an OSGi environment #164

ctranxuan opened this issue Jun 7, 2012 · 4 comments

Comments

@ctranxuan
Copy link

@ctranxuan ctranxuan commented Jun 7, 2012

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
Copy link

@tinhtruong tinhtruong commented Jun 22, 2012

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

@timowest
Copy link
Member

@timowest timowest commented Jun 22, 2012

Next week

@tinhtruong
Copy link

@tinhtruong tinhtruong commented Jun 22, 2012

Many thanks!

@timowest
Copy link
Member

@timowest 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants