[
https://issues.apache.org/jira/browse/OWB-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ali Ok updated OWB-277:
-----------------------
Attachment: patches.zip
----Attachment is intended for explanation, not inclusion.-----
I tried OWB-MyFaces on GAE with modified samples/guess application yesterday
and I got an error after login page.
When I debugged it, I saw the session is null in
WebApplicationLifeCycle#requestStarted which is called by listener
WebBeansConfigurationListener#requestInitialized when a new request is made.
In this case, a new session is created is created using
"httpRequest.getSession();"(without parameter)(at line 128, revision 907112) to
make WebBeansConfigurationListener#sessionCreated method invoked and init the
session context.
However, here, I got "java.lang.IllegalStateException: No SessionHandler or
SessionManager" exception(which is discussed at [1] and has been fired a bug
[2]), but exception is logged and OWB continued running seemlessly.
My application worked on Jetty 6.1.22, Tomcat 6.0.x, but didnt work on the
Jetty used in GAE. ServletRequestListeners cannot access or create sessions in
this version[1].
This is about the container and as Matthias said [3] using a newer version will
fix this. However, on GAE, we cannot do it :)
Then I wrote a simple filter which initializes the session context, and runs
before Faces Servlet and after WebBeansConfigurationListener#requestInitialized
and it worked.
Please see the attached file.
Is there a better workaround for this bug since I cannot upgrade the container?
Other than this problem, OWB runs fine on GAE.
[1] http://jira.codehaus.org/browse/JETTY-910
[2] https://issues.apache.org/jira/browse/OWB-78
[3] http://www.mail-archive.com/[email protected]/msg42220.html
> Owb on Google App Engine
> ------------------------
>
> Key: OWB-277
> URL: https://issues.apache.org/jira/browse/OWB-277
> Project: OpenWebBeans
> Issue Type: New Feature
> Components: New Features
> Affects Versions: 1.0.0
> Environment: Google App Engine 1.3.0
> Reporter: Ali Ok
> Assignee: Gurkan Erdogdu
> Priority: Minor
> Attachments: patches.zip
>
>
> Implement support for Google App Engine
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.