openwebbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurkan Erdogdu (JIRA)" <>
Subject [jira] Closed: (OWB-77) exception when running OpenWebBeans + MyFaces apps in tomcat
Date Sun, 11 Oct 2009 14:08:31 GMT


Gurkan Erdogdu closed OWB-77.

    Resolution: Fixed

This is not related to OWB.

> exception when running OpenWebBeans + MyFaces apps in tomcat
> ------------------------------------------------------------
>                 Key: OWB-77
>                 URL:
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: M1
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
> This is only for documenting a partly known bug!
> MyFaces has a workaround for a tomcat bug with initialising the default JspFactory.
> This results in the following exception:
> 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>
> 	javax.faces.FactoryFinder.getFactory(
> 	javax.faces.webapp.FacesServlet.init(
> 	org.apache.catalina.valves.ErrorReportValve.invoke(
> 	org.apache.catalina.connector.CoyoteAdapter.service(
> 	org.apache.coyote.http11.Http11Processor.process(
> 	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> The workaround is to include jasper.jar and jasper-el.jar in the webapp.
> But this is imho really dirty - so anyone knows another trick?
> The war has been built with
> $> mvn -Pjetty clean package and deployed into tomcat via manual upload

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message