dev@glassfish.java.net

Re: Error integrating promoted glassfish-api.jar in jruby connector

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Wed, 14 Jan 2009 09:27:05 -0800

Sahoo wrote:
> Vivek,
>
> The problem is 3.0.0-b31 is < 3.0.0.SNAPSHOT. It is lexicographic
> comparison using String.compare. I suggest, you change your pom.xml or
> osgi.bundle file in scripting project to Import-Package with
> version=3.0.0.
>
You mean I hardcode packages and give the version number '3.0.0.'? I
guess this would require hard coding all the packages I depend and then
stipoff suffixes. This is ugly and will make regular integration harder
and error prone.

We should think about other option - can we add some attribute in the
maven plugin that creates OSGi bundle to do such version mangling?

thanks,

-vivek.

> Thanks,
> Sahoo
>
> Vivek Pandey wrote:
>> I tried updating to glassfish-api version 3.0-b31 but while
>> deployment OSGI throws this error below. See the bdn output for
>> gf-jruby-connector.jar attached. I looked at glassfish-api.jar on the
>> trunk and it exports org.glassfish.api.deployment.archive, version
>> 3.0.0.SNAPSHOT.
>>
>> Not sure how OSGi compares versions with letters suffixes. Do you
>> think I need to do something here to fix the jruby connector manifest?
>>
>> -vivek.
>>
>> INFO: GlassFish v3 startup time : Felix(1076ms) startup
>> services(774ms) total(1850ms)
>> Jan 13, 2009 10:56:22 PM INFO: ERROR: Error starting
>> file:/myhome/vivekmz/dev/glassfish/modules/gf-jruby-connector-0.7.1-SNAPSHOT.jar
>> (org.osgi.framework.BundleException: Unresolved constraint in bundle
>> 11: package;
>> (&(package=org.glassfish.api.deployment.archive)(version>=3.0.0.b31)))
>> Jan 13, 2009 10:56:22 PM SEVERE: org.osgi.framework.BundleException:
>> Unresolved constraint in bundle 11: package;
>> (&(package=org.glassfish.api.deployment.archive)(version>=3.0.0.b31))
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)
>> Jan 13, 2009 10:56:22 PM SEVERE: at
>> java.lang.Thread.run(Thread.java:619)
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>