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 :

GWT accès à une base de donnée Mysql


Sujet :

GWT et Vaadin Java

  1. #1
    Nouveau membre du Club
    Inscrit en
    Septembre 2008
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 49
    Points : 26
    Points
    26
    Par défaut GWT accès à une base de donnée Mysql
    Bonjour,
    j'utilise

    Eclipse Eclipse Indigo (3.7.1)
    GWT : 2.3.0
    aucune librairies GWT additionnelle
    Hibernate 3.0


    je suis débutant avec le GWT je suis entrain de développer ma première application GWT avec un accès au base de donnée en se basant sur Hbernate mais ça marche pas et je sais pas que dois-je faire pour résoudre ce problème je demande votre aide svp.

    voila le resultat de la console :

    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
    18 nov. 2011 16:04:31 org.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 3.2.5
    18 nov. 2011 16:04:31 org.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    18 nov. 2011 16:04:31 org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: Bytecode provider name : cglib
    18 nov. 2011 16:04:31 org.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    18 nov. 2011 16:04:31 org.hibernate.cfg.Configuration configure
    INFO: configuring from resource: persistence.cfg.xml
    18 nov. 2011 16:04:31 org.hibernate.cfg.Configuration getConfigurationInputStream
    INFO: Configuration resource: persistence.cfg.xml
    18 nov. 2011 16:04:32 org.hibernate.cfg.Configuration addResource
    INFO: Reading mappings from resource : auth.mapping.xml
    18 nov. 2011 16:04:32 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: ma.rpc.exemple.client.Commande -> Commande
    18 nov. 2011 16:04:32 org.hibernate.cfg.Configuration doConfigure
    INFO: Configured SessionFactory: null
    18 nov. 2011 16:04:32 org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Using Hibernate built-in connection pool (not for production use!)
    18 nov. 2011 16:04:32 org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: Hibernate connection pool size: 20
    18 nov. 2011 16:04:32 org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: autocommit mode: false
    18 nov. 2011 16:04:32 org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/struts
    18 nov. 2011 16:04:32 org.hibernate.connection.DriverManagerConnectionProvider configure
    INFO: connection properties: {user=root}
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: RDBMS: MySQL, version: 5.1.32-community-log
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.12 ( Revision: ${bzr.revision-id} )
    18 nov. 2011 16:04:33 org.hibernate.dialect.Dialect <init>
    INFO: Using dialect: org.hibernate.dialect.MySQLDialect
    18 nov. 2011 16:04:33 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
    INFO: Using default transaction strategy (direct JDBC transactions)
    18 nov. 2011 16:04:33 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic flush during beforeCompletion(): disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic session close at end of transaction: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch size: 15
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch updates for versioned data: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Scrollable result sets: enabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC3 getGeneratedKeys(): enabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Connection release mode: auto
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Maximum outer join fetch depth: 2
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default batch fetch size: 1
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Generate SQL with comments: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL updates by primary key: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL inserts for batching: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
    INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    18 nov. 2011 16:04:33 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
    INFO: Using ASTQueryTranslatorFactory
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JPA-QL strict compliance: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Second-level cache: enabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query cache: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory createCacheProvider
    INFO: Cache provider: org.hibernate.cache.NoCacheProvider
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Structured second-level cache entries: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Echoing all SQL to stdout
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Statistics: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Deleted entity synthetic identifier rollback: disabled
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default entity-mode: pojo
    18 nov. 2011 16:04:33 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Named query checking : enabled
    18 nov. 2011 16:04:33 org.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory
    18 nov. 2011 16:04:33 org.hibernate.impl.SessionFactoryObjectFactory addInstance
    INFO: Not binding factory to JNDI, no JNDI name configured
    je fichier : persistence.cfg.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
     
     
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
     
     
    <hibernate-configuration>
     
    	<session-factory>
    		<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
    		<property name="connection.url">jdbc:mysql://localhost:3306/struts</property>
    		<property name="connection.username">root</property>
    		<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    		<property name="show_sql">true</property>
     
     
    		<mapping resource="auth.mapping.xml" />
     
    	</session-factory>
     
    </hibernate-configuration>

  2. #2
    Nouveau membre du Club
    Inscrit en
    Septembre 2008
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 49
    Points : 26
    Points
    26
    Par défaut
    je sais pas comment dépasser le message :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    INFO: Not binding factory to JNDI, no JNDI name configured

  3. #3
    Membre actif
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    165
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2006
    Messages : 165
    Points : 248
    Points
    248
    Par défaut
    Mapping class: ma.rpc.exemple.client.Commande -> Commande

    Tout ce qui se trouve du côté "client" doit être compatible avec le JRE émulé de GWT cf: http://code.google.com/intl/fr-FR/we...Emulation.html

    Pour le mapping R/O regarde du côté du Request Factory: http://code.google.com/intl/fr-FR/we...stFactory.html et

  4. #4
    Nouveau membre du Club
    Inscrit en
    Septembre 2008
    Messages
    49
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 49
    Points : 26
    Points
    26
    Par défaut
    Merci pour votre reponse je vais essayer d'apprendre --Request Factory--

    et on verra bien si je vais maîtriser l'utilisation de GWT sinon je reviens au

    Richefaces

Discussions similaires

  1. Accés à une base de données Mysql
    Par astrotouf dans le forum Glassfish et Payara
    Réponses: 4
    Dernier message: 19/01/2009, 11h10
  2. [Portlet] portlet avec un accès à une base de donné mysql
    Par prodit96 dans le forum Portails
    Réponses: 1
    Dernier message: 12/01/2009, 15h41
  3. [MySQL] Accés à une base de données MySQL
    Par apt dans le forum PHP & Base de données
    Réponses: 4
    Dernier message: 06/10/2008, 19h35
  4. Accès à une base de données MySQL
    Par cybernikkos dans le forum C++Builder
    Réponses: 2
    Dernier message: 18/05/2007, 22h03
  5. [JDBC]acces à une base de données mysql
    Par sehaba dans le forum JDBC
    Réponses: 13
    Dernier message: 07/12/2004, 00h39

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