Bug 480653

Summary: Jruby non-functional on fresh install
Product: [Fedora] Fedora Reporter: dan <dthfoo>
Component: jrubyAssignee: Conrad Meyer <cse.cem+redhatbugz>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 10CC: cse.cem+redhatbugz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-18 16:08:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 473451    
Bug Blocks:    

Description dan 2009-01-19 17:50:59 UTC
Description of problem: jruby fails on startup with the following error;

[danh@dan java]$ jruby -v
jruby 1.1.3 (ruby 1.8.6 patchlevel 114) (2008-07-29 rev 6586) [i386-java]
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/TypeMapper
	at org.jruby.ext.posix.POSIXFactory$1.<init>(POSIXFactory.java:13)
	at org.jruby.ext.posix.POSIXFactory.<clinit>(POSIXFactory.java:12)
	at org.jruby.Ruby.init(Ruby.java:854)
	at org.jruby.Ruby.newInstance(Ruby.java:158)
	at org.jruby.Main.run(Main.java:164)
	at org.jruby.Main.run(Main.java:91)
	at org.jruby.Main.main(Main.java:82)


[danh@dan java]$ rpm -ql jna
/usr/lib/jna
/usr/lib/jna/libjnidispatch.so
/usr/share/doc/jna-3.0.4
/usr/share/doc/jna-3.0.4/LICENSE.txt
/usr/share/java/jna-3.0.4.jar
/usr/share/java/jna.jar

Comment 1 Conrad Meyer 2009-01-19 19:32:27 UTC
I'm pretty sure this was my old 1.1.3-1 package; get the newer one from updates and this should be fixed.

Comment 2 dan 2009-01-19 23:13:43 UTC
Thanks for the prompt reply Conrad. There is no package in updates, the output from yum info is below.

[danh@dan java]$ sudo yum info jruby
Loaded plugins: refresh-packagekit
Available Packages
Name       : jruby
Arch       : noarch
Version    : 1.1.3
Release    : 2.fc10
Size       : 4.7 M
Repo       : fedora
Summary    : Pure Java implementation of the Ruby interpreter
URL        : http://jruby.codehaus.org/
License    : (CPL or GPLv2+ or LGPLv2+) and ASL 1.1 and MIT and Ruby
Description: JRuby is an 100% pure-Java implementation of the Ruby programming language.  Features:   * A 1.8.5 compatible Ruby
           : interpreter   * Most builtin Ruby classes provided   * Support for interacting with and defining Java classes from within
           : Ruby   * Bean Scripting Framework (BSF) support

Cheers

Dan

Comment 3 Conrad Meyer 2009-01-19 23:46:41 UTC
Bummer, then it's not something I've run into already :(. Well, I've got 1.1.5 working locally (on F-9), it's just blocking on a review of a package. See bug 473451.

Comment 4 Conrad Meyer 2009-02-16 06:13:14 UTC
Hi, can you try installing jruby 1.1.6-1 from rawhide? It should work. Thanks!

Comment 5 dan 2009-02-16 10:17:36 UTC
Conrad,

I have tried to install the version of Jruby from rawhide but I don't get 1.1.6-1, I get 1.1.3-2 (and that doesn't work either)!

Here is the output;

========================================================================================================================
 Package                  Arch                      Version                            Repository                  Size
========================================================================================================================
Installing:
 jruby                    noarch                    1.1.3-2.fc10                       rawhide                    4.7 M

Transaction Summary
========================================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 4.7 M
Is this ok [y/N]: y
Downloading Packages:
jruby-1.1.3-2.fc10.noarch.rpm                                                                    | 4.7 MB     00:26
================================================== Entering rpm code ===================================================
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : jruby                                                                                            1/1
=================================================== Leaving rpm code ===================================================

Installed:
  jruby.noarch 0:1.1.3-2.fc10

Complete!
[danh@dan ~]$ jruby -v
jruby 1.1.3 (ruby 1.8.6 patchlevel 114) (2008-07-29 rev 6586) [i386-java]
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/TypeMapper
        at org.jruby.ext.posix.POSIXFactory$1.<init>(POSIXFactory.java:13)
        at org.jruby.ext.posix.POSIXFactory.<clinit>(POSIXFactory.java:12)
        at org.jruby.Ruby.init(Ruby.java:854)
        at org.jruby.Ruby.newInstance(Ruby.java:158)
        at org.jruby.Main.run(Main.java:164)
        at org.jruby.Main.run(Main.java:91)
        at org.jruby.Main.main(Main.java:82)

Should I be looking at the rawhide for FC11 instead of 10 or has is not filtered down to the mirrors yet?

Hope you can help,

Cheers

Dan.

Comment 6 Conrad Meyer 2009-02-16 10:57:44 UTC
Rawhide lags about a day behind Koji -- 1.1.6-1 works. If you want to grab 1.1.6-1 from Koji to try it out before Rawhide gets it, you can grab it from here:

http://koji.fedoraproject.org/koji/buildinfo?buildID=82773

Note you'll also need new builds of constantine, bytelist, joni, and jcodings. I may be forgetting something, but here are links to those 4:

http://koji.fedoraproject.org/koji/buildinfo?buildID=82820
http://koji.fedoraproject.org/koji/buildinfo?buildID=74519
http://koji.fedoraproject.org/koji/buildinfo?buildID=82802
http://koji.fedoraproject.org/koji/buildinfo?buildID=73819

Hope that works!

Comment 7 Conrad Meyer 2009-02-16 10:58:30 UTC
(Or you can wait a day or two, and install it using "yum --enablerepo=rawhide install jruby" as you were trying before.)

Comment 8 dan 2009-02-16 11:15:11 UTC
Conrad,

installed using your instructions and I now have a fully functional Jruby install.

I will leave it a day or two and then test from rawhide to make sure that all is well.

Will this get rolled back into FC10 seeing as it is non-functional or will it be left to FC11?

Thanks for all your efforts, it is much appreciated.

Cheers,

Dan.

Comment 9 Conrad Meyer 2009-02-16 11:20:45 UTC
The packages from rawhide will be bit-for-bit identical to the ones you got from koji.

Sure, I will try to get this into F-10 as well. I'll leave this bug open until I get that done, does that work?

Comment 10 dan 2009-02-16 11:30:26 UTC
Fine by me.

Cheers

Dan

Comment 11 dan 2009-02-18 14:09:11 UTC
Installed and fully functional from FC10 rawhide after removing the manual installation.

Comment 12 Conrad Meyer 2009-02-18 16:08:35 UTC
Cool, closing.

Comment 13 Fedora Update System 2009-03-09 23:08:57 UTC
jruby-1.1.6-1.fc10, joni-1.1.2-1.fc10, bytelist-1.0.1-0.1.svn9177.fc10, jcodings-1.0.1-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.