[
http://jira.jboss.com/jira/browse/JBSEAM-2861?page=comments#action_12412114 ]
Bram Gadeyne commented on JBSEAM-2861:
--------------------------------------
I've got the same exception But not for "No application context active"
mine looks like this
Caused by: java.lang.IllegalStateException: No Factories configured for this Application.
This happens if the faces-initialization does not work at all - make sure that you
properly include all configuration settings necessary for a basic faces application and
that all the necessary libs are included. Also check the logging output of your web
application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some
special web-containers which do not support registering context-listeners via TLD files
and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
10:12:42,982 ERROR [STDERR] at
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
10:12:42,982 ERROR [STDERR] at
javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:798)
10:12:42,982 ERROR [STDERR] at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:525)
10:12:42,982 ERROR [STDERR] ... 137 more
I've used the seam-gen to create a new create a new project.
'IllegalStateException: No application context active' when
rendering email after application redeployment and action method invoked over WebService
----------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-2861
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2861
Project: Seam
Issue Type: Bug
Affects Versions: 2.0.0.CR2
Environment: WindowsXP; JBoss 4.2.0.GA; JDK1.5.0_10
Reporter: Kurt Edegger
Fix For: 2.1.x
I do get an 'IllegalStateException: No application context active' error, if my
Seam application tries to render an email after a WebService call as described in greater
detail in the forum thread
http://www.seamframework.org/Community/ApplicationContextConfusion.
The exception only occurs if the application is redeployed, not if the application is
deployed at server startup.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira