Forum: JRuby glassfish gem and Mephisto problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bf512c651c47ac6421e41f93dc19c726?d=identicon&s=25 Josh Moore (Guest)
on 2009-01-15 15:26
(Received via mailing list)
Hi I am trying to set up Mephisto for my personal blog on a Ubuntu 8.10
server.  I am using JRuby 1.1.6, the Glassfish gem version0.9.1, and
Mephisto 0.8.1.  I am using Postgresql as the database.  I can get
Mephisto
set up (db:bootstrap) and everything works OK.  The problem is when I
try to
run Glassfish.  I get this log error message (see below).  I have
confirmed
that the rack gem is installed.  Also I can run Mephisto just fine using
WEBrick (jruby ./script/server).  It runs and I can use Mephisto with no
exceptions.  Also if I put together a simple Rails app it runs just fine
with Glassfish.  So I am not sure what is happening.  If anybody has any
ideas how to get Mephisto running with the Glassfish gem please let me
know.
Thanks

Josh

Exception:
Jan 15, 2009 6:39:39 AM
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter initializeObject
SEVERE: IO error -- rack/file
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`instance_eval'
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`initialize'
from
file:/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/glassfish-0.9.1-universal-java/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:89:in
`new'
from <script>:1
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`instance_eval'
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`initialize'
from <script>:1

com.sun.grizzly.jruby.rack.RackInitializationException: IO error --
rack/file
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`instance_eval'
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`initialize'
from
file:/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/glassfish-0.9.1-universal-java/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:89:in
`new'
from <script>:1
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`instance_eval'
from
/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
`initialize'
from <script>:1

at
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:169)
at
com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:69)
at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:43)
at
com.sun.grizzly.jruby.rack.RackApplicationPoolAdapter.initializeObject(RackApplicationPoolAdapter.java:15)
at com.sun.grizzly.pool.DynamicPool$1.run(DynamicPool.java:431)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jruby.exceptions.RaiseException: IO error -- rack/file
at
(unknown).new(file:/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/glassfish-0.9.1-universal-java/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:91)
at
#<Class:01xc3f750>.new(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at
Kernel.instance_eval(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at
Kernel.instance_eval(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at
Rack::Builder.initialize(file:/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/glassfish-0.9.1-universal-java/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:89)
at #<Class:01xc3f750>.new(<script>:1)
at
(unknown).(unknown)(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at
Kernel.instance_eval(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at
Kernel.instance_eval(/usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22)
at Rack::Builder.initialize(<script>:1)
at (unknown).(unknown)(:1)
Caused by: java.lang.StackOverflowError
at
org.jruby.runtime.ThreadContext.preMethodFrameAndScope(ThreadContext.java:1086)
at
org.jruby.internal.runtime.methods.CallConfiguration$1.pre(CallConfiguration.java:27)
at
org.jruby.internal.runtime.methods.DefaultMethod.jitPre(DefaultMethod.java:385)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:235)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:114)
at
ruby.jit.ruby.srv.www.vhosts.mephisto.vendor.plugins.aaa.init.inherited_with_mixins29378544_3756026.__file__(init.rb:70)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:237)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:114)
at
ruby.jit.ruby.srv.www.vhosts.mephisto.vendor.plugins.aaa.init.inherited_with_mixins29378544_3756026.__file__(init.rb:70)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:237)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:114)
        ....
08264fc914cfb45adfea6c2f36f70b21?d=identicon&s=25 Jacob Kessler (Guest)
on 2009-01-15 20:09
(Received via mailing list)
I'm not familiar with Mephisto, but your root error is a stack overflow
happening down towards the bottom of the error that you posted. I'm not
sure if Mephisto has a particularly deep stack, but you might try
getting Jruby to increase the thread stack size (-Xss1M or something).
If there is an actual problem (like an infinite recursion), this won't
solve that, though.

Josh Moore wrote:
> running with the Glassfish gem please let me know.
> from
> /usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/builder.rb:22:in
> `instance_eval'
> from
> at
> at
> at
> at
> 
ruby.jit.ruby.srv.www.vhosts.mephisto.vendor.plugins.aaa.init.inherited_with_mixins29378544_3756026.__file__(init.rb:70)
> at
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:237)
> at
> org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
> at
> org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:64)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:114)
>         ....
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.