PDA

View Full Version : Resin 4.0.8 HessianServlet issues


swiegersf
07-05-2010, 10:28 AM
Hi there,

I just downloaded the latest Resin 4.0.8 to take it for a test drive. I have a CDI enabled web application running, but am unable to get it to work.

When I start up my server, I get the following output:


[12:21:16.501] {main} WebApp[http://default/alchemy-no-test-app-web] fail
[12:21:16.501] {main} 'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped].
[12:21:16.501] {main} Host[default] active
[12:21:16.501] {main}
[12:21:16.517] {main} http listening to *:8080
[12:21:16.533] {main}
[12:21:16.533] {main} Server[id=,cluster=] active
[12:21:16.533] {main} Resin[id=] started in 6578ms
[12:21:17.001] {http://*:8080-2} Loading .tld files from global classpath


Notice the new "'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped]." message (I don't get it in Resin 4.0.7).

Then, if I fire up my client, the server simply seems to crash:


[12:23:04.939] {http://*:8080-2} WebApp[http://default/alchemy-no-test-app-web] stopping
[12:23:07.314] {http://*:8080-2} WebApp[http://default/alchemy-no-test-app-web] fail
[12:23:07.314] {http://*:8080-2} 'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped].
[12:23:07.330] {http://*:8080-2} 'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped].
[12:23:07.376] {http://*:8080-1} WebApp[http://default/alchemy-no-test-app-web] stopping
[12:23:09.517] {http://*:8080-1} WebApp[http://default/alchemy-no-test-app-web] fail
[12:23:09.517] {http://*:8080-1} 'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped].
[12:23:09.517] {http://*:8080-1} 'SessionState' is an invalid @SessionScoped bean because it's not serializable for ManagedBeanImpl[SessionState, {@Default(), @Any()}, @SessionScoped].


The server then continue to produce these messages, seemingly forever.

swiegersf
07-07-2010, 07:28 AM
Sorry for the noise, entirely my fault. Seems like 4.0.8 is more strict at enforcing session scope's semantics, so a class that was never supposed to work is now correctly not working.