Tuesday, February 27, 2007

JRuby Setup

Recently got a JRuby/Rails system with Java integration up and running. Unfortunately, it took quite a few hours, as most of the docs and code you find through Google are out of date.

If you use JRuby 0.9.2 from Codehaus, you will get an error similar to this when you try to access a rails application:

[2007-02-26 17:54:59] INFO WEBrick::HTTPServer start: pid=22540508 port=3000
<ArgumentError: Anonymous modules have no name to be referenced by>
["c:/jruby-0.9.2/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:402:in `to_constant_name'...

If you're stuck in this rut, fear not! Nick Sieger has written very helpful instructions which outline how to get and set up the latest development snapshot. Please note that in addition to the instructions, you need to set your JRUBY_HOME environment variable. Under Windows, do something like this:

set JRUBY_HOME=c:\jruby

If you'd prefer not to use the snapshot, you can get the source code through subversion from:

http://svn.codehaus.org/jruby/trunk/jruby

but at the time of this post, you need to run svn checkout or update with "--ignore-externals" to avoid the following error:

Error: URL 'svn://rubyforge.org/var/svn/bfts/bfts/trunk' doesn't exist

Many thanks to Nick Sieger and the JRuby user mailing list for their help.

37 comments:

akshay said...

[2007-02-26 17:54:59] INFO WEBrick::HTTPServer start: pid=22540508 port=3000
"ArgumentError: Anonymous modules have no name to be referenced by>
["c:/jruby-0.9.2/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/
active_support/dependencies.rb:402:in `to_constant_name'...

This happens when jars(like bcprov) required by ActiveRecord JDBC/rails-integration are not in classpath. In my case i had to add it the glassfish`s lib folder

Nick Sieger said...

Thanks for the writeup James.

We'll endeavor to improve and update the documentation for the new release, due out shortly. Stay tuned!

Anonymous said...

Now do you worried about that in the game do not had enough aion kina to play the game, now you can not worried, my friend told me a website, in here you can buy a lot aion online kina and only spend a little money, do not hesitate, it was really, in here we had much aion gold, we can sure that you will get the cheap aion kina, quick to come here to buy aion kina.

Now do you worried about that in the game do not had enough Anarchy credits to play the game, now you can not worried, my friend told me a website, in here you can buy a lot Anarchy Online credits and only spend a little money, do not hesitate, it was really, in here we had much Anarchy gold, we can sure that you will get the Anarchy online gold, quick to come here to buy AO credits.

J&D said...

網頁設計,網頁設計公司,最新消息,訪客留言,網站導覽
情趣用品,情趣用品,情趣用品
色情遊戲,寄情築園小遊戲,情色文學,一葉情貼圖片區,情人視訊網,辣妹視訊,情色交友,成人論壇,情色論壇,愛情公寓,情色,舊情人,情色貼圖,色情聊天室,色情小說,做愛,做愛影片,性愛

免費視訊聊天室,aio交友愛情館,愛情公寓,一葉情貼圖片區,情色貼圖,情色文學,色情聊天室,情色小說,情色電影,情色論壇,成人論壇,辣妹視訊,視訊聊天室,情色視訊,免費視訊,免費視訊聊天,視訊交友網,視訊聊天室,視訊美女,視訊交友,視訊交友90739,UT聊天室,聊天室,豆豆聊天室,尋夢園聊天室,聊天室尋夢園,080聊天室,080苗栗人聊天室,女同志聊天室,上班族聊天室,小高聊天室
AV,AV女優
視訊,影音視訊聊天室,視訊交友
視訊,影音視訊聊天室,視訊聊天室,視訊交友,視訊聊天,視訊美女,視訊辣妹,免費視訊聊天室
自慰器,自慰器

products said...

China Wholesale has been described as the world’s factory. This phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesalers “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and buy products wholesaleChina Wholesale will skyroket your profits.

products said...

Women’s nike tn Shox Rivalry est le modèle féminin le plus tendance de baskets pour le sport. tn chaussuresConcernant la semelle : le caoutchouc extérieur, l’EVA intermédiaire et le textile intérieur s’associent pour attribuer à la.ed hardy shirts pretty fitCharlestoncheap columbia jackets. turned a pair of double plays to do the trick.Lacoste Polo Shirts, , Burberry Polo Shirts.wholesale Lacoste polo shirts and cheap polo shirtswith great price.Cheap Brand Jeans ShopMen Jeans - True Religion Jeans nike shoes & Puma Shoes Online- tn nike,Thank you so much!!cheap polo shirts men'ssweate,gillette mach3 razor bladesfor men.As for

Anonymous said...

酒店打工

酒店兼職

台北酒店

打工兼差

酒店工作

酒店

禮服酒店

酒店兼差

酒店上班

酒店PT

酒店經紀

酒店喝酒

酒店消費

喝花酒

粉味

喝酒

Anonymous said...

como comprar cialis
viagra bestellen
levitra kaufen
rezeptfrei cialis
achat cialis en ligne
cialis bestellen
pharmacie prix discount
ricetta levitra

Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.

Onlineer said...

kamagra bestellen
viagra kaufen
cialis rezeptfrei
sinequan bestellen ohne rezept
zyloprim online apotheke
levitra ohne rezept kaufen
cialis super active bestellen ohne rezept
propecia online bestellen
cialis soft rezeptfrei
viagra online apotheke

Onlineer said...

lovegra farmacia on line
zyban sr italia
kamagra oral jelly france
kamagra soft en pharmacie
viagra super active rezeptfrei kaufen
acheter vigora france
costo kamagra soft
cialis soft ohne rezept kaufen
vendita viagra super active
nolvadex pharmacie
zyloprim bestellen
viagra pharmacie
vermox kaufen
intagra france
propecia kaufen

petrovi4 said...

Precio accutane Espana
Achat cialis super active plus en ligne
Comprare cipro Online
Comprare zithromax Italia
Achat minocin en ligne
Comprar anafranil Internet
Precio kamagra Espana
nolvadex Rezeptfrei Kaufen
Prix minocin France
Comprare cialis Farmacia
effexor xr Online Rezeptfrei
Comprar minocin Farmacia

invierta en proyectos said...

I look forward to reading more on the topic in the future. Keep up the good work! This blog is going to be great resource. Love reading it.

sports said...

tn requin
chaussures tn
chaussure requin

kids wall stickers
stickers for wall
wall sticker decal
wall stickers
round tablecloth
vinyl tablecloths
linens tablecloths
tablecloth
fashion bedding
bath curtains
kitchen faucet
bathroom faucet
faucet
shower faucet
baby bedding
bed in a bag
home bedding
kids bedding

wedding jewelry
wedding cake
wedding accessories
wedding dresses
cheap dress shoes
discount handbags
women's shoes
women's handbags
id lanyard
lanyard
beaded lanyard

unlocked cell phones
mp3 players
digital camera
digital picture frames
flat tv
lcd tv
hd tv
portable GPS
GPS navigation
bluetooth gps
handheld gps

travel guide
travel luggage
camping tents
sleeping bag
car parts
car gps
car tires
car seat cover

sexual health
wholesale lots

Larah said...

Some freelance writer doing their work very well as for me.

web design newcastle said...

I found so many interesting stuff in your blog especially its discussion.

honey beekeeping said...

Pretty good post.I found your website perfect for my needs. thanks for sharing the great ideas.

cemetery tombstones said...

its really very great and informative post. thanks for sharing the information.

Fort Bragg said...

Its always good to get useful information like you share for blog posting. thanks for the info.

service desk management said...

Such a very valuable information. Thanks for this excellent read.

Magic service desk analysis said...

I would like to thank you for the efforts you have made in composing this article. thanks for sharing the great information.

polo shirts said...

History of polo ralph lauren. Polo fashions had its humble beginnings in 1968 when tie salesman Ralph Lauren gave it a kick start. By 1969 he had a boutique polo ralph lauren factory stores within the Manhattan department store Bloomingdale's. ... Brands and luxury standard. Since Ralph Lauren's first brand, Polo Ralph Lauren, was launched, the company has expanded to include a variety of luxury brands such as Polo Golf, Polo Denim, Polo Sport. You can buy cheap Ralph Lauren Clothing at Ralph Lauren outlet.Also We provide polo shirts
Ralph Lauren polo shirt, 50% OFF! polo ralph lauren outlet online is your best choice!In 2006, polo ralph lauren outlet became the first designer in Wimbledon's 133-year history to create official uniforms for the tournament. As part of this year's event, which starts next week, polo ralph lauren sale will introduces the first ... determination to maintain and enhance the values for which our two brands are famous throughout the world. The rugby ralph lauren brand brings to Wimbledon the look of timeless elegance, drawing on our rich history and traditions

Cheap Minnesota Twins Tickets said...

I look forward to reading more on the topic in the future. Keep up the good work! This blog is going to be great resource. Love reading it.

Cheap George Strait Tickets said...

Keep up the good work! This blog is going to be great resource. Love reading it.

financial spread betting said...

It may take a while but it will be worth it in the end. Let's hope it works better next time.

Cheap Wicked Chicago Ticket said...

very great and informative post. thanks for sharing the information.

Justin Bieber Miami Tickets said...

the documentation for the new release, due out shortly. Stay tuned!

Radio City Christmas Spectacular Tickets said...

Keep up the good work! This blog is going to be great resource. Love reading it.

dfadf said...

Y te vi bailar bajo la lluvia
y saltar sobre un charco de estrellas
Obama Is Lying<1>
When was the last time the MSM took a Republican's side in a fight over credibility with a Democratic opponent?Microsoft OfficeOffice 2010Well, it has been a while.Microsoft Office 2010However, conservatives have little to grumble about in the recent Office 2007face-off between Barack Obama and John McCain over McCain's statement thatte vi bailar bajo la lluvia
esperando la luna llena
Volverás a reírte de veras
Microsoft Office 2007troops might have to remain for "100 years" in Iraq "as long as Americans are not being injured or harmed or wounded or killed" afterOffice 2010 keyfighting had concluded, Office 2010 downloadMost recently, ABC's Jake Tapper noted that at least on three occasions Obama had personally said that McCain favored cuando creas que estaba perdidovolverás a reírte de veras
continued fighting in Office 2010 ProfessionalIraq for 100 years. Tapper concluded that "Obama has in the past distorted McCain's comments" and "that he is violating his own stated si te quedas conmigoTe vi bailar bajo la lluviaesperando la luna llente vi llorar bajo la lunMicrosoft outlookaspirations...[b]ecause not only has he distorted what McCain said, he is not being honest about having made those distortions."Outlook 2010Tapper is not the only MSM reporter to point this out, Windows 7of course. It is not every day that the RNC sends around e-mail blasts quoting Frank Microsoft outlook 2010Rich ("Barack Obama and Hillary Clinton should be ashamed of themselves for libeling John McCain") and reports from the Chicago Tribune,

ektas said...

Nice, I think it could be interesting to add some more entries following this one. thanks for all that..
ses kayıt
ses kayıt
ses kayıt sistemi

Frank said...

All those sequels will be fed to Starz as part of the new distribution deal. Other Weinstein Co. films coming to Starz include critically acclaimed "The King's Speech," and "Blue Valentine." nice and cheap ugg boots is on display right now at Harrods ugg clearance in London, but once released, will there be a market for it? The new green luxury car gives the environmentally conscious executive cheap uggs clearance the option of powering the CT 200H by either electricity orjordan basketball shoes by regular petrol. Lexusugg women is banking on the belief that there is a growing demand for a greenJordan Fusions. vehicle in the luxury car market.

Anonymous said...

plavix acheter en ligne
achat xenical
Rezeptfrei propecia
accutane Rezeptfrei Kaufen
amoxil Ohne Rezept
nolvadex Rezeptfrei Bestellen
priligy france
achat cipro en ligne
achat lovegra france
nolvadex Rezept
plavix Rezeptfrei Kaufen
achat cipro france
xenical Rezeptfrei Apotheke
accutane france
plavix acheter
flagyl acheter
achat nolvadex
viagra Ohne Rezept
acheter lovegra en ligne
kamagra Online Rezeptfrei
acheter cialis soft en france
levitra Ohne Rezept Kaufen
acheter lovegra pas cher
kamagra oral jelly Rezeptfrei Bestellen
viagra soft Online Rezeptfrei
diflucan Ohne Rezept
cialis soft Rezeptfrei Apotheke
achat kamagra oral jelly france
Ohne Rezept propecia Apotheke
proscar france
acheter strattera pas cher
viagra soft Ohne Rezept
zithromax auf Rezept

Anonymous said...

xenical Ohne Rezept Kaufen
kamagra Prix de Vente
proscar Ohne Rezept Bestellen
Buy accutane online
lasix Bestellen
lasix Prix en France
acheter nolvadex en ligne
Rezeptfrei kamagra
clomid Ohne Rezept Bestellen
flagyl Ohne Rezept Kaufen
Rezeptfrei cialis soft
achat flagyl france
lamisil Kaufen

Ohne Rezept proscar Apotheke
lovegra Rezeptfrei Kaufen
clomid Ohne Rezept
Prix cipro Pharmacie
strattera Ohne Rezept
achat diflucan
viagra soft Online Rezept
cialis Online Rezeptfrei
Rezeptfrei flagyl
proscar Ohne Rezept Kaufen
viagra acheter en ligne
amoxil Rezeptfrei Kaufen
acheter kamagra en france
achat propecia
clomid Rezeptfrei Kaufen
accutane france
Order lasix
cialis soft Ohne Rezept Kaufen

clarebear said...

We are China online Wholesale Beads store, China Wholesale Beads is your best choice. China jewelry findings and jewelry making supplies for wholesale.We offer you Jewelry Supplies, Jewelry Findings, Jewelry Beads at the cheapest price. We are specialized in Wholesale Jewelry Supplies, Wholesale Jewelry Findings, Tibetan Style Beads, Tibetan Silver Beads, Tibetan Silver Charms, Wholesale Acrylic Beads, Wholesale Crystal Beads, Wholesale Jewelry Charms, Pandora Style Beads, Lampwork Beads, Metal Beads, Gemstone Beads, Wood & Nut Beads. Buy more get more discount.

elizabeth bernot said...

Costa Rica Fishing

http://www.fishingcostaricaexperts.com/

Fishing Costa Rica

Anonymous said...

Recently obtained a Cheap Runescape GoldJRuby/Rails software program with Java integration up and running. Unfortunately, it took very various hours, as most while using WOW Golddocs and value you uncover by means of yahoo are previous date.

Jerry Gene said...

Nice post! Can’t wait for the next one. Keep stuff like this coming. Nice Post keep it up.

Asus - N55SL-DS71 15.6" LED Notebook - Intel Core i7 i7-2670QM 2.20 GHz - Black

Asus - 11.6"ZENBOOK Ultrabook 4 GB Memory and 128 GB Solid State Drive - Aluminum Silver

Asus - 13.3" Laptop - 4GB Memory - 128GB Solid State Drive - Hot Pink

Asus - 11.6" Laptop - 4GB Memory - 128GB Solid State Drive - Radiant Silver

Asus - 15.6" Notebook 8 GB Memory - 500 GB Hard Drive - Black