Java EE / problème de connexion à la BDD
Résolu/Fermé
Conan3
Conan3
- Messages postés
- 8
- Date d'inscription
- lundi 18 décembre 2017
- Statut
- Membre
- Dernière intervention
- 9 août 2020
Conan3
- Messages postés
- 8
- Date d'inscription
- lundi 18 décembre 2017
- Statut
- Membre
- Dernière intervention
- 9 août 2020
A voir également:
- Java EE / problème de connexion à la BDD
- Java EE / problème de connexion à la BDD ✓ - Forum - MySQL
- [Java EE] Installer la BDD ✓ - Forum - Programmation
- Pb de connexion à une BDD MySQL en JAVA ✓ - Forum - Java
- Java.io.ioexception: une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte - Forum - Jeux en ligne: Minecraft
- Java ee definition - Articles
2 réponses
jordane45
10 févr. 2018 à 18:24
- Messages postés
- 35709
- Date d'inscription
- mercredi 22 octobre 2003
- Statut
- Modérateur
- Dernière intervention
- 24 juin 2022
10 févr. 2018 à 18:24
Bonjour,
Sans certitude...
ta ligne de code
ne devrait-elle pas plutot etre
Sans certitude...
ta ligne de code
Connection connexion = DriverManager.getConnection(url, username, password);
ne devrait-elle pas plutot etre
Connection connexion = DriverManager.getConnection(this.url, this.username, this.password);
Conan3
10 févr. 2018 à 19:20
- Messages postés
- 8
- Date d'inscription
- lundi 18 décembre 2017
- Statut
- Membre
- Dernière intervention
- 9 août 2020
10 févr. 2018 à 19:20
J'ai cherché et j'ai trouvé des avertissements dans les logs de GlassFish comme suivant :
Launching GlassFish on Felix platform
févr. 10, 2018 12:55:28 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFOS: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
févr. 10, 2018 12:55:28 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
AVERTISSEMENT: Skipping entry because it is not an absolute URI.
févr. 10, 2018 12:55:28 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
AVERTISSEMENT: Skipping entry because it is not an absolute URI.
févr. 10, 2018 12:55:28 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
AVERTISSEMENT: Can not start bundle file:/C:/Program%20Files/glassfish-4.1.1/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@b84374 in service registry.
#!## LogManagerService.postConstruct : rootFolder=C:\Program Files\glassfish-4.1.1\glassfish
#!## LogManagerService.postConstruct : templateDir=C:\Program Files\glassfish-4.1.1\glassfish\lib\templates
#!## LogManagerService.postConstruct : src=C:\Program Files\glassfish-4.1.1\glassfish\lib\templates\logging.properties
#!## LogManagerService.postConstruct : dest=C:\Users\Windows7\AppData\Roaming\NetBeans\8.2\config\GF_4.1.1\domain1\config\logging.properties
Infos: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
Infos: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Infos: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Infos: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Infos: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Infos: Authorization Service has successfully initialized.
Infos: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Infos: JTS5014: Recoverable JTS instance, serverId = [100]
Avertissement: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Grave: Application previously deployed is not at its original location any more: file:/C:/Users/Windows7/Desktop/EnterpriseApplication1/EnterpriseApplication1-war/build/web/
Infos: Grizzly Framework 2.3.23 started in: 219ms - bound to /0.0.0.0:8080
Avertissement: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Infos: Grizzly Framework 2.3.23 started in: 23ms - bound to /0.0.0.0:8181
Avertissement: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Infos: Grizzly Framework 2.3.23 started in: 4ms - bound to /0.0.0.0:4848
Infos: Grizzly Framework 2.3.23 started in: 8ms - bound to /0.0.0.0:3700
Infos: visiting unvisited references
Infos: Java security manager is disabled.
Infos: Entering Security Startup Service.
Infos: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
Infos: Security Service(s) started successfully.
Infos: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
Infos: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
Infos: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
Infos: Created virtual server server
Infos: Created virtual server __asadmin
Infos: Setting JAAS app name glassfish-web
Infos: Virtual server server loaded default web module
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: Loading application [PFE_JEE] at /PFE_JEE
Infos: Loading application PFE_JEE done in 7 956 ms
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: Loading application [PFE_JEE-war] at /PFE_JEE-war
Infos: Loading application PFE_JEE-war done in 582 ms
Infos: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (17 141ms), startup services(11 551ms), total(28 692ms)
Infos: Grizzly Framework 2.3.23 started in: 8ms - bound to /0.0.0.0:7676
Infos: HV000001: Hibernate Validator 5.1.2.Final
Infos: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://Windows7-PC:8686/jndi/rmi://Windows7-PC:8686/jmxrmi
Avertissement: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Infos: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
Infos: Grizzly Framework 2.3.23 started in: 16ms - bound to /0.0.0.0:8181
Avertissement: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Infos: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
Infos: Grizzly Framework 2.3.23 started in: 9ms - bound to /0.0.0.0:8080
Infos: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@830d9a as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@1fae596.
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: Loading application [PFE_JEE] at /PFE_JEE
Infos: PFE_JEE was successfully deployed in 1 066 milliseconds.
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: Loading application [PFE_JEE] at /PFE_JEE
Infos: PFE_JEE was successfully deployed in 12 670 milliseconds.
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: visiting unvisited references
Infos: Loading application [PFE_JEE] at /PFE_JEE
Infos: PFE_JEE was successfully deployed in 2 977 milliseconds.
Conan3
10 févr. 2018 à 21:57
- Messages postés
- 8
- Date d'inscription
- lundi 18 décembre 2017
- Statut
- Membre
- Dernière intervention
- 9 août 2020
10 févr. 2018 à 21:57
C'est urgent, j'ai besoin de solution.
Modifié le 10 févr. 2018 à 19:26
Il m'affiche la même erreur.