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

JPA Java Discussion :

ContextLoader: GRAVE: Error listenerStart


Sujet :

JPA Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Mai 2005
    Messages
    149
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 149
    Par défaut ContextLoader: GRAVE: Error listenerStart
    Bonjour,
    J'utilise Spring 2.5 et JPA (Hibernate Annotations).

    Voici mes fichiers de config

    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
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" 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_4.xsd">
    	<display-name>rss</display-name>
     
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>/WEB-INF/applicationContext*.xml</param-value>
    	</context-param>
     
    	<listener> 
    	  <listener-class> 
    	    org.springframework.web.context.ContextLoaderListener 
    	  </listener-class> 
    	</listener> 
    		<listener> 
    	  <listener-class> 
    	    org.springframework.web.context.request.RequestContextListener 
    	  </listener-class> 
    	</listener>
    		<welcome-file-list>
    		<welcome-file>index.html</welcome-file>
    		<welcome-file>index.htm</welcome-file>
    		<welcome-file>index.jsp</welcome-file>
    	</welcome-file-list>
    </web-app>

    applicationContext.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
    <?xml version="1.0" encoding="UTF-8"?> 
    <beans xmlns="http://www.springframework.org/schema/beans" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns:p="http://www.springframework.org/schema/p" 
      xmlns:context="http://www.springframework.org/schema/context" 
      xmlns:tx="http://www.springframework.org/schema/tx" 
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd 
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> 
     
      <bean id="dataSource" 
        class="org.springframework.jdbc.datasource.DriverManagerDataSource" 
        p:driverClassName="com.mysql.jdbc.Driver" 
        p:url="jdbc:mysql://localhost:3306/nom_base" p:username="login" p:password="pass" /> 
     
      <bean id="entityManagerFactory" 
        class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" 
        p:dataSource-ref="dataSource" p:persistence-unit-name="jpa"> 
        <property name="jpaVendorAdapter"> 
          <bean 
            class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" 
            p:database="HSQL" 
            p:databasePlatform="org.hibernate.dialect.HSQLDialect" 
            p:showSql="true" p:generate-ddl="true" /> 
        </property> 
      </bean> 
     
      <bean id="transactionManager" 
        class="org.springframework.orm.jpa.JpaTransactionManager" 
        p:entityManagerFactory-ref="entityManagerFactory" /> 
     
      <context:annotation-config /> 
     
      <context:component-scan base-package="model" /> 
     
      <tx:annotation-driven /> 
    </beans>

    persistence.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    	version="1.0">
     
    	<persistence-unit name="rss" transaction-type="RESOURCE_LOCAL">
    		<!-- 	<class>model.Flux</class>
    		 		<class>model.User</class> -->
    	</persistence-unit>
     
    </persistence>

    Au démarrage de Tomcat, j'ai l'erreur suivante:

    5 juin 2008 14:08:10 org.apache.catalina.core.StandardContext start
    GRAVE: Error listenerStart
    5 juin 2008 14:08:10 org.apache.catalina.core.StandardContext start
    GRAVE: Erreur de démarrage du contexte [/rss] suite aux erreurs précédentes


    Si je retire le listener org.springframework.web.context.ContextLoaderListener du web.xml, Tomcat démarre correctement.

    Quelqu'un a une idée?

    Merci

  2. #2
    Membre confirmé
    Inscrit en
    Mai 2005
    Messages
    149
    Détails du profil
    Informations forums :
    Inscription : Mai 2005
    Messages : 149
    Par défaut
    Personne?

Discussions similaires

  1. Tomcat 6 (Jahia 6.5) - GRAVE: Error listenerStart
    Par maanifiik dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 26/07/2011, 17h11
  2. problème Error listenerStart
    Par Tanebisse dans le forum Tomcat et TomEE
    Réponses: 7
    Dernier message: 15/11/2009, 19h23
  3. StandardContext : Error listenerStart
    Par snipes dans le forum Wildfly/JBoss
    Réponses: 3
    Dernier message: 13/08/2009, 16h27
  4. [Tomcat 6] Probleme de Listener - Error listenerStart
    Par nicohand94 dans le forum Tomcat et TomEE
    Réponses: 3
    Dernier message: 09/06/2009, 17h20
  5. GRAVE: Error filterStart
    Par threshold dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 01/04/2008, 23h44

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