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 :

Problème avec JSF et apache CXF


Sujet :

JSF Java

  1. #1
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut Problème avec JSF et apache CXF
    j'utilisait apache cxf pour les webservices avec struts sans problème mais quand j'ai décidé de travailler avec JSF je crois qu'il y a un problème de compatibilité avec cxf et jsf

    apache tocamt plante ici :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    avr. 18, 2012 5:17:35 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_2.5_spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    après il m'affiche les message du timeout même si j'augmenter le timeout c'e la même chose.

  2. #2
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    Bonjour,
    quelle version de servlet-api.jar utilises-tu ?
    Quelle version de JSF utilises tu ?
    Quelle version de tomcat utilises-tu ?
    Qu'as tu mis dans ton web.xml ?
    Utilises tu Maven ou Ant ? Si Maven, pense à mettre servlet-api en scope provided.

    Cordialement,
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  3. #3
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    Bonjour,
    Citation Envoyé par paissad Voir le message
    quelle version de servlet-api.jar utilises-tu ?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.2
    Created-By: 1.6.0_29-b11 (Sun Microsystems Inc.)
    X-Compile-Source-JDK: 1.6
    X-Compile-Target-JDK: 1.6
     
    Name: javax/servlet/
    Specification-Title: Java API for Servlets
    Specification-Version: 3.0
    Specification-Vendor: Sun Microsystems, Inc.
    Implementation-Title: javax.servlet
    Implementation-Version: 3.0.FR
    Implementation-Vendor: Apache Software Foundation
    Citation Envoyé par paissad Voir le message
    Quelle version de JSF utilises tu ?
    Citation Envoyé par paissad Voir le message
    Quelle version de tomcat utilises-tu ?
    Citation Envoyé par paissad Voir le message
    Qu'as tu mis dans ton 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
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
     
      <display-name>JSF</display-name>
     
     
      <!-- Welcome page -->
      <welcome-file-list>
        <welcome-file>index.xhtml</welcome-file>
      </welcome-file-list>
     
     
      <!-- JSF mapping -->
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
     
    	<!--
    		Le controleur intervient pour toutes les URL débutant par /faces/
    	-->
    	<servlet-mapping>
    		<servlet-name>Faces Servlet</servlet-name>
    		<url-pattern>*.xhtml</url-pattern>
    	</servlet-mapping>
     
     
     
      <!-- Add Support for Spring -->
      <listener>
    	<listener-class>
    		org.springframework.web.context.ContextLoaderListener
    	</listener-class>
      </listener>
     
      <listener>
    	<listener-class>
    		org.springframework.web.context.request.RequestContextListener
    	</listener-class>
      </listener>
     
     
     
    </web-app>
    Citation Envoyé par paissad Voir le message
    Utilises tu Maven ou Ant ? Si Maven, pense à mettre servlet-api en scope provided.
    non j'utilise pas maven juste spring

    Cordialement,

  4. #4
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    Reposte la trace complète de l'exception stp.
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  5. #5
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    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
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    avr. 18, 2012 4:21:01 PM org.apache.catalina.core.AprLifecycleListener init
    Infos: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;E:\app\Yous\product\11.1.0\db_1\bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\Windows Live\Shared;;D:\eclipse;;.
    avr. 18, 2012 4:21:01 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    Avertissement: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSF' did not find a matching property.
    avr. 18, 2012 4:21:01 PM org.apache.coyote.AbstractProtocol init
    Infos: Initializing ProtocolHandler ["http-bio-8081"]
    avr. 18, 2012 4:21:01 PM org.apache.coyote.AbstractProtocol init
    Infos: Initializing ProtocolHandler ["ajp-bio-8009"]
    avr. 18, 2012 4:21:01 PM org.apache.catalina.startup.Catalina load
    Infos: Initialization processed in 492 ms
    avr. 18, 2012 4:21:01 PM org.apache.catalina.core.StandardService startInternal
    Infos: Démarrage du service Catalina
    avr. 18, 2012 4:21:01 PM org.apache.catalina.core.StandardEngine startInternal
    Infos: Starting Servlet Engine: Apache Tomcat/7.0.27
    avr. 18, 2012 4:21:01 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_2.5_spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    avr. 18, 2012 4:21:01 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    avr. 18, 2012 4:21:29 PM org.apache.catalina.core.ContainerBase startInternal
    Grave: A child container failed during start
    java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
    	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
    	at java.util.concurrent.FutureTask.get(Unknown Source)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1128)
    	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
    	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    	at java.util.Arrays.copyOfRange(Unknown Source)
    	at java.lang.String.<init>(Unknown Source)
    	at java.io.DataInputStream.readUTF(Unknown Source)
    	at java.io.DataInputStream.readUTF(Unknown Source)
    	at org.apache.tomcat.util.bcel.classfile.ConstantUtf8.<init>(ConstantUtf8.java:48)
    	at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:129)
    	at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
    	at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
    	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2032)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1923)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1891)
    	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1877)
    	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1270)
    	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
    	... 8 more
     
    avr. 18, 2012 4:21:32 PM org.apache.catalina.core.ContainerBase startInternal
    Grave: A child container failed during start
    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
    	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
    	at java.util.concurrent.FutureTask.get(Unknown Source)
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1128)
    	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
    	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1136)
    	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	... 7 more
     
    avr. 18, 2012 4:21:32 PM org.apache.catalina.startup.Catalina start
    Grave: Catalina.start: 
    org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	... 7 more
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	... 9 more
    Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1136)
    	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	... 11 more
     
    avr. 18, 2012 4:21:32 PM org.apache.catalina.startup.Catalina start
    Infos: Server startup in 30644 ms
    et apres quelque seconde il m'affiche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.

  6. #6
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    Qu'est ce que ces .jar viennent faire dans ton CLASSPATH ? voire dans ton application tout court ^^
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    geronimo-servlet********
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_2.5_spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    d'ailleurs, je me demande même si tu as réellement compris les choix de tes .jars
    Pourrais t-on avoir un aperçu de la liste des .jars de ton projet ?
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  7. #7
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    j'ai rien compri pour le choix

    D:\workspace\JSF\WebContent\WEB-INF\lib

    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
     2 591 670 javax.faces-2.1.7.jar
        52 564 org-apache-commons-logging.jar
     1 645 554 primefaces-3.2.jar
       315 577 spring-aop-3.0.6.RELEASE.jar
        51 227 spring-asm-3.0.6.RELEASE.jar
        35 502 spring-aspects-3.0.6.RELEASE.jar
       544 513 spring-beans-3.0.6.RELEASE.jar
       658 141 spring-context-3.0.6.RELEASE.jar
        99 686 spring-context-support-3.0.6.RELEASE.jar
       374 661 spring-core-3.0.6.RELEASE.jar
       166 239 spring-expression-3.0.6.RELEASE.jar
         1 804 spring-instrument-3.0.6.RELEASE.jar
         5 647 spring-instrument-tomcat-3.0.6.RELEASE.jar
       378 531 spring-jdbc-3.0.6.RELEASE.jar
       181 917 spring-jms-3.0.6.RELEASE.jar
       328 062 spring-orm-3.0.6.RELEASE.jar
        60 119 spring-oxm-3.0.6.RELEASE.jar
        30 763 spring-struts-3.0.6.RELEASE.jar
       200 973 spring-test-3.0.6.RELEASE.jar
       228 113 spring-tx-3.0.6.RELEASE.jar
       390 125 spring-web-3.0.6.RELEASE.jar
       410 255 spring-webmvc-3.0.6.RELEASE.jar
       172 020 spring-webmvc-portlet-3.0.6.RELEASE.jar
    Repertoire de D:\apache-cxf-2.6.0\lib la librairie de CXF que j'ai ajouté dans le build path (ici on trouve geronimo-servlet)
    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
     
     
     
    27/03/2012  19:08           445 288 antlr-2.7.7.jar
    27/03/2012  19:03             4 467 aopalliance-1.0.jar
    27/03/2012  19:03            43 581 asm-3.3.1.jar
    27/03/2012  19:01           575 389 commons-collections-3.2.1.jar
    27/03/2012  19:04           284 220 commons-lang-2.6.jar
    27/03/2012  18:59            60 686 commons-logging-1.1.1.jar
    12/04/2012  15:31         6 232 585 cxf-2.6.0.jar
    12/04/2012  15:44            14 748 cxf-manifest.jar
    12/04/2012  15:27           172 381 cxf-services-sts-core-2.6.0.jar
    12/04/2012  15:29           233 081 cxf-services-wsn-api-2.6.0.jar
    12/04/2012  15:29            60 323 cxf-services-wsn-core-2.6.0.jar
    30/03/2012  11:49            10 734 cxf-xjc-boolean-2.6.0.jar
    30/03/2012  11:50            11 193 cxf-xjc-bug671-2.6.0.jar
    30/03/2012  11:48            15 761 cxf-xjc-dv-2.6.0.jar
    30/03/2012  11:50            11 573 cxf-xjc-runtime-2.6.0.jar
    30/03/2012  11:49            12 188 cxf-xjc-ts-2.6.0.jar
    27/03/2012  19:11         1 224 612 ehcache-core-2.5.1.jar
    12/04/2012  15:47    <REP>          endorsed
    27/03/2012  19:03           290 149 FastInfoset-1.2.9.jar
    27/03/2012  18:58            47 465 geronimo-activation_1.1_spec-1.1.jar
    27/03/2012  19:04            12 452 geronimo-annotation_1.0_spec-1.1.1.jar
    27/03/2012  18:59           223 298 geronimo-javamail_1.4_spec-1.7.1.jar
    27/03/2012  19:08            60 171 geronimo-jaxws_2.2_spec-1.1.jar
    27/03/2012  19:04            32 359 geronimo-jms_1.1_spec-1.1.1.jar
    27/03/2012  19:07            71 301 geronimo-servlet_2.5_spec-1.1.2.jar
    27/03/2012  19:07            96 323 geronimo-servlet_3.0_spec-1.0.jar
    27/03/2012  18:59            28 804 geronimo-stax-api_1.0_spec-1.0.1.jar
    27/03/2012  19:29            15 572 geronimo-ws-metadata_2.0_spec-1.1.3.jar
    27/03/2012  19:04           192 602 isorelax-20030108.jar
    28/03/2012  12:20            99 570 jaxb-api-2.2.6.jar
    28/03/2012  12:19         1 105 271 jaxb-impl-2.2.5.jar
    28/03/2012  12:19         3 473 235 jaxb-xjc-2.2.5.jar
    27/03/2012  19:09            75 963 jettison-1.3.1.jar
    27/03/2012  19:07            20 195 jetty-continuation-7.5.4.v20111024.jar
    27/03/2012  19:07           115 084 jetty-http-7.5.4.v20111024.jar
    27/03/2012  19:07            90 950 jetty-io-7.5.4.v20111024.jar
    27/03/2012  19:07            83 049 jetty-security-7.5.4.v20111024.jar
    27/03/2012  19:07           307 309 jetty-server-7.5.4.v20111024.jar
    27/03/2012  19:07           215 624 jetty-util-7.5.4.v20111024.jar
    27/03/2012  19:10           543 044 joda-time-1.6.2.jar
    27/03/2012  19:10           871 260 js-1.7R2.jar
    27/03/2012  19:07            46 367 jsr311-api-1.1.1.jar
    30/03/2012  12:28            39 131 mimepull-1.7.jar
    27/03/2012  19:04           681 905 msv-core-2011.1.jar
    07/04/2012  22:10            71 320 neethi-3.0.2.jar
    27/03/2012  19:11            44 209 oauth-20100527.jar
    27/03/2012  19:11            11 744 oauth-provider-20100527.jar
    27/03/2012  19:11         1 352 924 opensaml-2.5.1-1.jar
    27/03/2012  19:11           565 330 openws-1.4.2-1.jar
    27/03/2012  19:04            19 255 relaxngDatatype-20020414.jar
    27/03/2012  19:29            24 747 saaj-api-1.3.4.jar
    30/03/2012  12:28           290 208 saaj-impl-1.3.18.jar
    27/03/2012  19:04           278 281 serializer-2.7.1.jar
    27/03/2012  19:03            25 689 slf4j-api-1.6.2.jar
    27/03/2012  19:06             8 891 slf4j-jdk14-1.6.2.jar
    27/03/2012  19:03           321 435 spring-aop-3.0.7.RELEASE.jar
    27/03/2012  19:03            53 082 spring-asm-3.0.7.RELEASE.jar
    27/03/2012  19:03           556 747 spring-beans-3.0.7.RELEASE.jar
    27/03/2012  19:03           670 388 spring-context-3.0.7.RELEASE.jar
    27/03/2012  19:03           383 621 spring-core-3.0.7.RELEASE.jar
    27/03/2012  19:03           169 749 spring-expression-3.0.7.RELEASE.jar
    27/03/2012  19:06           185 555 spring-jms-3.0.7.RELEASE.jar
    27/03/2012  19:05           232 066 spring-tx-3.0.7.RELEASE.jar
    27/03/2012  19:03           182 112 stax2-api-3.1.1.jar
    27/03/2012  19:04           449 505 velocity-1.7.jar
    12/04/2012  15:06             3 445 WHICH_JARS
    27/03/2012  19:03           478 935 woodstox-core-asl-4.1.2.jar
    27/03/2012  19:03           148 429 wsdl4j-1.6.2.jar
    29/03/2012  09:11           411 502 wss4j-1.6.5.jar
    27/03/2012  19:04         3 176 148 xalan-2.7.1.jar
    27/03/2012  19:04            84 091 xml-resolver-1.2.jar
    27/03/2012  19:07         2 722 970 xmlbeans-2.5.0.jar
    07/04/2012  14:47           162 812 xmlschema-core-2.0.2.jar
    27/03/2012  19:11           607 192 xmlsec-1.5.1.jar
    27/03/2012  19:11           610 865 xmltooling-1.3.2-1.jar
    27/03/2012  19:04           229 348 xsdlib-2010.1.jar

    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
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
     
      <display-name>JSF</display-name>
     
     
      <!-- Welcome page -->
      <welcome-file-list>
        <welcome-file>index.xhtml</welcome-file>
      </welcome-file-list>
     
     
      <!-- JSF mapping -->
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
     
    	<!--
    		Le controleur intervient pour toutes les URL débutant par /faces/
    	-->
    	<servlet-mapping>
    		<servlet-name>Faces Servlet</servlet-name>
    		<url-pattern>*.xhtml</url-pattern>
    	</servlet-mapping>
     
     
     
      <!-- Add Support for Spring -->
      <listener>
    	<listener-class>
    		org.springframework.web.context.ContextLoaderListener
    	</listener-class>
      </listener>
        <!-- 
      <listener>
     
    	<listener-class>
    		org.springframework.web.context.request.RequestContextListener
    	</listener-class>
      </listener>
       -->
     
     
    </web-app>
    faces-config.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
    <?xml version="1.0" encoding="UTF-8"?>
     
    <faces-config
        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-facesconfig_2_0.xsd"
        version="2.0">
     
     
    	<application>
        	<el-resolver>
        		org.springframework.web.jsf.el.SpringBeanFacesELResolver
        	</el-resolver>
      	</application>
     
     
     
      <navigation-rule>
        <from-view-id>/index.xhtml</from-view-id>
        <navigation-case>
          <from-outcome>ajouter</from-outcome>
          <to-view-id>/welcome.xhtml</to-view-id>
        </navigation-case>
      </navigation-rule>
     
     
    </faces-config>
    pour l'instant j'utilise pas de bean dans l'application Context

  8. #8
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    Justement, tu ne devrais pas prendre tous les jars qui se trouvent dans le répertoire "D:\apache-cxf-2.6.0\lib", certainement pas.
    Déjà pour commencer, il faut savoir que geronimo-servlet_2.5_spec-1.1.2.jar et geronimo-servlet_3.0_spec-1.0.jar sont respectivement les specs (API) de servlet-api 2.5 et servlet-api 3.0 (JEE6). En cela, tu ne dois en prendre qu'un seul.
    Et mis à part cela, tu devrais d'abord te renseigner sur chaque .jar avant de l'ajouter à ton projet
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  9. #9
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    meme si j'ai enlevé tout les geronimo-*de la librairie de cxf l'erreure est la meme il y a juste la disparition de ces 2 ligne du log
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_2.5_spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Infos: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\JSF\WEB-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    mais l'exception est la même

  10. #10
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    relis bien ma réponse. Il ne s'agit pas que des geronimo-***, tu te rends compte que tu es entrain d'ajouter à tout va des libs dans ton projet sans raison ?

    Par ailleurs, fais des clean de ton serveur tomcat (via Eclipse) avant de relancer/
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  11. #11
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    cette exception te dit rien :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    peut être une boucle infinie cyclique qui engendre le :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

  12. #12
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    le problème est dans le jar de JSF car il y a un projet struts qui marche bien avec les jar de cxf mais juste pour test quand j'ajout le jar de JSF à la lib du projet Struts le tomcat plante avec la même erreure !!

  13. #13
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    Citation Envoyé par paissad Voir le message
    relis bien ma réponse. Il ne s'agit pas que des geronimo-***, tu te rends compte que tu es entrain d'ajouter à tout va des libs dans ton projet sans raison ?
    mais pour CXF je l'ai telecharger sur leur site d'apache cxf, comment faire pour eliminé les jar nuisibles ?

  14. #14
    Membre très actif
    Inscrit en
    Août 2007
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Août 2007
    Messages : 260
    Par défaut
    Citation Envoyé par paissad Voir le message
    relis bien ma réponse. Il ne s'agit pas que des geronimo-***, tu te rends compte que tu es entrain d'ajouter à tout va des libs dans ton projet sans raison ?

    Par ailleurs, fais des clean de ton serveur tomcat (via Eclipse) avant de relancer/
    oui effectivement c’était ça le problème j'ajoutais tout les jar de cxf dans le .zip que j'ai téléchargé du site officiel cependant ils ne sont pas tous nécessaire ce qui générer une incompatibilité
    voila les jar nécessaires :
    http://cxf.apache.org/docs/a-simple-jax-ws-service.html

  15. #15
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Par défaut
    Bonjour,

    donc ton problème est résolu ? Tant mieux et bon courage
    PS: Si c'est vraiment réglé, pense à cliquer sur "Resolu".
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

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

Discussions similaires

  1. Problème avec JSF 1.2 + JBoss 4.2.2.GA
    Par sofien dans le forum JSF
    Réponses: 20
    Dernier message: 12/02/2008, 08h51
  2. problème avec mon serveur apache
    Par amazircool dans le forum Apache
    Réponses: 2
    Dernier message: 22/05/2007, 14h57
  3. Problème avec Javascript et Apache
    Par Frenken dans le forum Apache
    Réponses: 2
    Dernier message: 22/06/2006, 13h16
  4. [Kylix] problème avec websnap dso apache
    Par RezzA dans le forum EDI
    Réponses: 2
    Dernier message: 02/06/2003, 16h31

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