OK that helped.

so I did "jgem uninstall railties" which resulted in jruby using the
"right" gem from bundler. the same setup in MRI worked without
uninstalling railties !!!

then I could not use rack-mount 0.4.7 anymore and bumped into the
argument error again which is a jruby problem:
http://jira.codehaus.org/browse/JRUBY-4649

the gem problem could be a problem which is resolved in latest bundler
which I can not use since I am using rubygems from the ubuntu
repository and this rubygems does not allow to execute "rubygems
update --system" (same as with debian systems). same problem I have
with jruby-complete-1.4.0.jar which bundles rubygems-1.3.5 and jruby-
complete-1.5.0.jar will have rubygems-1.3.6.

PLEASE setup a jruby environment, there are a lot of little things
between ruby and jruby. you can only support jruby if you test it on
jruby as well !!!

AND one request SNUSNU:
is there a chance to have a SIMPLE template which just gives me a bare
bone rails application (with specs setup) without scaffolding
"people", running spec and starting the server ?
this I could use in my rails-maven-plugin once the respective gems are
on gemcutter.org (or so)

with regards
Kristian

PS I am sending a pull request in few minutes


On Mar 13, 6:32 am, Martin Gamsjaeger <[email protected]> wrote:
> Kristian,
>
> What problems do you have with the LogSubscriber on jruby? rails
> changed from Subscriber to LogSubscriber after the beta, and I
> remember people having problems when still using a Gemfile that used
> the rails-3.0.0.beta gem. Rails master (and also 3.0.0.beta1) should
> both work with LogSubscriber, unless it's some jruby specific issue
> that I'm not aware of. Damnit, I should finally setup a jruby env too
> ...
>
> cheers
> snusnu
>
> On Fri, Mar 12, 2010 at 19:33, kristian <[email protected]> wrote:
> > OK, I got it running but it is kind of a far way to go. yesterday
> > things behaved very different from what it does after cleaning all
> > possible gems, bundles etc - kind of annoying or difficult to handle
> > if the project itself depends soo much on the outer system. and this
> > makes it really nasty to reduce the problem to simple failing testcase
> > to submit bugs - I have given up on this now, BUT I might be able to
> > help you getting rails running with jruby:
>
> > add into your Gemfile
> > gem 'rack-mount',        '0.4.7'
>
> > and comment out in your (this big hash is different on your machine)
> > $HOME/.bundle/jruby/1.8/bundler/gems/dm-
> > rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/
> > railtie.rb
> > the following line concerning the log_subscriber
> > #require "dm-rails/railties/log_subscriber"
> > #      log_subscriber ::DataMapper::Railties::LogSubscriber.new
>
> > that should you get running - without log subscribers.
>
> > regards Kristian
>
> > On Mar 12, 4:44 pm, jmcervera <[email protected]> wrote:
> >> I still have troubles trying to generate a sample app with a template
> >> provided from the dm_rails site in github.
> >> This is the trace of the errorhttp://gist.github.com/330245
>
> >> Do I need to use rails gems from the edge branch in github?
>
> >> Juanma
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "DataMapper" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/datamapper?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to