Re: Re: Re: I need help


#1

hey nick,

That link implies that you shouldn't be using cookie based sessions... is that true?  If so will the next update to jruby-rack let us use Cookie based sessions?

Thanks!
Jay

Apr 6, 2009 11:43:42 AM, removed_email_address@domain.invalid wrote:
On Mon, Apr 6, 2009 at 5:11 AM, Mauro <removed_email_address@domain.invalid> wrote:
> 2009/4/6 Jay McGaffigan <removed_email_address@domain.invalid>:
>> If you are using glassfish.  Please post your server log.  I've been
>> deploying to GF successfully for a while now and found that the server log
>> is very helpful in pointing out what's going on.
>
> I'm using glassfish v3 prelude and jruby 1.2.0RC2.
> I go in administration console and deploy my Hello.war.
> This application prints only a "hello world" it doesn't no more.
> When I go to http://localhost:8080/Hello I see the rails welcome page
> but when I call the controller with its action say/hello, the message
> is:
> "
> We're sorry, but something went wrong.
>
> We've been notified about this issue and we'll take a look at it shortly.
> "
>
> The server.log is:
> "[#|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
> warning: already initialized constant VERSION
> |#]
>
> [#|2009-04-06T12:05:27.220+0200|SEVERE|glassfish|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=Thread-4;|WebModule[/Hello]unable
> to create shared application instance
> org.jruby.rack.RackInitializationException: uninitialized constant
> ActionController::Session::JavaServletStore

D'oh! So sorry, you've been bitten by the jruby-rack/Rails 2.3
incompatibility issue. It's described here:
http://wiki.jruby.org/wiki/Rails_2.3.2

This will be fixed in the next release of jruby-rack.

/Nick

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

#2

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
removed_email_address@domain.invalid wrote:

Apr 6, 2009 11:43:42 AM, removed_email_address@domain.invalid 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