Forum: JRuby Re: Re: Re: I need help.

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.
3a4ecaf99c9189e75bff01d8334ca370?d=identicon&s=25 Jay McGaffigan (Guest)
on 2009-04-06 19:20
(Received via mailing list)
<html><head>

<link media="all" type="text/css"
href="/webmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet">
</head><body>
<br>hey nick,<br><br>That link implies that you shouldn't be using
cookie based sessions... is that true?&nbsp; If so will the next update
to jruby-rack let us use Cookie based
sessions?<br><br>Thanks!<br>Jay<br><br>Apr 6, 2009 11:43:42 AM, <a
href="mailto:user@jruby.codehaus.org" class="parsedEmail"
target="_blank">user@jruby.codehaus.org</a> wrote:<br><blockquote
style="border-left: 3px solid rgb(102, 153, 204);">On Mon, Apr 6, 2009
at 5:11 AM, Mauro &lt;<a href="mailto:mrsanna1@gmail.com"
target="_blank" class="parsedEmail
parsedEmail">mrsanna1@gmail.com</a>&gt; wrote:<br>&gt; 2009/4/6 Jay
McGaffigan &lt;<a href="mailto:hooligan495@verizon.net" target="_blank"
class="parsedEmail
parsedEmail">hooligan495@verizon.net</a>&gt;:<br>&gt;&gt; If you are
using glassfish.&nbsp; Please post your server log.&nbsp; I've
been<br>&gt;&gt; deploying to GF successfully for a while now and found
that the server log<br>&gt;&gt; is very helpful in pointing out what's
going on.<br>&gt;<br>&gt; I'm using glassfish v3 prelude and jruby
1.2.0RC2.<br>&gt; I go in administration console and deploy my
Hello.war.<br>&gt; This application prints only a "hello world" it
doesn't no more.<br>&gt; When I go to http://localhost:8080/Hello I see
the rails welcome page<br>&gt; but when I call the controller with its
action say/hello, the message<br>&gt; is:<br>&gt; "<br>&gt; We're sorry,
but something went wrong.<br>&gt;<br>&gt; We've been notified about this
issue and we'll take a look at it shortly.<br>&gt; "<br>&gt;<br>&gt; The
server.log is:<br>&gt;
"[#|2009-04-06T12:05:24.974+0200|SEVERE|glassfish|null|_ThreadID=20;_ThreadName=Thread-4;|/home/mauro/glassfish-v3-prelude/glassfish/domains/domain1/applications/Hello/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17<br>&gt;
warning: already initialized constant VERSION<br>&gt;
|#]<br>&gt;<br>&gt;
[#|2009-04-06T12:05:27.220+0200|SEVERE|glassfish|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=Thread-4;|WebModule[/Hello]unable<br>&gt;
to create shared application instance<br>&gt;
org.jruby.rack.RackInitializationException: uninitialized
constant<br>&gt;
ActionController::Session::JavaServletStore<br><br>D'oh! So sorry,
you've been bitten by the jruby-rack/Rails 2.3<br>incompatibility issue.
It's described here:<br><a href="http://wiki.jruby.org/wiki/Rails_2.3.2"
class="parsedLink"
target="_blank">http://wiki.jruby.org/wiki/Rails_2.3.2</a><br><br>...
will be fixed in the next release of
jruby-rack.<br><br>/Nick<br><br>---------------------------------------------------------------------<br>To
unsubscribe from this list, please visit:<br><br>    <a
href="http://xircles.codehaus.org/manage_email" class="parsedLink"
target="_blank">http://xircles.codehaus.org/manage_email</a><br><b...

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

    http://xircles.codehaus.org/manage_email
526d60de6472502bb570a9df2842b33b?d=identicon&s=25 Nick Sieger (Guest)
on 2009-04-06 20:21
(Received via mailing list)
Actually, what I'm doing in the next release of jruby-rack is to not
override Rails' default session, which is the cookie store. Changing
your own Rails application to use the cookie store should work fine,
but due to the way that JRuby-Rack tries to default to a java servlet
based session store, it may still require the workaround mentioned in
the link.

/Nick
On Mon, Apr 6, 2009 at 12:19 PM, Jay McGaffigan
<hooligan495@verizon.net> wrote:
> Apr 6, 2009 11:43:42 AM, user@jruby.codehaus.org wrote:
>> This application prints only a "hello world" it doesn't no more.
>>
> D'oh! So sorry, you've been bitten by the jruby-rack/Rails 2.3
> http://xircles.codehaus.org/manage_email
>
>
> --------------------------------------------------------------------- To
> unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email

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

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