EDIT: The solution, which you can find in the comments below, involves changing the JSF Deployment from MyFaces to Sun Mojarra.
Hi,
I have a very nasty problem with MyFaces 2.0.0 (more precisely, I tested it on both 2.0.1 and 2.0.2, and the problem remains).
Now I am writing an application under MyFaces. In short, in my application I use the frameworks: Spring, Hibernate, JSF (MyFaces implementation) My application container is Tomcat (version 6.0.29) I use maven to build and deploy (version 3.0).
The problem is that when trying to redirect the application through maven (mvn tomcat: redeploy), it first tries to deploy the application and deploy it again. But deployment never succeeds. I have information:
SEVERE: The web application [/adam] created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4b0a4d7c]) and a value of type
[org.apache.myfaces.config.RuntimeConfig] (value org.apache.myfaces.config.RuntimeConfig@11652e61])
but failed to remove it when the web application was stopped.
This is very likely to create a memory leak.
Due to this error, tomcat cannot deploy the application:
INFO: Undeploying context [/adam]
2010-12-02 11:47:46 org.apache.catalina.startup.ExpandWar deleteDir
SEVERE: [D:\Program Files\apache-tomcat-6.0.29\webapps\adam\WEB-INF\lib] could not be completely deleted. The presence of the remaining files may cause problems
2010-12-02 11:47:46 org.apache.catalina.startup.ExpandWar deleteDir
SEVERE: [D:\Program Files\apache-tomcat-6.0.29\webapps\adam\WEB-INF] could not be completely deleted. The presence of the remaining files may cause problems
2010-12-02 11:47:46 org.apache.catalina.startup.ExpandWar deleteDir
SEVERE: [D:\Program Files\apache-tomcat-6.0.29\webapps\adam] could not be completely deleted. The presence of the remaining files may cause problems
2010-12-02 11:47:46 org.apache.catalina.startup.ExpandWar delete
SEVERE: [D:\Program Files\apache-tomcat-6.0.29\webapps\adam] could not be completely deleted. The presence of the remaining files may cause problems
2010-12-02 11:47:49 org.apache.catalina.startup.HostConfig deployDirectory
WEB-INF\lib , Log4J, .
, ELFactoryImpl:
SEVERE: The web application [/adam] created a ThreadLocal with key of type [null]
(value [org.apache.myfaces.el.convert.VariableResolverToELResolver$1@693985fc])
and a value of type [java.util.HashSet] (value [[]]) but failed to remove it
when the web application was stopped.
This is very likely to create a memory leak.
?
, .
myface jira: https://issues.apache.org/jira/browse/MYFACES-2942
, . 2.0.3?
, EL .
, !;) , .