Forum: JRuby grrrrrrrrrr...why It doesn't work under tomcat?

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.
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2009-04-15 16:42
(Received via mailing list)
I have rails 2.3.2 with jruby 1.2.0.
I create my application.war, deploy under tomcat and it is the error:
GRAVE: Exception caught
/home/u/apache-tomcat-6.0.18/webapps/jAlboFornitori/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/cgi_process.rb:49:in
`dispatch_cgi': undefined method `[]=' for nil:NilClass
(NoMethodError)

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

    http://xircles.codehaus.org/manage_email
526d60de6472502bb570a9df2842b33b?d=identicon&s=25 Nick Sieger (Guest)
on 2009-04-15 17:59
(Received via mailing list)
On Wed, Apr 15, 2009 at 7:42 AM, Mauro <mrsanna1@gmail.com> wrote:
> I have rails 2.3.2 with jruby 1.2.0.
> I create my application.war, deploy under tomcat and it is the error:
> GRAVE: Exception caught
> 
/home/u/apache-tomcat-6.0.18/webapps/jAlboFornitori/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/cgi_process.rb:49:in
> `dispatch_cgi': undefined method `[]=' for nil:NilClass
> (NoMethodError)

Sorry for your troubles. First, since you're using Rails 2.3.2, you
should install the newest jruby-rack jar file [1] and replace the
existing one in JRUBY_HOME/lib/ruby/gems/1.8/gems/warbler-0.9.12/lib
with it. I haven't had a chance to release a newer Warbler yet that
contains the jar. I'm hoping to work out a scheme that will allow me
to stop bundling jar files in the warbler gem, so it's more
independent of JRuby versions.

So try this first, and report back whether that fixed the problem.

Thanks,
/Nick

[1]: http://kenai.com/projects/jruby-rack/downloads/1100/download

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

    http://xircles.codehaus.org/manage_email
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2009-04-15 18:47
(Received via mailing list)
2009/4/15 Nick Sieger <nicksieger@gmail.com>:
> existing one in JRUBY_HOME/lib/ruby/gems/1.8/gems/warbler-0.9.12/lib
> with it. I haven't had a chance to release a newer Warbler yet that
> contains the jar. I'm hoping to work out a scheme that will allow me
> to stop bundling jar files in the warbler gem, so it's more
> independent of JRuby versions.
>
> So try this first, and report back whether that fixed the problem.

Under glassfish v3 prelude it works now :)
I have still problems with tomcat, perhaps it's my problem..

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

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