[jruby-user] need suggestion about jruby rails and websphere

21 views
Skip to first unread message

Francesco Pellegrini

unread,
Jun 5, 2013, 1:08:26 AM6/5/13
to us...@jruby.codehaus.org
I need to develop a bunch of web apps that will run in a very legacy environment, websphere 8 under zlinux.
Being a rails addict i would like to use this framework, and jruby/warbler seems to be the only way to do it.

This is all new for me, and I cannot even get the simplest rails app to be compiled with warbler, because i get
a "stack level too deep" error everytime i run warbler.
I use ubuntu 12.04 for development rvm last version, jruby 1.7.4 rails 3.2.13 and warbler 1.3.8,
and tried on different pc getting the same problem.

I already posted on github issues for warbler, and saw that other people are having the same problem.

I'm getting the impression that the environment i'm targeting is too far from jruby at this moment, and looking at the github statistics for warbler it seems even more distant.

Is there someone who can suggest me if this is a road that can be followed (i.e. this is a single problem that can be solved and then things ca go on smoothly) or if I better switch to native java stuff like maven/spring/hibernate.

Best regards

Francesco

Alex Tambellini

unread,
Jun 5, 2013, 1:34:40 AM6/5/13
to us...@jruby.codehaus.org
Post your simple rails app with the list of commands needed to reproduce the failure to github and I'll take a look. I develop a rails app which gets deployed to websphere on linux or windows and things seem to work fine.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Francesco Pellegrini

unread,
Jun 5, 2013, 4:50:08 AM6/5/13
to us...@jruby.codehaus.org
Trying to re-create the problem I found where the problem is:

* rails new testapp --database mysql
* bundle install
* modified database.yml to add the correct username and password
* rake db:create
* rails g scaffold person name:string age:integer
* rake db:migrate
* then, running webrick locally the app (of course...) works.
* warble pluginize  <== the culprit
and lib/tasks/warbler/warbler.rake is created

Now if i run "warble -T" or "warble config" i get the "stack too deep" error.

Avoiding the creation of warble rake taks allows building the war file

Francesco

2013/6/5 Alex Tambellini <atamb...@gmail.com>

Joe Kutner

unread,
Jun 5, 2013, 9:57:05 AM6/5/13
to us...@jruby.codehaus.org
Can you add those details to this ticket?

Hopefully we can get that fixed. Thanks!
Reply all
Reply to author
Forward
0 new messages