Where to find org.apache.bsf.util imported by jruby-embed

Dear all,

we’d like to use jruby-embed bundle, but wonder where to find
org.apache.bsf.util
imported by this bundle.
Can someone give us a hint? Thanks!

Regards
Hasan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Hassan,

On Wed, Feb 10, 2010 at 10:06 AM, Hasan [email protected] wrote:

we’d like to use jruby-embed bundle, but wonder where to find
org.apache.bsf.util
imported by this bundle.

You can get the archive from download section at
http://jakarta.apache.org/bsf/. The version you need is 2.4.0.

-Yoko


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks for your prompt reply Yoko

We were thinking of a maven repository that offers this package as a
bundle.
Like jruby-embed that one can get from
http://repo2.maven.org/maven2/org/jruby/embed/jruby-embed/0.1.3/

Do you know of such a repository?

Regards
Hasan

Yoko H. wrote:

http://jakarta.apache.org/bsf/. The version you need is 2.4.0.

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Feb 10, 2010 at 4:17 PM, Hasan [email protected] wrote:

We were thinking of a maven repository that offers this package as a bundle.
Like jruby-embed that one can get from
http://repo2.maven.org/maven2/org/jruby/embed/jruby-embed/0.1.3/

Do you know of such a repository?

I think the dependency below worked when I compiled jruby-embed. I
didn’t set extra repository for that.

<dependency>
  <groupId>bsf</groupId>
  <artifactId>bsf</artifactId>
  <version>2.4.0</version>
</dependency>

Perhaps, pom.xml of jruby-embed is a good example. You can see it at
http://kenai.com/projects/jruby-embed/sources/sources/show

-Yoko

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Yoko,

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

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Hasan,

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.

-Yoko

On Thu, Feb 11, 2010 at 9:13 AM, Hasan [email protected] wrote:

-> start
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.4.1)

http://kenai.com/projects/jruby-embed/sources/sources/show

Can someone give us a hint? Thanks!


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs