Glassfish gem and Mephisto problem


#1

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:ininitialize’
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:ininstance_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 :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:ininitialize’
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:ininstance_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 :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(: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(: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)


#2

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