Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Missing MySql constraint
Missing MySql constraint [message #1071929] Sun, 21 July 2013 12:15 Go to next message
Ralf Heydenreich is currently offline Ralf Heydenreich
Messages: 88
Registered: July 2009
Member
Hi all,
I've tried to include mysql as plugin into a sample gemini project
(thanks to Muki ;-) ). Unfortunately, I can't get it work. What I've
done is created a mysql bundle which exports the appropriate packages.
Here's the MANIFEST.MF:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MySQL Connector/J
Bundle-SymbolicName: com.mysql.jdbc
Bundle-Version: 5.1.25
Bundle-ClassPath: mysql-connector-java-5.1.25-bin.jar
Bundle-Vendor: mysql.org
Export-Package: com.mysql.jdbc,
com.mysql.jdbc.authentication,
com.mysql.jdbc.exceptions,
com.mysql.jdbc.exceptions.jdbc4,
com.mysql.jdbc.integration.c3p0,
com.mysql.jdbc.integration.jboss,
com.mysql.jdbc.interceptors,
com.mysql.jdbc.jdbc2.optional,
com.mysql.jdbc.jmx,
com.mysql.jdbc.log,
com.mysql.jdbc.profiler,
com.mysql.jdbc.util,
org.gjt.mm.mysql
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy


But if I try to add this as plugin in the lauch configuration of my
sample project than the application (or Eclipse) complaints about
missing dependencies:

!MESSAGE One or more bundles are not resolved because the following root
constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-07-21 17:52:59.500
!MESSAGE Bundle
reference:file:/C:/eclipse43/workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.gemini.dbaccess.mysql_1.1.0.RELEASE.jar
was not resolved.
!SUBENTRY 2 org.eclipse.gemini.dbaccess.mysql 2 0 2013-07-21 17:52:59.500
!MESSAGE Missing imported package
com.mysql.jdbc.jdbc2.optional_[5.0.0,6.0.0).
!SUBENTRY 2 org.eclipse.gemini.dbaccess.mysql 2 0 2013-07-21 17:52:59.500
!MESSAGE Missing imported package com.mysql.jdbc_[5.0.0,6.0.0).

Why that? And, btw., is there a working sample project for Gemini
Blueprint with Eclipse e4? I've searched for it but didn't found anything.

Thanks in advance.

Ralf.
Re: Missing MySql constraint [message #1072503 is a reply to message #1071929] Mon, 22 July 2013 19:00 Go to previous message
Ralf Heydenreich is currently offline Ralf Heydenreich
Messages: 88
Registered: July 2009
Member
Am 21.07.2013 18:17, schrieb Ralf Heydenreich:
> Hi all,
> I've tried to include mysql as plugin into a sample gemini project
> (thanks to Muki ;-) ). Unfortunately, I can't get it work. What I've
> done is created a mysql bundle which exports the appropriate packages.
> Here's the MANIFEST.MF:
>
>[...]
>

After a night of searching I found the solution - I forgot the service
directory within my MySql bundle...

Greeting,
Ralf.
Previous Topic:Blueprint missing @ServiceReference annotation
Next Topic:WAR Deploy
Goto Forum:
  


Current Time: Wed Apr 23 19:59:35 EDT 2014

Powered by FUDForum. Page generated in 0.02103 seconds