[ 
https://issues.apache.org/jira/browse/MYFACES-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997581#comment-12997581
 ] 

Leonardo Uribe commented on MYFACES-3006:
-----------------------------------------

I think we have a misunderstanding here. If myfaces impl is on tomcat lib 
folder, for each web context it is active or started, myfaces is initialized 
for that context. In other words, initialization and shutdown is not shared 
across multiple wars. It some problem is present, it should be on tomcat's 
side. I don't see any code on myfaces that could cause the mentioned effect. If 
you stop the same context were the application is, the result is expected. I 
don't see any reason why let this issue open here, because there is no enough 
evidence to say this problem is caused by myfaces. If you can provide an 
example of this problem that could help to understand what is going on.

> FacesContext current instance is null in managed bean action method for 
> Tomcat 7
> --------------------------------------------------------------------------------
>
>                 Key: MYFACES-3006
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3006
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Gurkan Erdogdu
>            Assignee: Leonardo Uribe
>
> Hello, 
> Actually I am not sure that this is an error related with MyFaces.
> In a managed bean action method, I have stopped an application "Tomcat 
> Context"(not same with the current JSF application).
> public String stopContext(){
>      
>      FacesContext.getCurrentInsatnce() --> It is ok, faces context is not null
>      Context context = get Tomcat application context;
>      //Stop tomcat context
>      context.stop();   --> This is any application on Tomcat, not same with 
> current JSF application
>      FacesContext.getCurrentInstance() --> Problem, it is NULL
> }
> I think that Tomcat clear current JSF application thread locals. But I ask to 
> stop other application context, therefore it must not destroy current 
> application thread locals.
> What do you think?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to