Forum: JRuby need suggestion about jruby rails and websphere

1f97cd94ff1c958360c14f1d4a358372?d=identicon&s=25 Francesco Pellegrini (Guest)
on 2013-06-05 07:11
(Received via mailing list)
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
302c6c56b99912a673f1213b0709c902?d=identicon&s=25 Alex Tambellini (Guest)
on 2013-06-05 07:36
(Received via mailing list)
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.
1f97cd94ff1c958360c14f1d4a358372?d=identicon&s=25 Francesco Pellegrini (Guest)
on 2013-06-05 10:54
(Received via mailing list)
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 <atambellini@gmail.com>
666badca71c452ae51c999971419b506?d=identicon&s=25 Joe Kutner (Guest)
on 2013-06-05 16:05
(Received via mailing list)
Can you add those details to this ticket?
https://github.com/jruby/warbler/issues/106

Hopefully we can get that fixed. Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.