[jboss-user] [Installation, Configuration & DEPLOYMENT] - FacesServlet mapping at JBossAS startup

BGrand do-not-reply at jboss.com
Wed Apr 9 06:17:13 EDT 2008


Hi !

I've an issue about FacesServlet mapping at my JBossAS server's startup...

The stacktrace in the console:
09:41:02,063 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource
  | 09:41:02,891 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
  | 09:41:02,891 INFO  [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation
  | 09:41:02,906 WARN  [AbstractFacesInitializer] No mappings of FacesServlet found. Abort initializing MyFaces.
  | 09:41:02,937 ERROR [[/]] StandardWrapper.Throwable
  | 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 che
  | ck 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>
  | 
  |         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
  |         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:102)
  |         at org.apache.myfaces.webapp.MyFacesServlet.init(MyFacesServlet.java:91)
  |         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
  |         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
  |         ...

And my jboss_home/server/default/deploy/jboss-web.deployer/conf:
<?xml version="1.0" encoding="ISO-8859-1"?>
  | <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  |     version="2.4">
  | 
  |   
  |   <context-param>
  |     <param-name>com.sun.faces.injectionProvider</param-name>
  |     <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
  |   </context-param>
  | 
  |    
  |    <listener>
  |       <listener-class>org.jboss.web.tomcat.security.SecurityFlushSessionListener</listener-class>
  |    </listener>
  | 
  |    <!-- Configures JSF for a web application if the javax.faces.webapp.FacesServlet is declared -->
  |    <!-- in web.xml.                                                                             -->
  |    <!--listener>
  |      <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
  |    </listener-->
  | 
  |    <!-- Listens to all web app lifecycle events so that @PreDestroy can be called on -->
  |    <!-- JSF managed beans that go out of scope.  You can comment this out if you     -->
  |    <!-- don't use JSF or you don't use annotations on your managed beans.            -->
  |    <!--listener>
  |       <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
  |    </listener-->
  |    
  |    <listener>
  |       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |    </listener>
  | 
  | 
  | 	<servlet>
  | 		<servlet-name>myFacesServlet</servlet-name>
  | 		<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
  |         
  |         <init-param> 
  |            <description>MyFaces tlds</description> 
  |            <param-name>tagLibJar0</param-name> 
  |            <param-value>myfaces-libs/myfaces-impl-1.2.2.jar</param-value> 
  |         </init-param>
  |         <init-param>
  | 	        <description>Tomahawk tlds</description>
  | 	        <param-name>tagLibJar1</param-name>
  | 	        <param-value>myfaces-libs/tomahawk-1.1.6.jar</param-value>
  |          </init-param>
  |          
  | 		<load-on-startup>1</load-on-startup>
  | 	</servlet>
  | 
  | 
  | 	<servlet-mapping>
  | 		<servlet-name>myFacesServlet</servlet-name>
  | 		<url-pattern>*.faces</url-pattern>
  | 	</servlet-mapping>
  | 
  | </web-app>

I searched and made test for a long time now, I'm a little lost... Does someone have and idea about this error ? What about this "not configured factory" ?

Thanks for all response or idea !!!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142656#4142656

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142656



More information about the jboss-user mailing list