[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4623) ServletContext is application scoped even though several can exist in one .ear
Kasper Sørensen (JIRA)
jira-events at lists.jboss.org
Mon Apr 5 07:30:37 EDT 2010
[ https://jira.jboss.org/jira/browse/JBSEAM-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12523786#action_12523786 ]
Kasper Sørensen commented on JBSEAM-4623:
-----------------------------------------
Obviously this doesn't work on my machine.
>From the links you provide I cannot find any examples of multi war seam projects. Are there any that I can inspect? Or any docs ready on the subject?
Also, how do you then explain the debugging screenshot that I've attached to the Seam Forum reference?
http://www.seamframework.org/Community/UploadSeamMailPageAndSendIt
> ServletContext is application scoped even though several can exist in one .ear
> ------------------------------------------------------------------------------
>
> Key: JBSEAM-4623
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4623
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.1.CR1
> Reporter: Kasper Sørensen
> Fix For: 2.2.1.CR2
>
> Attachments: multiple-servlet-contexts.patch
>
>
> When creating an .ear project with multiple .war files, several servlet contexts will exist, but Seam registers only a single servlet context in the application scope. This application scoped servlet context is used a lot of places through the ServletLifecycle class.
> To reproduce, try the following:
> ServletContext servletLifecycleServletContext = ServletLifecycle.getCurrentServletContext();
> ServletContext facesContextServletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
> This will return two different servlet contexts if called from the webapp that was not registered in application scope.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list