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 JSF déploiement


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    storm_2000
    Invité(e)
    Par défaut Problème JSF déploiement
    Bonjour,

    je souhaite déployer une application JSF sous JBoss.
    Cependante j'ai la trace suivante que je run...
    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
     
    ===============================================================================
     
      JBoss Bootstrap Environment
     
      JBOSS_HOME: C:\jboss-4.2.3.GA
     
      JAVA: C:\Program Files\Java\jdk1.6.0_10\bin\java
     
      JAVA_OPTS:  -Dhttp.nonProxyHosts="localhost|127.0.0.1|pimty-server" -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
     
      CLASSPATH: C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\jboss-4.2.3.GA\bin\run.jar
     
    ===============================================================================
     
    19:20:00,156 INFO  [Server] Starting JBoss (MX MicroKernel)...
    19:20:00,156 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
    19:20:00,156 INFO  [Server] Home Dir: C:\jboss-4.2.3.GA
    19:20:00,156 INFO  [Server] Home URL: file:/C:/jboss-4.2.3.GA/
    19:20:00,156 INFO  [Server] Patch URL: null
    19:20:00,156 INFO  [Server] Server Name: default
    19:20:00,156 INFO  [Server] Server Home Dir: C:\jboss-4.2.3.GA\server\default
    19:20:00,156 INFO  [Server] Server Home URL: file:/C:/jboss-4.2.3.GA/server/default/
    19:20:00,500 INFO  [Server] Server Log Dir: C:\jboss-4.2.3.GA\server\default\log
    19:20:00,500 INFO  [Server] Server Temp Dir: C:\jboss-4.2.3.GA\server\default\tmp
    19:20:00,500 INFO  [Server] Root Deployment Filename: jboss-service.xml
    19:20:00,687 INFO  [ServerInfo] Java version: 1.6.0_10,Sun Microsystems Inc.
    19:20:00,687 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b15,Sun Microsystems Inc.
    19:20:00,687 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
    19:20:01,000 INFO  [Server] Core system initialized
    19:20:02,421 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
    19:20:02,421 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
    19:20:02,750 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
    19:20:02,750 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
    19:20:02,875 INFO  [TransactionManagerService] Starting recovery manager
    19:20:02,937 INFO  [TransactionManagerService] Recovery manager started
    19:20:02,937 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
    19:20:04,578 INFO  [EJB3Deployer] Starting java:comp multiplexer
    19:20:06,109 INFO  [NativeServerConfig] JBoss Web Services - Native
    19:20:06,109 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
    19:20:06,656 INFO  [Embedded] Catalina naming disabled
    19:20:06,750 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\
    19:20:06,781 INFO  [Http11Protocol] Initialisation de Coyote HTTP/1.1 sur http-127.0.0.1-8080
    19:20:07,015 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
    19:20:07,015 INFO  [Catalina] Initialization processed in 361 ms
    19:20:07,015 INFO  [StandardService] Démarrage du service jboss.web
    19:20:07,015 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
    19:20:07,046 INFO  [Catalina] Server startup in 28 ms
    19:20:07,109 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
    19:20:07,484 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    19:20:07,609 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
    19:20:07,703 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    19:20:08,250 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
     
    19:20:08,484 INFO  [MailService] Mail Service bound to java:/Mail
    19:20:08,562 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    19:20:08,640 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    19:20:08,656 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    19:20:08,687 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    19:20:08,765 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    19:20:09,046 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    19:20:09,062 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
    19:20:09,062 INFO  [QuartzResourceAdapter] start quartz!!!
    19:20:09,109 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
    19:20:09,125 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    19:20:09,125 INFO  [RAMJobStore] RAMJobStore initialized.
    19:20:09,531 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    19:20:09,531 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    19:20:09,531 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    19:20:10,000 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    19:20:10,171 INFO  [A] Bound to JNDI name: queue/A
    19:20:10,171 INFO  [B] Bound to JNDI name: queue/B
    19:20:10,171 INFO  [C] Bound to JNDI name: queue/C
    19:20:10,171 INFO  [D] Bound to JNDI name: queue/D
    19:20:10,171 INFO  [ex] Bound to JNDI name: queue/ex
    19:20:10,187 INFO  [testTopic] Bound to JNDI name: topic/testTopic
    19:20:10,187 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
    19:20:10,187 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    19:20:10,187 INFO  [testQueue] Bound to JNDI name: queue/testQueue
    19:20:10,562 INFO  [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
    19:20:10,578 INFO  [DLQ] Bound to JNDI name: queue/DLQ
    19:20:10,640 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    19:20:10,796 INFO  [TomcatDeployer] deploy, ctxPath=/WebApplication1, warUrl=.../tmp/deploy/tmp29977WebApplication1-exp.war/
    19:20:10,843 ERROR [[/WebApplication1]] Erreur lors de la configuration de la classe d'écoute de l'application (application listener) com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener
    java.lang.ClassNotFoundException: com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
            at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3799)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
            at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
            at org.jboss.web.WebModule.startModule(WebModule.java:83)
            at org.jboss.web.WebModule.startService(WebModule.java:61)
    ............
    19:20:11,531 ERROR [[/WebApplication1]] L'installation des écouteurs (listeners) de l'application a été sautée suite aux erreurs précédentes
    Mon web.xml est le suivant :
    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
     
    <?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">
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</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>/faces/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>faces/welcomeJSF.jsp</welcome-file>
            </welcome-file-list>
        </web-app>

  2. #2
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Bonjour,

    Il te manque la classe com.sun.faces.util.ReflectionUtils dans ton classpath.
    As-tu bien mis le JAR de jsf-impl dans ton classpath ?
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  3. #3
    storm_2000
    Invité(e)
    Par défaut
    Je viens de regarder. jsf-api et impl sont déjà présent dans le répertoire lib de JBoss. Si je remet les lib jsf-api et impl dans le répertoire lib de mon .war le serveur plante et m'affiche un message comme quoi il n'arrive pas a faire un cast.

  4. #4
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    le problème survient quand il y'a 2 jars des mêmes classes, avec Jboss y'a un parametre du contexte à mettre à true/false pour prendre ou pas les
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL

Discussions similaires

  1. Réponses: 4
    Dernier message: 25/08/2013, 17h47
  2. Problème de déploiement avec Tomcat 7 + JSF 2.0
    Par chahrazedd dans le forum JSF
    Réponses: 0
    Dernier message: 15/08/2011, 14h21
  3. Réponses: 2
    Dernier message: 22/06/2010, 13h44
  4. Réponses: 5
    Dernier message: 30/03/2010, 19h05
  5. JSF 1.2 Problème de déploiement
    Par jasminrose dans le forum JSF
    Réponses: 7
    Dernier message: 28/04/2009, 16h07

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