Bonjour,
J'essaie de suivre ce tuto pour me mettre à Seam.
J'y arrive à peu près mais ça coince au niveau de l'étape :
Quand je lance bash seam generate-entities, j'ai un beau BUILD FAILED !2.5. Generation d'une application depuis une base de données existante
Déjà, dans le déroulement, il y a ceci dont je ne comprends pas la nature, n'en ayant vu aucune mention nulle part dans ce que j'ai lu jusque là :
Comme c'est un WARN, je me dis que ce n'est peut-être pas très grave.[hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
[hibernate] log4j:WARN Please initialize the log4j system properly.
Ensuite viennent d'autres insultes d'hibernate :
Dans le seam setup, j'ai bien paramétré la BDD MySQL, l'utilisateur et son mot de passe, ainsi que, il me semble en tout cas, les chemins vers jdbc et autre dialecte hibernate.[hibernate] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] org.hibernate.exception.JDBCConnectionException: Getting database metadata
[hibernate] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
[hibernate]
[hibernate] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
[hibernate] java.net.ConnectException: Connection refused
Le fichier hibernate-console.properties, généré automatiquement, ressemble à ceci (user et mot de passe changés pour publication) :
En attendant une réponse, je vais essayer un autre tuto.#File used by hibernate tools to override <datasource> and other container specific settings in persistence.xml
hibernate.connection.password=mot_passe
hibernate.connection.username=utilisateur
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.url=jdbc:mysql:///helloworld
hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
hibernate.datasource=
hibernate.transaction.manager_lookup_class=
Partager