Home » Modeling » EMF » org.eclipse.net4j.db.mysql has 'Package uses conflict'?
|
Re: org.eclipse.net4j.db.mysql has 'Package uses conflict'? [message #422193 is a reply to message #422186] |
Mon, 25 August 2008 13:17 |
|
Hi Jasper,
I have no idea what this can be caused by. IIRC I never saw a similar
warning.
Triggered by your question I looked into the manifest of
org.eclipse.net4j.db.mysql and I realized that the package imports don't
have version numbers.
In HEAD I changed now to the following:
Import-Package: com.mysql.jdbc;version="[5.1.0,6.0.0)",
com.mysql.jdbc.jdbc2.optional;version="[5.1.0,6.0.0)"
But I don't know if that will fix your problem. Sorry!
If it persists I'd suggest to ask the Equinox gurus about the warning.
Cheers
/Eike
Jasper schrieb:
> I'm not sure what changed in my setup, but since today when trying to
> start the CDO server, I get a Validation warning:
>
> + org.eclipse.net4j.db.mysql:
> + Package uses conflict: Import-Package:
> com.mysql.jdbc.jdbc2.optional; version="5.1.6"
>
> This is detected before the app kicks off, so I guess there is some
> declarations conflict. But where? So far rebuilds, cleanups and
> updates have not helped.
>
> If I remove the plugin from the config, the server runs fine -- but
> then of course I can't access MySQL databases.
>
> Thanks,
> Jasper.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: org.eclipse.net4j.db.mysql has 'Package uses conflict'? [message #422216 is a reply to message #422193] |
Tue, 26 August 2008 08:47 |
Jasper Messages: 84 Registered: July 2009 |
Member |
|
|
Eike,
I've found a way of reproducing this. I open the CDOServer.launch
configuration in the "Run Configurations" dialog. I deselect all
plugins, then add
org.eclipse.cdo.server
org.eclipse.cdo.server.db
org.eclipse.net4j.db.derby
org.eclipse.net4j.db.mysql
org.eclipse.net4j.db.hsqldb
org.eclipse.net4j.db.postgresql
followed by "Add required plugins". This gives me a config including 29
plugins, which, on startup, gives the error I reported below.
So I compared my hand-built config and the one in your CVS. I found one
plugin present in my hand-built config that's not present in yours:
com.springsource.javax.transaction (1.1.0)
It gets added when I hit 'Add required plugins', apparently because
com.springsource.com.mysql.jdbc imports its packages. One can wonder
indeed if it's wise for the dialog to add plugins that aren't explicitly
required when the user clicks 'Add required'...
Anyway, just putting this info up here in case anyone else ever dares
use the 'Add required plugins' button when constructing a run config for
CDO.
Regards,
Jasper.
Eike Stepper wrote:
> Hi Jasper,
>
> I have no idea what this can be caused by. IIRC I never saw a similar
> warning.
> Triggered by your question I looked into the manifest of
> org.eclipse.net4j.db.mysql and I realized that the package imports don't
> have version numbers.
> In HEAD I changed now to the following:
>
> Import-Package: com.mysql.jdbc;version="[5.1.0,6.0.0)",
> com.mysql.jdbc.jdbc2.optional;version="[5.1.0,6.0.0)"
>
> But I don't know if that will fix your problem. Sorry!
> If it persists I'd suggest to ask the Equinox gurus about the warning.
>
> Cheers
> /Eike
>
>
> Jasper schrieb:
>> I'm not sure what changed in my setup, but since today when trying to
>> start the CDO server, I get a Validation warning:
>>
>> + org.eclipse.net4j.db.mysql:
>> + Package uses conflict: Import-Package:
>> com.mysql.jdbc.jdbc2.optional; version="5.1.6"
>>
>> This is detected before the app kicks off, so I guess there is some
>> declarations conflict. But where? So far rebuilds, cleanups and
>> updates have not helped.
>>
>> If I remove the plugin from the config, the server runs fine -- but
>> then of course I can't access MySQL databases.
>>
>> Thanks,
>> Jasper.
|
|
|
Re: org.eclipse.net4j.db.mysql has 'Package uses conflict'? [message #422218 is a reply to message #422216] |
Tue, 26 August 2008 09:52 |
|
Hi jasper,
Thanks for the update.
Btw. you can control whether to include optional dependencies or not
before you hit "Add Required Plug-ins". There's a checkbox at the bottom
of the page.
Cheers
/Eike
Jasper schrieb:
> Eike,
>
> I've found a way of reproducing this. I open the CDOServer.launch
> configuration in the "Run Configurations" dialog. I deselect all
> plugins, then add
>
> org.eclipse.cdo.server
> org.eclipse.cdo.server.db
> org.eclipse.net4j.db.derby
> org.eclipse.net4j.db.mysql
> org.eclipse.net4j.db.hsqldb
> org.eclipse.net4j.db.postgresql
>
> followed by "Add required plugins". This gives me a config including
> 29 plugins, which, on startup, gives the error I reported below.
>
> So I compared my hand-built config and the one in your CVS. I found
> one plugin present in my hand-built config that's not present in yours:
>
> com.springsource.javax.transaction (1.1.0)
>
> It gets added when I hit 'Add required plugins', apparently because
> com.springsource.com.mysql.jdbc imports its packages. One can wonder
> indeed if it's wise for the dialog to add plugins that aren't
> explicitly required when the user clicks 'Add required'...
>
> Anyway, just putting this info up here in case anyone else ever dares
> use the 'Add required plugins' button when constructing a run config
> for CDO.
>
> Regards,
> Jasper.
>
>
> Eike Stepper wrote:
>> Hi Jasper,
>>
>> I have no idea what this can be caused by. IIRC I never saw a similar
>> warning.
>> Triggered by your question I looked into the manifest of
>> org.eclipse.net4j.db.mysql and I realized that the package imports
>> don't have version numbers.
>> In HEAD I changed now to the following:
>>
>> Import-Package: com.mysql.jdbc;version="[5.1.0,6.0.0)",
>> com.mysql.jdbc.jdbc2.optional;version="[5.1.0,6.0.0)"
>>
>> But I don't know if that will fix your problem. Sorry!
>> If it persists I'd suggest to ask the Equinox gurus about the warning.
>>
>> Cheers
>> /Eike
>>
>>
>> Jasper schrieb:
>>> I'm not sure what changed in my setup, but since today when trying
>>> to start the CDO server, I get a Validation warning:
>>>
>>> + org.eclipse.net4j.db.mysql:
>>> + Package uses conflict: Import-Package:
>>> com.mysql.jdbc.jdbc2.optional; version="5.1.6"
>>>
>>> This is detected before the app kicks off, so I guess there is some
>>> declarations conflict. But where? So far rebuilds, cleanups and
>>> updates have not helped.
>>>
>>> If I remove the plugin from the config, the server runs fine -- but
>>> then of course I can't access MySQL databases.
>>>
>>> Thanks,
>>> Jasper.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Sat Apr 27 01:46:35 GMT 2024
Powered by FUDForum. Page generated in 0.03526 seconds
|