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

Spring Java Discussion :

Problème de déploiement d'application [Integration]


Sujet :

Spring Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Étudiant
    Inscrit en
    Novembre 2006
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Novembre 2006
    Messages : 287
    Par défaut Problème de déploiement d'application
    Bonsoir,

    j'ai un souci pour accéder à l'application que j'ai déployée sur un serveur Glassfish en local ..
    j'utilise (en tout cas j'essaye) spring/hibernate/tapestry, je développe sur eclipse.

    La méthode que j'applique pour déployer mon application est la suivante :
    sur Eclipse :
    - dans la vue "Servers", ajouter un nouveau serveur "Glassfish"
    - clic droit sur la nouvelle ligne, puis "Add and remove...", et ajouter l'application que l'on souhaite déployer
    - démarrer le serveur
    - essayer d'accéder à la page via l'url http://localhost:8080/tudu

    est-ce que c'est la bonne méthode ?

    je vous poste le web.xml, on ne sait jamais, j'ai surement oublié quelque chose
    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
    <?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>tudu</display-name>
     
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>/WEB-INF/applicationContext*.xml</param-value>
    	</context-param>
     
    	<context-param>
            	<param-name>log4jConfigLocation</param-name>
            	<param-value>log4j.properties</param-value>
        	</context-param>
     
    	<context-param>
    		<param-name>tapestry.app-package</param-name>
    		<param-value>com.obit.tudulist.page</param-value>
    	</context-param>
     
    	<filter>
    		<filter-name>app</filter-name>
    		<filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
    	</filter>
     
    	<filter-mapping>
    		<filter-name>app</filter-name>
    		<url-pattern>/*</url-pattern>
    	</filter-mapping>
     
    	<welcome-file-list>
    		<welcome-file>/pages/Login.html</welcome-file>
    	</welcome-file-list>
    </web-app>
    Merci beaucoup de votre aide

  2. #2
    Inactif  
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    2 189
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : Suisse

    Informations forums :
    Inscription : Mai 2006
    Messages : 2 189
    Par défaut
    Quelle erreur reçois-tu donc ? Si on pouvait voir les logs des messages d'erreurs cela nous aiderait.

  3. #3
    Membre éclairé
    Profil pro
    Étudiant
    Inscrit en
    Novembre 2006
    Messages
    287
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Novembre 2006
    Messages : 287
    Par défaut
    Bonsoir,

    justement il ne me semble pas qu'il y ait d'erreurs

    voici le log dans la console d'eclipse
    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
    24 août 2009 20:07:19 org.apache.tomcat.util.digester.SetPropertiesRule begin
    ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TuduList' did not find a matching property.
    24 août 2009 20:07:19 org.apache.catalina.core.AprLifecycleListener init
    INFO: 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\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre6\bin
    24 août 2009 20:07:19 org.apache.coyote.http11.Http11Protocol init
    INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
    24 août 2009 20:07:19 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 450 ms
    24 août 2009 20:07:19 org.apache.catalina.core.StandardService start
    INFO: Démarrage du service Catalina
    24 août 2009 20:07:19 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
    24 août 2009 20:07:24 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    24 août 2009 20:07:24 org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    24 août 2009 20:07:24 org.springframework.context.support.AbstractApplicationContext prepareRefresh
    INFO: Refreshing org.apache.tapestry5.spring.TapestryApplicationContext@1ed5459: display name [Root WebApplicationContext]; startup date [Mon Aug 24 20:07:24 CEST 2009]; root of context hierarchy
    24 août 2009 20:07:24 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
    24 août 2009 20:07:24 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]
    24 août 2009 20:07:24 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    INFO: Bean factory for application context [org.apache.tapestry5.spring.TapestryApplicationContext@1ed5459]: org.apache.tapestry5.internal.spring.TapestyBeanFactory@18a9fc8
    24 août 2009 20:07:24 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.apache.tapestry5.internal.spring.TapestyBeanFactory@18a9fc8: defining beans [beanTuduDao,beanTuduManager,beanUserDao,beanUserManager,beanSessionFactory,beanTransactionManager,beanTransactionProxy]; root of factory hierarchy
    24 août 2009 20:07:25 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
    INFO: Building new Hibernate SessionFactory
    24 août 2009 20:07:26 org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization completed in 2857 ms
    24 août 2009 20:07:26 org.apache.coyote.http11.Http11Protocol start
    INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
    24 août 2009 20:07:27 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    24 août 2009 20:07:27 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31  config=null
    24 août 2009 20:07:27 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 7282 ms
    Plusieurs choses m'étonnent :
    - au niveau de la trace dans eclipse (ci-dessus), il n'y a aucun message d'erreur bloquante
    - dans les logs du serveur, aucun fichier n'est créé
    - dans le dossier webapps du serveur, aucun dossier du nom de mon appli

    Quelqu'un voit d'où ce genre d'erreur peut provenir ?

    EDIT: j'utilise désormais un serveur tomcat 6.0.20

    EDIT2:
    j'ai résolu l'erreur de la première ligne : pour info, double-cliquer sur le serveur dans la vue "Servers", et cocher la case "Publish module contexts to separate XML files"

    maintenant, dans le dossier .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/, j'ai le dossier correspondant à mon application.
    Le dossier est composé de deux dossiers :
    META-INF/
    - MANIFEST.MF

    WEB-INF/
    - web.xml
    - applicationContext.xml
    - lib/
    - classes/
    - index.jsp

    Mais l'url localhost:8080/TuduList m'amène sur la page d'erreur de tomcat
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    La ressource demandée (/TuduList/) n'est pas disponible.

    Je vous poste le web.xml aussi :
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="TuduList" 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>TuduList</display-name>
     
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>/WEB-INF/applicationContext*.xml</param-value>
    		<!--
    			On peut passer plusieurs fichiers de configuration en les séparant
    			par un espace <param-value>/WEB-INF/applicationContext.xml
    			/WEB-INF/applicationContextDao.xml</param-value>
    		-->
    	</context-param>
     
    	<context-param>
            <param-name>log4jConfigLocation</param-name>
            <param-value>log4j.properties</param-value>
        </context-param>
     
    	<context-param>
    		<param-name>tapestry.app-package</param-name>
    		<param-value>com.obit.tudulist.page</param-value>
    	</context-param>
     
    	<filter>
    		<filter-name>app</filter-name>
    		<filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
    		<!-- old value: org.apache.tapestry.TapestryFilter -->
    	</filter>
     
    	<filter-mapping>
    		<filter-name>app</filter-name>
    		<url-pattern>/*</url-pattern>
    	</filter-mapping>
     
    	<!--<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>-->
     
    	<welcome-file-list>
    		<welcome-file>index.jsp</welcome-file>
    		<welcome-file>/pages/Login.html</welcome-file>
    	</welcome-file-list>
    </web-app>

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

Discussions similaires

  1. Problème de Déploiement d'application:"Erreur inattendue,abandon"
    Par zanoubya dans le forum Installation, Déploiement et Sécurité
    Réponses: 13
    Dernier message: 27/12/2010, 10h22
  2. Problème de déploiement d’une application Struts sous OAS
    Par m.ben.hamida dans le forum Struts 2
    Réponses: 1
    Dernier message: 20/05/2008, 10h53
  3. Réponses: 5
    Dernier message: 15/02/2008, 10h48
  4. Réponses: 6
    Dernier message: 31/10/2007, 22h02
  5. Réponses: 3
    Dernier message: 16/06/2007, 00h57

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