Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181856 - dev-java/jruby-1.0.0_rc3 can not run rails
Summary: dev-java/jruby-1.0.0_rc3 can not run rails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Josh Nichols (RETIRED)
URL:
Whiteboard:
Keywords:
: 184373 (view as bug list)
Depends on:
Blocks: 187619
  Show dependency tree
 
Reported: 2007-06-13 05:23 UTC by kristian meier
Modified: 2007-12-17 17:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kristian meier 2007-06-13 05:23:24 UTC
I see folloing stacktrace when I run a rails project with jruby. the same I saw with the new ebuild for jruby-1.0.0. but if I take the sources and compile it myself using the jruby-1.0.0 directory (from the source tree) with all its files (lib, bin, ...) than I can run rails. this source-dir comes with its own GEM, so I first installed rails via gem into that dir. after I saw it working I set GEM_HOME to the gentoo location and was also working.

so the gentoo gem is OK. building jruby from source is OK. using jruby.ebuild fails.

that is how far I had time to invest the problem.



Reproducible: Always

Steps to Reproduce:
$ jruby script/server

in a rails existing project
Actual Results:  
yaml:290:in `require': undefined method `yaml_as' for Kernel::YAML::Omap:Class (NoMethodError)
        from /usr/share/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/share/jruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/deprecation.rb:2
        from /usr/share/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/share/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'




Portage 2.1.2.9 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Mobile AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 13 Jun 2007 03:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /usr/X11R6/bin/startx"
CXXFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-gcj-overlay /usr/portage/local/layman/gnome-experimental /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa apache2 bitmap-fonts cairo cdr cli cracklib crypt dbus dri dvd dvdr eds emacs emboss encode fam firefox gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jikes jpeg libg++ lm_sensors mad midi mikmod minimal mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pmu png ppds pppd python quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode userlocales vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="via vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-06 07:12:36 UTC
*** Bug 184373 has been marked as a duplicate of this bug. ***
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2007-12-17 13:59:37 UTC
Can you try with 1.0.0 or 1.0.3 and see if the problem persists?
Comment 3 kristian meier 2007-12-17 17:07:01 UTC
$ jruby --version
ruby 1.8.5 (2007-12-17 rev 5200) [i386-jruby1.0.3]

$ jruby script/server 
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-12-17 22:22:55] INFO  WEBrick 1.3.1
[2007-12-17 22:22:55] INFO  ruby 1.8.5 (2007-12-17) [java]

and the application works :-)
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-12-17 17:22:35 UTC
(In reply to comment #3)
> 
> and the application works :-)
>

Marking as fixed then.