it’s not a problem of compiling jruby-embed.
Our problem is that if we start jruby-embed bundle within an OSGI
container (e.g., felix)
we’d get an exception as shown below because it can’t find the package
org.apache.bsf required by jruby-embed.
Unfortunately, afaik, the maven central repository does not provide a
bundle which contains org.apache.bsf.
We think, maybe someone in this list knows where to find such a bundle.
Welcome to Felix
→ ps
START LEVEL 6
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.1)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.4.1)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
→ start http://repo2.maven.org/maven2/org/jruby/embed/jruby-embed/0.1.3/jruby-embed-0.1.3.jar
→ org.osgi.framework.BundleException: Unresolved constraint in bundle
org.jruby.embed [3]: package; (package=org.apache.bsf)
→ start http://repo2.maven.org/maven2/org/jruby/jruby-complete/1.4.0/jruby-complete-1.4.0.jar
→ ps
START LEVEL 6
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.1)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.4.1)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
[ 3] [Installed ] [ 5] JRuby Embed (0.0.1.2)
[ 4] [Active ] [ 5] JRuby 1.4.0 (1.4.0)
→ start 3
→ org.osgi.framework.BundleException: Unresolved constraint in bundle
org.jruby.embed [3]: package; (package=org.apache.bsf)
Yoko H. wrote:
didn’t set extra repository for that.
-Yoko
On Wed, Feb 10, 2010 at 10:06 AM, Hasan [email protected] wrote:
-Yoko
If you don’t mind using JRuby 1.5.0.dev snapshot, that might resolve
your problem. JRuby embed is included in that version and I didn’t get
the error you reported.
→ ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.1)
[ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2)
[ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1)
[ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
→ start http://ci.jruby.org/snapshots/jruby-complete-1.5.0.dev.jar
→ ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (2.0.1)
[ 1] [Active ] [ 1] Apache Felix Bundle Repository (1.4.2)
[ 2] [Active ] [ 1] Apache Felix Shell Service (1.4.1)
[ 3] [Active ] [ 1] Apache Felix Shell TUI (1.4.1)
[ 5] [Active ] [ 1] JRuby 1.5.0.dev (1.5.0.dev)
However, JRuby might not work on OSGi platform. I think JRuby embed or
JRuby itself doesn’t handle OSGi specific classloader well. If you get
further errors, please report again. Somebody in this list might know
how to manage that.