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

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre expérimenté Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    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!

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

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    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...

  3. #3
    Membre confirmé

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

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    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 expérimenté Avatar de Torg666
    Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2008
    Messages
    230
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    Par défaut
    Je l'ai déjà testé, aucun changement

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

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    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?

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

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    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...

  7. #7
    Membre confirmé

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

    Informations forums :
    Inscription : Juin 2003
    Messages : 229
    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 ?

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

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2008
    Messages : 230
    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?

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