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 :

probleme lancement d'un projet jsf sous tomcat 6


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Candidat au Club
    Inscrit en
    Mars 2012
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Mars 2012
    Messages : 2
    Par défaut probleme lancement d'un projet jsf sous tomcat 6
    bonjour, voila je débute dans le domaine du développement web java et j'ai opté pour le développement d'une application j2ee avec hibernate+sping+jsf
    et aussi en utilisant maven.
    Lors du lancement de mon projet avec tomcat sous eclipse, le serveur genere cette exception:

    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
    GRAVE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/mini_proj_prof,J2EEApplication=none,J2EEServer=none
    java.lang.reflect.InvocationTargetException
    	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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
    	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:108)
    	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:58)
    	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
    	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    	... 6 more
    le serveur marche très bien sur autre application du même type mais sans utiliser maven.

    Si vous avez une idée de la nature du problème je vous serai très reconnaissant.

    ma config est la suivant :
    serveur Tomcat 6.0
    Fichier Pom.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
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>fr.dev</groupId>
    	<artifactId>mini_proj_prof</artifactId>
    	<packaging>war</packaging>
    	<version>0.0.1-SNAPSHOT</version>
    	<name>mini_proj_prof Maven Webapp</name>
    	<url>http://maven.apache.org</url>
     
    	<repositories>
    		<repository>
    			<releases>
    				<enabled>true</enabled>
    			</releases>
    			<snapshots>
    				<enabled>false</enabled>
    				<updatePolicy>never</updatePolicy>
    			</snapshots>
    			<id>REPOSITORY_JBOSS</id>
    			<name>Jboss Repository for Maven</name>
    			<url>https://repository.jboss.org/nexus/content/groups/public/</url>
     
    fichier 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
    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
    <?xml version="1.0"?>
    <web-app version="2.5" 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_5.xsd">
    	<display-name>Archetype Created Web Application</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.CONFIG_FILES</param-name>
    		<param-value>/WEB-INF/faces-config.xml</param-value>
    	</context-param>
    	<context-param>
    		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    		<param-value>server</param-value>
    	</context-param>
    	<filter>
    		<filter-name>RichFaces Filter</filter-name>
    		<filter-class>org.ajax4jsf.Filter</filter-class>
    	</filter>
    	<!-- Hibernate OpenSession Filter -->
    	<filter>
    		<filter-name>hibernateFilter</filter-name>
    		<filter-class>
    			org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    		<init-param>
    			<param-name>singleSession</param-name>
    			<param-value>true</param-value>
    		</init-param>
    		<init-param>
    			<param-name>sessionFactoryBeanName</param-name>
    			<param-value>sessionFactory</param-value>
    		</init-param>
    	</filter>
    	<!-- End Filter -->
     
     
     
    	<filter>
    		<filter-name>ajax4jsf</filter-name>
    		<display-name>Ajax4jsf Filter</display-name>
    		<filter-class>org.ajax4jsf.Filter</filter-class>
    		<init-param>
    			<param-name>createTempFiles</param-name>
    			<param-value>false</param-value>
    		</init-param>
    		<init-param>
    			<param-name>maxRequestSize</param-name>
    			<param-value>4000000</param-value>
    		</init-param>
    	</filter>
    	<filter-mapping>
    		<filter-name>RichFaces Filter</filter-name>
    		<servlet-name>Faces Servlet</servlet-name>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>ajax4jsf</filter-name>
    		<servlet-name>Faces Servlet</servlet-name>
    		<dispatcher>REQUEST</dispatcher>
    		<dispatcher>FORWARD</dispatcher>
    		<dispatcher>INCLUDE</dispatcher>
    	</filter-mapping>
     
    	<!-- Filter Mapping for OpenSession Filter -->
    	<filter-mapping>
    		<filter-name>hibernateFilter</filter-name>
    		<url-pattern>/*</url-pattern>
    	</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>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>Faces Servlet</servlet-name>
    		<url-pattern>*.jsf</url-pattern>
    	</servlet-mapping>
     
    	<session-config>
    		<session-timeout>60</session-timeout>
    	</session-config>
     
    	<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>
    voila Merci d'avance pour vos reponse.

  2. #2
    Membre expérimenté
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    162
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Santé

    Informations forums :
    Inscription : Novembre 2008
    Messages : 162
    Par défaut
    Bonjour Jack81,

    Voici deux liens de personnes ayant eu le même problème que toi.

    Je pense que leurs explications t'aideront à résoudre ton problème.

  3. #3
    Candidat au Club
    Inscrit en
    Mars 2012
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Mars 2012
    Messages : 2
    Par défaut
    Merci N4rc0 pour ta réponse Problème résolu : c’était incompatibilité de version des jar de jsf.
    Merci encore

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

Discussions similaires

  1. deployer un projet gwt sous tomcat
    Par riadhhwajdii dans le forum GWT et Vaadin
    Réponses: 2
    Dernier message: 04/03/2010, 10h16
  2. Probleme lancement du Google Web Toolkit sous netbeans
    Par facilus68 dans le forum NetBeans
    Réponses: 0
    Dernier message: 21/12/2008, 16h19
  3. Intégrer richfaces à un projet JSF sous eclipse
    Par jsebfranck dans le forum JSF
    Réponses: 13
    Dernier message: 29/04/2008, 12h37
  4. [Eclipse/debutant] ouvrir un projet creer sous tomcat
    Par ShinJava dans le forum Eclipse Java
    Réponses: 4
    Dernier message: 23/02/2005, 11h02
  5. [Plugin]Lancement d'un projet JSP sous Eclipse avec Tomcat
    Par samios dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 25/08/2004, 19h03

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