2011-06-10 4 views
1

J'ai suivi strictement tous les points mentionnés dans le présent document, mais quand je lance mon application, il signale problème suivant lors de l'exécution sur Tomcat 6.0.29Problème lors de la migration vers richfaces 4

(j'ai Mozzara 2.0.4 et jstl1.1 inclus dans classpath).

application fonctionne parfaitement sur RichFaces 3.3.3

Il est 2 application JSF

GRAVES: Contexte démarrage [/ E360] a échoué en raison d'erreurs précédentes 10 juin 2011 01h48 : 05 PM com.sun.faces.config.ConfigureListener contextDestroyed SEVERE: exception inattendue lors de la tentative de suppression du moteur d'exécution Mojarra java.lang.NullPointerException at org.richfaces.application.CacheProvider.release (CacheProvider. java: 86) à org.richfaces.application.ServicesFactoryImpl.release (ServicesFactoryImpl.java:19) à org.richfaces.application.ServiceTracker.release (ServiceTracker.java:100) à org.richfaces.application.InitializationListener. onStop (InitializationListener.java:144)

<?xml version="1.0" encoding="UTF-8"?> 
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 

<filter> 
    <display-name>RichFaces Filter</display-name> 
    <filter-name>richfaces</filter-name> 
    <filter-class>org.ajax4jsf.Filter</filter-class> 
    <init-param> 
     <param-name>createTempFiles</param-name> 
     <param-value>false</param-value> 
    </init-param> 
</filter> 

<filter-mapping> 
    <filter-name>richfaces</filter-name> 
    <servlet-name>Faces Servlet</servlet-name> 
    <dispatcher>REQUEST</dispatcher> 
    <dispatcher>FORWARD</dispatcher> 
    <dispatcher>INCLUDE</dispatcher> 
</filter-mapping> 

<listener> 
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class> 
</listener> 
<context-param> 
    <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name> 
    <param-value>true</param-value> 
</context-param> 
<context-param>   
    <param-name>org.richfaces.SKIN</param-name> 
    <param-value>#{ThemeBean.theme}</param-value> 
</context-param> 
<context-param> 
    <param-name>org.richfaces.CONTROL_SKINNING</param-name> 
    <param-value>enable</param-value> 
</context-param> 
<servlet> 
    <servlet-name>Faces Servlet</servlet-name> 
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
    <load-on-startup>1</load-on-startup> 
</servlet> 
<servlet-mapping> 
    <servlet-name>Faces Servlet</servlet-name> 
    <url-pattern>*.jsf</url-pattern> 
</servlet-mapping> 
<session-config> 
    <session-timeout> 
     30 
    </session-timeout> 
</session-config> 
<welcome-file-list> 
    <welcome-file>index.jsp</welcome-file> 
</welcome-file-list> 

</web-app> 

Répondre

0

Vous ne avez plus besoin configuration du filtre dans RichFaces 4.

+0

Mais même après cela, il dit même chose: Une exception inattendue lors d'une tentative d'abattre le moteur d'exécution Mojarra –

Questions connexes