Tried the same with Datamapper 1.2.0.rc2 and it's working.

On 22 September 2011 17:45, [email protected]
<[email protected]>wrote:

> Hi,
>
> I am newbie to JRuby and Ruby. I am trying to deploy simple rails
> application on the glassfish server and for that I am using Warbler.
> But when I used datamapper, warbler gives me exception. The stacktrace
> of the exception is
>
> warble aborted!
> undefined method `/' for #<Pathname:0xfb69da>
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/dm-types-0.10.0/lib/dm-
> types.rb:5:in
>  `Types'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/dm-types-0.10.0/lib/dm-
> types.rb:4:in
>  `DataMapper'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/dm-types-0.10.0/lib/dm-
> types.rb:3:in
>  `(root)'
> org/jruby/RubyKernel.java:1038:in `require'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/dm-types-0.10.0/lib/dm-
> types.rb:7:in
>  `(root)'
> org/jruby/RubyArray.java:1603:in `each'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/data_mapper-0.9.2/lib/
> data_mapper.rb
> :5:in `(root)'
> org/jruby/RubyKernel.java:1038:in `require'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/data_mapper-0.9.2/lib/
> data_mapper.rb
> :68:in `require'
> org/jruby/RubyArray.java:1603:in `each'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/
> runtime.r
> b:66:in `require'
> org/jruby/RubyArray.java:1603:in `each'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/
> runtime.r
> b:55:in `require'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/
> bundler.rb:120:in
>  `require'
> D:/JRuby/workspace/nus/config/application.rb:7:in `(root)'
> org/jruby/RubyKernel.java:1038:in `require'
> D:/JRuby/jruby-1.6.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 36:in `re
> quire'
> D:/JRuby/workspace/nus/config/application.rb:5:in `(root)'
> org/jruby/RubyKernel.java:1063:in `load'
> ./rakefile:58:in `load_project_rakefile'
> org/jruby/RubyArray.java:1603:in `each'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> applicatio
> n.rb:56:in `load_project_rakefile'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/
> warbler.rb:25:in `
> project_application'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> traits/rai
> ls.rb:27:in `before_configure'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> traits.rb:
> 28:in `before_configure'
> org/jruby/RubyArray.java:1603:in `each'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> traits.rb:
> 28:in `before_configure'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> config.rb:
> 170:in `initialize'
> (eval):5:in `initialize'
> org/jruby/RubyKernel.java:1088:in `eval'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> task.rb:46
> :in `initialize'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> applicatio
> n.rb:27:in `load_rakefile'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/
> application.rb:6
> 1:in `run'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/
> application.rb:1
> 29:in `standard_exception_handling'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/
> application.rb:5
> 9:in `run'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/lib/warbler/
> applicatio
> n.rb:70:in `run'
> D:/JRuby/jruby-1.6.4/lib/ruby/gems/1.8/gems/warbler-1.3.2/bin/warble:
> 11:in `(roo
> t)'
> org/jruby/RubyKernel.java:1063:in `load'
> D:/JRuby/jruby-1.6.4/bin/warble:19:in `(root)'
>
> Would you please help me to figure out the reason for this exception.
>
> Thanks and Regards,
>
> Vishakha

-- 
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