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

GWT et Vaadin Java Discussion :

Deploiement, objet de transaction indisponible


Sujet :

GWT et Vaadin Java

  1. #1
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut Deploiement, objet de transaction indisponible
    Bonjour, je viens de deployer ma Webbapp.
    J'arrive à y accèder depuis un autre PC par contre j'ai un problème avec l'objet de transaction:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    <html><head><Apache Tomcat/5.5.27 - Rapport d'erreur</tittle><style<!--H1
    {fon-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}....
    ...
    <body><h1>Ztat HTT404 - /GeoLocFGE/SelectBDD</h1><HR size="1" noshade="noshade"><p><b>type</b>Rapport d'état</p><p>message</b> <u>/GeoLocFGE/SelectBDD</u></p><p><b>description</b><u>La ressource demandée (/GeoLocFGE/SelectBDD) n'est pas disponible.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.27</h3></body></html>
    En fait je pense que mon appli n'accede pas a ma base de donnée
    En regardant sur le net, j'ai vu qu'il faut que je configure un Datasource sous tomcat... Entre autre il faut que j'ajoute un context.xml dans le meta_inf et que je modifie mon le web.xml de mon appli.
    J'ai pas très bien compris ce qu'il fallait que je fasse.
    J'utilise Eclipse 3.4.1+ Cypal, Tomcat 5.5.27, Mysql 5.1.11.

    Je un petit coup d emain pour comprendre la config à faire,
    merci d'avance!
    La javaDoc est mon amie, elle est la tienne aussi!

  2. #2
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Donc je me suis lancé.
    J'ai ajouté la lib du jdbc (exactement:mysql-connector-java-5.1.7-bin.jar)
    dans Tomcat 5.5\common\lib.
    Ensuite j'ai crée dans GeoLocFGE/WebContent/META-INF un fichier context.xml:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    <?xml version="1.0" encoding="UTF-8"?>
    <Context >
      <Resource name="jdbc/bddtamgo" auth="Container"
                type="javax.sql.DataSource" username="XXX" password="XXX"
                driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/bddtamgo"
                maxActive="8" maxIdle="4"/>
    </Context>
    De plus, j'ai modifié mon web.xml dans GeoLocFGE/WebContent/WEB-INF:
    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
     
    <?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>GeoLocFGE</display-name>
    	<servlet>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<servlet-class>webpage.server.GeoLocRemoteServiceImpl</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<url-pattern>/GeoLocRemoteService</url-pattern>
    	</servlet-mapping>
    	<resource-ref>
    	<description>
        Resource reference to a factory for java.sql.Connection
        instances that may be used for talking to a particular
        database that is configured in the server.xml file.
    	</description>
    	<res-ref-name>
        jdbc/bddtamgo
      </res-ref-name>
      <res-type>
        javax.sql.DataSource
      </res-type>
      <res-auth>
        Container
      </res-auth>
    </resource-ref>
    	<welcome-file-list>
    		<welcome-file>GeoLocFGE.html</welcome-file>
    		<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>
    Enfin j'ai modifier mon Objet de connection à la base:
    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
     
    import java.sql.Statement;
    import javax.sql.DataSource;
     
    import java.util.ArrayList;
     
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
     
     
    public class ConnectBDD {
    	/** Pilote JDBC */
    	final static	String		pilote="com.mysql.jdbc.Driver";
    	/** Hote */
    	final static 	String		hote="localhost";
    	/** BDD */
    	final static	String		base="bddtamgo";
    	/** Utilisateur */
    	final static	String		utilisateur="root";
    	/** MDP */
    	final static	String		mdp="admin";
    	/** Connection */
    	private 		Connection 	connex=null;
    	/** Statement */
    	private			Statement	stmt=null;
    	/*	
    	public ConnectBDD(){
    		try{
    			Class.forName(pilote).newInstance();
    			connex=DriverManager.getConnection("jdbc:mysql://"+hote+"/"+base,utilisateur,mdp);
    			stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    		} catch (SQLException sqle) {
    			sqle.printStackTrace();
    		} catch (InstantiationException ie) {
    			ie.printStackTrace();
    		} catch (IllegalAccessException iae) {
    			iae.printStackTrace();
    		} catch (ClassNotFoundException cnfe) {
    			cnfe.printStackTrace();
    		}
    	}
    	*/
    	public ConnectBDD(){
    		try {
    			Context initCTX = new InitialContext();
    			Context envCtx = (Context) initCTX.lookup("java:comp/env");
    			DataSource ds = (DataSource) envCtx.lookup("jdbc/bddtamgo");
    			connex = ds.getConnection();
    			stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    		} catch (NamingException e) {
    			e.printStackTrace();
    		} catch (SQLException e) {
    			e.printStackTrace();
    		}
    	}
    j'obtiens l'erreur suivant des que mon appli tente d'acceder à la BDD:
    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
     
    javax.naming.NameNotFoundException: Le Nom jdbc n'est pas lié à ce Contexte
    	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    	at webpage.server.ConnectBDD.<init>(ConnectBDD.java:53)
    	at webpage.server.GeoLocRemoteServiceImpl.<init>(GeoLocRemoteServiceImpl.java:14)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    	at java.lang.reflect.Constructor.newInstance(Unknown Source)
    	at java.lang.Class.newInstance0(Unknown Source)
    	at java.lang.Class.newInstance(Unknown Source)
    	at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:937)
    	at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:277)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Unknown Source)
    De toute évidence j'ai oublié quelque chose...
    La javaDoc est mon amie, elle est la tienne aussi!

  3. #3
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    Salut,

    Si tu mets mysql-connector-java-5.1.7-bin.jar dans le répertoire ext/lib de la JRE executant Tomcat, qu'est-ce que ça donne ?

  4. #4
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Je l'ai déjà testé, aucun changement
    La javaDoc est mon amie, elle est la tienne aussi!

  5. #5
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    j'ai essayé de modifier le sever.xml de Tomcat 5.5/conf en ajoutant:
    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
     
          <Context path="/bddtamgo" docBase="bddtamgo"
            debug="5" reloadable="true" crossContext="true">
     
      <Logger className="org.apache.catalina.logger.FileLogger"
                 prefix="localhost_bddtamgo_log." suffix=".txt"
                 timestamp="true"/>
     
      <Resource name="jdbc/bddtamgo"
                   auth="Container"
                   type="javax.sql.DataSource"/>
     
      <ResourceParams name="jdbc/bddtamgo">
        <parameter>
          <name>factory</name>
          <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
        </parameter>
     
        <!-- Maximum number of dB connections in pool. Make sure you
             configure your mysqld max_connections large enough to handle
             all of your db connections. Set to 0 for no limit.
             -->
        <parameter>
          <name>maxActive</name>
          <value>100</value>
        </parameter>
     
        <!-- Maximum number of idle dB connections to retain in pool.
             Set to 0 for no limit.
             -->
        <parameter>
          <name>maxIdle</name>
          <value>30</value>
        </parameter>
     
        <!-- Maximum time to wait for a dB connection to become available
             in ms, in this example 10 seconds. An Exception is thrown if
             this timeout is exceeded.  Set to -1 to wait indefinitely.
             -->
        <parameter>
          <name>maxWait</name>
          <value>10000</value>
        </parameter>
     
        <!-- MySQL dB username and password for dB connections  -->
        <parameter>
         <name>username</name>
         <value>root</value>
        </parameter>
        <parameter>
         <name>password</name>
         <value>admin</value>
        </parameter>
     
        <!-- Class name for mm.mysql JDBC driver -->
        <parameter>
           <name>driverClassName</name>
           <value>com.mysql.jdbc.Driver</value>
        </parameter>
     
        <!-- The JDBC connection url for connecting to your MySQL dB.
             The autoReconnect=true argument to the url makes sure that the
             mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
             connection.  mysqld by default closes idle connections after 8 hours.
             -->
        <parameter>
          <name>url</name>
          <value>jdbc:mysql://localhost:3306/bddtamgo?autoReconnect=true</value>
        </parameter>
      </ResourceParams>
    </Context>
    (j'ai suivi les instruction ici:http://tomcat.apache.org/tomcat-4.1-...les-howto.html)
    En redémarrant Tomcat j'obtiens:
    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
     
    3 mars 2009 10:46:37 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\DevEnv\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Microchip\MPLAB C30\bin;C:\Program Files\Fichiers communs\Borland Shared\BDE\;C:\Program Files\Borland\BDS\3.0\Bin;C:\MCC18\mpasm;C:\MCC18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Autodesk\DWG TrueView\;C:\Program Files\Fichiers communs\ALPI SHARED
    3 mars 2009 10:46:37 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
    3 mars 2009 10:46:37 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1437 ms
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardService start
    INFO: Démarrage du service Catalina
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardContext resourcesStart
    GRAVE: Erreur lors du démarrage des Resources statiques
    java.lang.IllegalArgumentException: Le document base C:\devenv\Tomcat 5.5\webapps\bddtamgo n'existe pas ou n'est pas un répertoire lisible
    	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
    	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3855)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
    	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:295)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardContext start
    GRAVE: Error in resourceStart()
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardContext start
    GRAVE: Error getConfigured
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardContext start
    GRAVE: Erreur de démarrage du contexte [/bddtamgo] suite aux erreurs précédentes
    3 mars 2009 10:46:37 org.apache.catalina.core.StandardContext stop
    INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bddtamgo] n'a pas été démarré
    3 mars 2009 10:46:46 org.apache.catalina.core.NamingContextListener addResource
    ATTENTION: Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]
    3 mars 2009 10:46:46 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
    3 mars 2009 10:46:47 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    3 mars 2009 10:46:47 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/78  config=null
    3 mars 2009 10:46:47 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    3 mars 2009 10:46:47 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 10031 ms
    De toute évidence, je lui indique pas le bon chemin pour trouver ma BD...
    Comment faire?
    La javaDoc est mon amie, elle est la tienne aussi!

  6. #6
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    Là, je sèche...
    Je ne comprend pas pourquoi ton appli marche en local, et pas sur ton serveur ;
    lorsque j'ai mis des applications en production, je n'ai rien eu à modifier concernant l'accès à la base de données, simplement à ajouter le jar dans lib/ext...

    A tout hasard, as-tu bien créer la base de données bddtamgo sur le serveur MySQL ? Pourrais-tu aussi essayer de te connecter sans spécifier de base de données ?

  7. #7
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    en fait l'erreur au demarrage est du à
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <Context path="/bddtamgo" docBase="bddtamgo"
    Je l'ai remplacé par:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <Context path="/GeoLocFGE" docBase="GeoLocFGE"
    Maintenant j ai:
    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
     
    3 mars 2009 11:20:54 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\DevEnv\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Microchip\MPLAB C30\bin;C:\Program Files\Fichiers communs\Borland Shared\BDE\;C:\Program Files\Borland\BDS\3.0\Bin;C:\MCC18\mpasm;C:\MCC18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Autodesk\DWG TrueView\;C:\Program Files\Fichiers communs\ALPI SHARED
    3 mars 2009 11:20:54 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
    3 mars 2009 11:20:54 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1453 ms
    3 mars 2009 11:20:54 org.apache.catalina.core.StandardService start
    INFO: Démarrage du service Catalina
    3 mars 2009 11:20:54 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
    3 mars 2009 11:20:54 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    3 mars 2009 11:21:03 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
    3 mars 2009 11:21:04 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    3 mars 2009 11:21:04 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/219  config=null
    3 mars 2009 11:21:04 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    3 mars 2009 11:21:04 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 9968 ms
    Mais dès que je tente un accès à la DB j'ai toujours l'erreur...
    La javaDoc est mon amie, elle est la tienne aussi!

  8. #8
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Citation Envoyé par pedouille Voir le message
    A tout hasard, as-tu bien créer la base de données bddtamgo sur le serveur MySQL ?
    La base de donnée est en place, j'y accède si je passe pas par tomcat mais seulement en local.

    Citation Envoyé par pedouille Voir le message
    Pourrais-tu aussi essayer de te connecter sans spécifier de base de données ?
    C'est à dire?
    La javaDoc est mon amie, elle est la tienne aussi!

  9. #9
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    Essaye de revenir au mode de connexion "basique", en ne spécifiant pas de base de données :

    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
     
    public ConnectBDD(){
    		try{
    			Class.forName(pilote).newInstance();
    			connex=DriverManager.getConnection("jdbc:mysql://"+hote+"/",utilisateur,mdp);
    			stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    		} catch (SQLException sqle) {
    			sqle.printStackTrace();
    		} catch (InstantiationException ie) {
    			ie.printStackTrace();
    		} catch (IllegalAccessException iae) {
    			iae.printStackTrace();
    		} catch (ClassNotFoundException cnfe) {
    			cnfe.printStackTrace();
    		}
    	}
    Avec un utilisateur ayant tout les droits, histoire d'éliminer ce genre de causes au problème.

  10. #10
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Ok j'ai fais les modif, je suis revenu à:
    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
    package webpage.server;
     
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
     
     
    import java.util.ArrayList;
    /*
    import javax.sql.DataSource;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    */
     
    public class ConnectBDD {
    	/** Pilote JDBC */
    	final static	String		pilote="com.mysql.jdbc.Driver";
    	/** Hote */
    	final static 	String		hote="localhost";
    	/** BDD */
    	final static	String		base="bddtamgo";
    	/** Utilisateur */
    	final static	String		utilisateur="root";
    	/** MDP */
    	final static	String		mdp="admin";
    	/** Connection */
    	private 		Connection 	connex=null;
    	/** Statement */
    	private			Statement	stmt=null;
     
    	public ConnectBDD(){
    		try{
    			Class.forName(pilote).newInstance();
    			connex=DriverManager.getConnection("jdbc:mysql://"+hote+"/"+base,utilisateur,mdp);
    			stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    		} catch (SQLException sqle) {
    			sqle.printStackTrace();
    		} catch (InstantiationException ie) {
    			ie.printStackTrace();
    		} catch (IllegalAccessException iae) {
    			iae.printStackTrace();
    		} catch (ClassNotFoundException cnfe) {
    			cnfe.printStackTrace();
    		}
    	}
    	/*
    	public ConnectBDD(){
    		try {
    			DataSource ds= (DataSource) new InitialContext().lookup("java:comp/env/jdbc/bddtamgo");
    			connex = ds.getConnection();
    			stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    		} catch (NamingException e) {
    			e.printStackTrace();
    		} catch (SQLException e) {
    			e.printStackTrace();
    		}
    	}
    	*/
    Tant que je reste sous eclipse et que je lance l'appli en utilisant GWT pas de souci ca marche, aucun message d'erreur.
    Par contre, dès que je déploie l'appli sous tomcat, en export/war file, et que je le mets dans C:\DevEnv\Tomcat 5.5\webapps, l'applis se lance bien quand je rentre: http://localhost:8080/GeoLocFGE/ mais dès que il y a un accès à la base je me retrouve avec le plantage du premier message: ressource demandée GeoLocFGE/SelectBDD indisponible.
    SelectBDD est ma classe serialisable pour les transactions entre mon serveur et mon client. J'ai l'impression qu'il la cherche pas où il faut....
    La javaDoc est mon amie, elle est la tienne aussi!

  11. #11
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    Je ne suis pas sûr d'avoir compris :
    Tu déploies l'application directement en décompressant le war dans webapps/, ou via le manager tomcat ?

  12. #12
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    1er test:
    Je le lance avec le tomcat manager, ca marche sans problème.
    2ieme test:
    Je fais un war, je le mets dans le webapp de tomcat. Je démarre le service.
    Tomcat se charge de decompresser le war. Je passe sur IE7 et je tape http://localhost:8080/GeoLocFGE/, l'appli se lance, mais au premier accès à la base(au tout début en fais vu qu'il y a une fenetre de log) message d'erreur.
    Ca commence doucement à me ...

    Donc petite récap après toute les modif que j'ai faite dans mon projet:
    arbo:
    GeoLocFGE
    |---WebContent
    | |---META-INF
    | | |---context.xml
    | | |---MANIFEST.MF
    | |---WEB-INF
    | | |---lib
    | | |---web.xml
    |---Java Ressource
    | |---webpage
    | | |---public
    | | |---GeoLocFGE.gwt.xml
    | |---webpage.client
    | | |---SelectBDD.java
    | | |---GeoLocRemoteService.java
    | | |---GeoLocRemoteServiceAsync.java
    | | |---(+toute mes source java cliente)
    | |---webpage.server
    | | |---ConnectBDD
    | | |---GeoLocRemoteServiceImpl.java

    Librairies utilisées:
    gwtext.jar
    gwt-maps.jar
    gwt-reverse-geocoder-1.0.8.1.jar
    gwt-servlet.jar
    gwt-user.jar
    mysql-connector-java-5.1.17-bin.jar

    Donc code de mon 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
     
    <?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>GeoLocFGE</display-name>
    	<welcome-file-list>
    		<welcome-file>GeoLocFGE.html</welcome-file>
    		<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>
    	<resource-ref>
    		<description>DB connection</description>
    		<res-ref-name>jdbc/bddtamgo</res-ref-name>
    		<res-type>javax.sql.DataSource</res-type>
    		<res-auth>Container</res-auth>
    	</resource-ref>
    	<servlet>
    		<description>Servlet</description>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<servlet-class>webpage.server.GeoLocRemoteServiceImpl</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<url-pattern>/GeoLocRemoteService</url-pattern>
    	</servlet-mapping>
    </web-app>
    Code de mon context.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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
               <Resource
    	path="/GeoLocFGE"
    	debug="1"
    	reloadable="true" 
    	name="jdbc/bddtamgo"
                 auth="Container"
                 type="javax.sql.DataSource"
                 username="root"
                 password="admin"
                 driverClassName="com.mysql.jdbc.Driver"
                 url="jdbc:mysql://localhost/bddtamgo"
                 maxActive="8"
                 maxIdle="4"/>
    </Context>
    Code de ConnectBDD.java:
    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
    119
    120
    121
    122
    123
    124
     
    package webpage.server;
     
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
     
     
    import java.util.ArrayList;
    /*
    import javax.sql.DataSource;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    */
     
    public class ConnectBDD {
    /** Pilote JDBC */
    final static	String		pilote="com.mysql.jdbc.Driver";
    /** Hote */
    final static 	String		hote="localhost";
    /** BDD */
    final static	String		base="bddtamgo";
    /** Utilisateur */
    final static	String		utilisateur="root";
    /** MDP */
    final static	String		mdp="admin";
    /** Connection */
    private 		Connection 	connex=null;
    /** Statement */
    private			Statement	stmt=null;
     
    public ConnectBDD(){
     try{
      Class.forName(pilote).newInstance();
      connex=DriverManager.getConnection("jdbc:mysql://"+hote+"/"+base,utilisateur,mdp);
      stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
     } catch (SQLException sqle) {
      sqle.printStackTrace();
     } catch (InstantiationException ie) {
      ie.printStackTrace();
     } catch (IllegalAccessException iae) {
      iae.printStackTrace();
     } catch (ClassNotFoundException cnfe) {
      cnfe.printStackTrace();
     }
    }
    /*
    public ConnectBDD(){
    try {
    DataSource ds= (DataSource) new InitialContext().lookup("java:comp/env/jdbc/bddtamgo");
    connex = ds.getConnection();
    stmt= connex.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    } catch (NamingException e) {
    e.printStackTrace();
    } catch (SQLException e) {
    e.printStackTrace();
    }
    }
    */
    public ArrayList<String> getColNom(String query){
    ResultSet resultat=null;
    int	nbColonne=0;
    ArrayList<String> arrayColonneNom=null;
    try{
     resultat=stmt.executeQuery(query);
     nbColonne=resultat.getMetaData().getColumnCount();
    //Recuperation des nom de colonnes
     arrayColonneNom=new ArrayList<String>();
     for(int k=0;k<nbColonne;k++){
      arrayColonneNom.add(this.getColumnName(resultat, k));
     }
    }catch(SQLException sqle){
     sqle.printStackTrace();
    }
    return arrayColonneNom;
    }
    /**Fonction pour executer des fonctions select*/
    public ArrayList<ArrayList<String>> reqSelect(String query) {
    ResultSet resultat=null;
    ArrayList<ArrayList<String>>	listResultat=null;
    ArrayList<String> ligne=null;
    int nbColonne=0;
    try {
     resultat=stmt.executeQuery(query);
     nbColonne=resultat.getMetaData().getColumnCount();
     listResultat=new ArrayList<ArrayList<String>>();
     while(resultat.next()){
      ligne=new ArrayList<String>();
       for(int i=1;i<=nbColonne;i++){
        ligne.add(resultat.getObject(i).toString());
       }
      listResultat.add(ligne);
     }
     resultat.close();
    } catch (SQLException sqle) {
     sqle.printStackTrace();
    }
    return listResultat;
    }
    /**Fonction pour l'execution de modification sur la BDD*/
    public void reqUpdate(String query) {
    try{
     stmt.executeUpdate(query);
    } catch(SQLException sqle){
     sqle.printStackTrace();
    }
    }
    /**Fonction pour r�cup�rer le nom d'une colonne*/
    public String getColumnName(ResultSet resultat,int cible){
    String s = "";
    try 
     {
      s = resultat.getMetaData().getColumnName(cible + 1);
     }
     catch(SQLException e)
     {
      System.out.println("TM getColumnName"+e);
     }
    return s;
    }
    }
    La javaDoc est mon amie, elle est la tienne aussi!

  13. #13
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    Si ça marche via le manager, pourquoi as-tu besoin de déployer depuis un war dans webapps au démarrage ?

    Est-ce que tu pourrais essayer avec une autre version de tomcat ? Personnellement, j'utilise la 6, et je n'ai jamais eu le moindre problème de déploiement.

    Autre essai : est-ce que tu as essayé de modifier le server.xml comme indiqué ici ? http://www.developpez.net/forums/d15...e/#post1017100

  14. #14
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Citation Envoyé par pedouille Voir le message
    Si ça marche via le manager, pourquoi as-tu besoin de déployer depuis un war dans webapps au démarrage ?
    Mon appli tourne bien, je voulais tester le déploiement histoire de régler dès maintenant des problèmes liés au serveur...
    Je me suis dis qu'il valais mieux le tester avant d'être au pieds du mur... donc en effet entre la version de developpement et celle qui sera déployée effectivement y un problème... un gros problème...
    La javaDoc est mon amie, elle est la tienne aussi!

  15. #15
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Comment procéde tu pour déployer une des tes appli?
    La javaDoc est mon amie, elle est la tienne aussi!

  16. #16
    Membre actif

    Inscrit en
    Juin 2003
    Messages
    229
    Détails du profil
    Informations personnelles :
    Âge : 41

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    Points : 223
    Points
    223
    Par défaut
    J'utilise GWT Designer qui permet de déployer assez facilement les projets GWT vers une archive .war

    Ensuite, j'upload cette archive via le manager Tomcat, rubrique "WAR file to deploy", et je n'ai aucun problème. D'autant que le serveur en production est sous Linux, et que je travaille sur un poste sous Windows.

    J'ai jamais vraiment regarder ce que faisait le deploiement de GWT designer, vu que je n'ai jamais eu de problème...

  17. #17
    Membre régulier Avatar de Space23
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    185
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 185
    Points : 88
    Points
    88
    Par défaut
    Je ne sais pas si ça peut t'aider mais il y a une procédure de documenter pour déployer une appli GWT sur un serveur d'appli sur developpez.com (à la fin) :

    http://moritan.developpez.com/tutori...remier/projet/

    Après il suffit d'exporter ce projet dans un fichier .war

  18. #18
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    Le problème c'est que sur ce tutorial il ne gére ni objet de transaction ni base de donnée.
    Du coup, ca ne me sert pas vu que mon souci viens de là.
    La javaDoc est mon amie, elle est la tienne aussi!

  19. #19
    Membre actif Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Points : 254
    Points
    254
    Par défaut
    J'ai fait une modif sur mon 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
    <?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>GeoLocFGE</display-name>
    	<welcome-file-list>
    		<welcome-file>GeoLocFGE.html</welcome-file>
    	</welcome-file-list>
    	<resource-ref>
    		<description>DB connection</description>
    		<res-ref-name>jdbc/bddtamgo</res-ref-name>
    		<res-type>javax.sql.DataSource</res-type>
    		<res-auth>Container</res-auth>
    	</resource-ref>
    	<servlet> 
    		<servlet-name>shell</servlet-name> 
    		<servlet-class>com.google.gwt.dev.shell.GWTShellServlet</servlet-class> 
    	</servlet> 
    	<servlet-mapping> 
    		<servlet-name>shell</servlet-name> 
    		<url-pattern>/*</url-pattern> 
    	</servlet-mapping>
    
    	 
    	<servlet>
    		<description>Servlet</description>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<servlet-class>webpage.server.GeoLocRemoteServiceImpl</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>GeoLocRemoteService</servlet-name>
    		<url-pattern>/GeoLocRemoteService</url-pattern>
    	</servlet-mapping>
    </web-app>
    Et cette fois en lancant mon appli avec GWT manager j'ai un message d'erreur à la première tentative d'accès à la base:
    Cannot find resource 'SelectBDD' in the public path of module 'webpage.GeoLocFGE'

    De toute évidence, j'ai un prob avec le public path de mon appli... je peu le voir où?
    La javaDoc est mon amie, elle est la tienne aussi!

  20. #20
    Membre actif
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Septembre 2006
    Messages
    389
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2006
    Messages : 389
    Points : 244
    Points
    244
    Par défaut
    Slt

    Dans ton context.xml tu met comme adresse localhost

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
       url="jdbc:mysql://localhost/bddtamgo"
    Remplace localhost par l'adresse ip de ton serveur

    Sa devrai mieux fonctionner

    Sinon moi je passe par un application.properties, et je suis jamais ennuyer avec sa

    A+

Discussions similaires

  1. Deploiement objet COM
    Par Pukram dans le forum Langages
    Réponses: 1
    Dernier message: 12/12/2011, 18h24
  2. [hibernate] sortir un objet de la transaction
    Par parn dans le forum Hibernate
    Réponses: 3
    Dernier message: 07/11/2008, 14h41
  3. Les Objets utilisé par une Transaction XXYZ ;
    Par kamaldev dans le forum SAP
    Réponses: 1
    Dernier message: 27/08/2008, 23h18
  4. Réponses: 25
    Dernier message: 25/04/2008, 15h23
  5. [POO] balise ou objet non reconnu lors d'un deploiement serveur
    Par benssj5 dans le forum Général JavaScript
    Réponses: 7
    Dernier message: 02/01/2006, 17h26

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