IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JSF Java Discussion :

Erreur de déploiment lorsque j'ajoute jsf-facelets.jar à mon projet


Sujet :

JSF Java

  1. #1
    Nouveau membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2012
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2012
    Messages : 33
    Points : 25
    Points
    25
    Par défaut Erreur de déploiment lorsque j'ajoute jsf-facelets.jar à mon projet
    Bonsoir,
    je développe un projet sous hibernate/spring/jsf , le deploiment du projet se passait normal jusqu'à ce que je voulais travailler avec des facelets, lorsque j'ajoute le jar jsf-faclets-1.1.15 à mon projet, j'ai l'erreur suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
     
    GRAVE: Critical error during deployment: 
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Must have a Constructor that takes in a ComponentConfig
    	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375)
    	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
    	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: javax.faces.view.facelets.FaceletException: Must have a Constructor that takes in a ComponentConfig
    	at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:295)
    	at com.sun.faces.facelets.tag.AbstractTagLibrary.addComponent(AbstractTagLibrary.java:525)
    	at com.sun.faces.facelets.tag.TagLibraryImpl.putComponent(TagLibraryImpl.java:115)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:569)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:361)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
    	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)
    	... 9 more
    Caused by: java.lang.NoSuchMethodException: org.ajax4jsf.taglib.html.facelets.ActionParamHandler.<init>(javax.faces.view.facelets.ComponentConfig)
    	at java.lang.Class.getConstructor0(Unknown Source)
    	at java.lang.Class.getConstructor(Unknown Source)
    	at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:293)
    	... 16 more
    6 avr. 2012 21:16:35 org.apache.catalina.core.StandardContext listenerStart
    GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) com.sun.faces.config.ConfigureListener
    java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Must have a Constructor that takes in a ComponentConfig
    	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
    	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Must have a Constructor that takes in a ComponentConfig
    	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375)
    	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
    	... 8 more
    Caused by: javax.faces.view.facelets.FaceletException: Must have a Constructor that takes in a ComponentConfig
    	at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:295)
    	at com.sun.faces.facelets.tag.AbstractTagLibrary.addComponent(AbstractTagLibrary.java:525)
    	at com.sun.faces.facelets.tag.TagLibraryImpl.putComponent(TagLibraryImpl.java:115)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:569)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:361)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:314)
    	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
    	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)
    	... 9 more
    Caused by: java.lang.NoSuchMethodException: org.ajax4jsf.taglib.html.facelets.ActionParamHandler.<init>(javax.faces.view.facelets.ComponentConfig)
    	at java.lang.Class.getConstructor0(Unknown Source)
    	at java.lang.Class.getConstructor(Unknown Source)
    	at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:293)
    	... 16 more
    6 avr. 2012 21:16:35 org.apache.catalina.core.StandardContext startInternal
    GRAVE: Error listenerStart
    6 avr. 2012 21:16:35 org.apache.catalina.core.StandardContext startInternal
    GRAVE: Erreur de démarrage du contexte [/parametrageHibernate] suite aux erreurs précédentes
    6 avr. 2012 21:16:35 javax.faces.FactoryFinder$FactoryManager getFactory
    GRAVE: L’application n’a pas été initialisée correctement au démarrage. Impossible de localiser la Fabrique : javax.faces.application.ApplicationFactory. Attempting to find backup.
    6 avr. 2012 21:16:35 com.sun.faces.config.ConfigureListener contextDestroyed
    GRAVE: Unexpected exception when attempting to tear down the Mojarra runtime
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. 
    	at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
    	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
    	at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131)
    	at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328)
    	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763)
    	at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473)
    	at java.lang.Thread.run(Unknown Source)
    6 avr. 2012 21:16:35 org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    2012-04-06 21:16:35,490 INFO [stop children - Catalina:j2eeType=WebModule,name=//localhost/parametrageHibernate,J2EEApplication=none,J2EEServer=none] org.springframework.web.context.support.XmlWebApplicationContext - Closing org.springframework.web.context.support.XmlWebApplicationContext@412739: display name [Root WebApplicationContext]; startup date [Fri Apr 06 21:16:32 WET 2012]; root of context hierarchy - 3324 
     2012-04-06 21:16:35,491 INFO [stop children - Catalina:j2eeType=WebModule,name=//localhost/parametrageHibernate,J2EEApplication=none,J2EEServer=none] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@174be7: defining beans [dataSource,sessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,administrateurService,applicationService,comiteService,directionService,menuService,metierService,profilService,serviceService,typeProfilService,typeServiceService,utilisateurService,applicationBean,authentificationBean,comiteinformatiqueBean,directionBean,menuBean,metierBean,profilBean,serviceBean,testBean,typeProfilBean,typeServiceBean,utilisateurBean]; root of factory hierarchy - 3325 
     2012-04-06 21:16:35,491 INFO [stop children - Catalina:j2eeType=WebModule,name=//localhost/parametrageHibernate,J2EEApplication=none,J2EEServer=none] org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean - Closing Hibernate SessionFactory - 3325 
     2012-04-06 21:16:35,491 INFO [stop children - Catalina:j2eeType=WebModule,name=//localhost/parametrageHibernate,J2EEApplication=none,J2EEServer=none] org.hibernate.impl.SessionFactoryImpl - closing - 3325 
     6 avr. 2012 21:16:35 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    GRAVE: The web application [/parametrageHibernate] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    6 avr. 2012 21:16:35 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    6 avr. 2012 21:16:35 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    6 avr. 2012 21:16:35 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 12727 ms
    en pièces jointes les jars que j'utilise :



    et le contenu de mon web.xml:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
     
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0"
     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_3_0.xsd">
     <display-name>Parametrage</display-name>
     <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath:application-context.xml</param-value>
     </context-param>
     <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
    </context-param>
      <context-param>
      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
     </context-param>
     <filter>
      <filter-name>RichFaces Filter</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
     </filter>
     <filter-mapping>
      <filter-name>RichFaces Filter</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
     </filter-mapping>
     <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
     <listener>
      <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
     </listener>
     <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>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
     <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
    </web-app>
    si il s''agit d'un conflit des jars veuiilez svp me l'indiquer , sinon j'ai une autre question , normalement je devellope mes pages en jsf et je nomme mes page en .jsp , est ce que je peux y integrer des facelets sachant que les facelets c'est en .xhtml , parce que c'est ça mon but. ce probleme de deploiment me bloque deja :s, merci d'avance
    Images attachées Images attachées   

  2. #2
    Nouveau membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2012
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2012
    Messages : 33
    Points : 25
    Points
    25
    Par défaut
    personne ne peut m'aider? je suis désespérée là j'ai essayé de travailler avec les tiles mais là aussi ça va pas, est ce qu'il y a une autre façon pour insérer des composantes (header, contenu ...) dans ma page jsf sans utiliser les facelets ???

  3. #3
    Membre régulier Avatar de mr1azl
    Homme Profil pro
    Développeur Java
    Inscrit en
    Février 2011
    Messages
    77
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Finance

    Informations forums :
    Inscription : Février 2011
    Messages : 77
    Points : 107
    Points
    107
    Par défaut
    essaye de voir ce lien . Sinon je crois que tu as un conflit entre tes jars ! A mon avis vaut mieux les revoir et n'ajouter que les indisponsables.

  4. #4
    Nouveau membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2012
    Messages
    33
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2012
    Messages : 33
    Points : 25
    Points
    25
    Par défaut
    merci beaucoup, effectivement c’était un problème de configuration , il fallait que j'ajoute des lignes dans mon fichier web.xml , pas evident pour un debutant de travailler avec hibernate/spring./jsf/richfaces/faclets aux même temps , c'est de la folie pour moi

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 24/03/2010, 18h47
  2. [PR-2007] Erreur au moment de l'ajout d'un livrable au projet
    Par Jean-Claude Dusse dans le forum Project
    Réponses: 2
    Dernier message: 26/07/2009, 16h48
  3. comment configurer ajouter mes librairies dans mon projet web ?
    Par Chikh001 dans le forum Servlets/JSP
    Réponses: 5
    Dernier message: 22/10/2007, 11h08
  4. Réponses: 6
    Dernier message: 30/12/2006, 15h18
  5. Ajouter des nouveaux package à mon projet
    Par mikky dans le forum JBuilder
    Réponses: 3
    Dernier message: 31/03/2005, 07h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo