dev@glassfish.java.net

Error integrating promoted glassfish-api.jar in jruby connector

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Tue, 13 Jan 2009 15:26:43 -0800

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)



[MANIFEST gf-jruby-connector-0.7.1-SNAPSHOT.jar]
Archiver-Version Plexus Archiver
Bnd-LastModified 1231887292167
Build-Jdk 1.6.0_10
Built-By vivekmz
Bundle-DocURL http://glassfish.org
Bundle-License https://glassfish.dev.java.net/public/CDDL+GPL.html
Bundle-ManifestVersion 2
Bundle-Name JRuby sniffer for Glassfish v3
Bundle-SymbolicName org.glassfish.scripting.gf-jruby-connector
Bundle-Vendor GlassFish.org
Bundle-Version 0.7.1.SNAPSHOT
Created-By 1.6.0_10 (Sun Microsystems Inc.)
Export-Package org.glassfish.scripting.rails.sniffer;uses:="org.glassfish.api.container,com.sun.enterprise.module.bootstrap,org.jvnet.hk2.annotations,org.glassfish.api.deployment.archive,org.jvnet.hk2.component,com.sun.enterprise.module";version="0.7.1.SNAPSHOT"
Extension-Name gf-jruby-connector
HK2-Bundle-Name org.glassfish.scripting:gf-jruby-connector
HK2-Import-Bundles com.sun.enterprise:hk2, org.glassfish.common:glassfish-api
Implementation-Title gf-jruby-connector
Implementation-Vendor GlassFish.org
Implementation-Version 0.7.1-SNAPSHOT
Import-Package com.sun.enterprise.module;version="0.3.37.b01",com.sun.enterprise.module.bootstrap;version="0.3.37.b01",org.glassfish.api.container;version="3.0.0.b31",org.glassfish.api.deployment.archive;version="3.0.0.b31",org.glassfish.scripting.rails.sniffer;version="0.7.1.SNAPSHOT",org.jvnet.hk2.annotations;version="0.3.37.b01",org.jvnet.hk2.component;version="0.3.37.b01"
Manifest-Version 1.0
Specification-Vendor GlassFish.org
Tool Bnd-0.0.255

[IMPEXP]
Import-Package
  com.sun.enterprise.module {version=0.3.37.b01}
  com.sun.enterprise.module.bootstrap{version=0.3.37.b01}
  org.glassfish.api.container {version=3.0.0.b31}
  org.glassfish.api.deployment.archive{version=3.0.0.b31}
  org.jvnet.hk2.annotations {version=0.3.37.b01}
  org.jvnet.hk2.component {version=0.3.37.b01}
Export-Package
  org.glassfish.scripting.rails.sniffer{version=0.7.1.SNAPSHOT}
[USES]
org.glassfish.scripting.rails.sniffer com.sun.enterprise.module
                                        com.sun.enterprise.module.bootstrap
                                        org.glassfish.api.container
                                        org.glassfish.api.deployment.archive
                                        org.jvnet.hk2.annotations
                                        org.jvnet.hk2.component

[USEDBY]
com.sun.enterprise.module org.glassfish.scripting.rails.sniffer
com.sun.enterprise.module.bootstrap org.glassfish.scripting.rails.sniffer
org.glassfish.api.container org.glassfish.scripting.rails.sniffer
org.glassfish.api.deployment.archive org.glassfish.scripting.rails.sniffer
org.jvnet.hk2.annotations org.glassfish.scripting.rails.sniffer
org.jvnet.hk2.component org.glassfish.scripting.rails.sniffer
[LIST]
META-INF
  MANIFEST.MF
META-INF/inhabitants
  default
META-INF/maven
META-INF/maven <no contents>
META-INF/maven/org.glassfish.scripting
META-INF/maven/org.glassfish.scripting <no contents>
META-INF/maven/org.glassfish.scripting/gf-jruby-connector
  pom.properties
  pom.xml
org
org <no contents>
org/glassfish
org/glassfish <no contents>
org/glassfish/scripting
org/glassfish/scripting <no contents>
org/glassfish/scripting/rails
org/glassfish/scripting/rails <no contents>
org/glassfish/scripting/rails/sniffer
  MessageBundle.properties
  Messages.class
  RailsSniffer.class