Skip to main content



      Home
Home » Eclipse Projects » GlassFish » JavaMail Session Glassfish(Error while deploying my Application)
JavaMail Session Glassfish [message #1860615] Mon, 21 August 2023 22:30
Eclipse UserFriend
Good evening everyone,

I am working on a jakarta ee project for a few days but I am stuck.

Indeed, I created a JavaMail Session that I use in my project to send Mail at the start and stop of my web application but I wanted to create a class to test if it works first here is the code :

package sn.edu.ugb.ipsl.appventevelo;


import jakarta.annotation.PostConstruct;
import jakarta.annotation.Resource;
import jakarta.ejb.EJB;
import jakarta.ejb.Singleton;
import jakarta.ejb.Startup;
import jakarta.mail.Message;
import jakarta.mail.MessagingException;
import jakarta.mail.Session;
import jakarta.mail.Transport;
import jakarta.mail.internet.InternetAddress;
import jakarta.mail.internet.MimeMessage;

@Singleton
@Startup
public class EmailSender {


    /*@PostConstruct
    public void init() {
        EnvoyerEmail("mouhamedn842@gmail.com", "Mail de Test", "Eh bien! Suis le meilleur");
    }*/

    @Resource(name = "mail/AppVenteVeloMailSession")
    private static Session session;

    public static void EnvoyerEmail(String to, String objet, String contenu)  {

        try {
            Message message = new MimeMessage(session);
            message.setFrom(new InternetAddress("mouhamedn842@gmail.com"));
            message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));
            message.setSubject(objet);
            message.setText(contenu);

            Transport.send(message);

            System.out.println("Message envoyé avec succés!");
        } catch (MessagingException e) {
            throw new RuntimeException("######## Erreur d'envoi! à cause de :=> " + e);
        }
    }

}


But when I start my application server it generates an error. Here are the log details:

[2023-08-22T02:05:50.909387Z] [] [INFO] [NCLS-GFLAUNCHER-00005] [jakarta.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  JVM invocation command line:
C:\Program Files\Amazon Corretto\jdk17.0.6_10\bin\java.exe
-cp
C:/glassfish-ing2/glassfish/modules/glassfish.jar
-DWALL_CLOCK_START=2023-08-22T02:05:48.179427600Z
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-Xmx512m
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED
--add-opens=java.naming/javax.naming.spi=ALL-UNNAMED
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED
--add-opens=java.base/jdk.internal.vm.annotation=ALL-UNNAMED
-javaagent:C:/glassfish-ing2/glassfish/lib/monitor/flashlight-agent.jar
-Djava.awt.headless=true
-Djdk.corba.allowOutputStreamSubclass=true
-Djdk.tls.rejectClientInitiatedRenegotiation=true
-Djavax.xml.accessExternalSchema=all
-Djava.security.policy=C:\glassfish-ing2\glassfish\domains\domain1/config/server.policy
-Djava.security.auth.login.config=C:\glassfish-ing2\glassfish\domains\domain1/config/login.conf
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djavax.net.ssl.keyStore=C:\glassfish-ing2\glassfish\domains\domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:\glassfish-ing2\glassfish\domains\domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dosgi.shell.telnet.port=6666
-Dosgi.shell.telnet.maxconn=1
-Dosgi.shell.telnet.ip=127.0.0.1
-Dgosh.args=--nointeractive
-Dfelix.fileinstall.dir=C:\glassfish-ing2\glassfish/modules/autostart/
-Dfelix.fileinstall.poll=5000
-Dfelix.fileinstall.log.level=2
-Dfelix.fileinstall.bundles.new.start=true
-Dfelix.fileinstall.bundles.startTransient=true
-Dfelix.fileinstall.disableConfigSave=false
-Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djdk.attach.allowAttachSelf=true
-Dcom.sun.aas.instanceRoot=C:\glassfish-ing2\glassfish\domains\domain1
-Dcom.sun.aas.installRoot=C:\glassfish-ing2\glassfish
-Djava.library.path=C:/glassfish-ing2/glassfish/lib;C:/Program Files/Amazon Corretto/jdk17.0.6_10/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/oraclexe/app/oracle/product/11.2.0/server/bin;C:/Program Files/Common Files/Oracle/Java/javapath;C:/Program Files (x86)/Common Files/Oracle/Java/javapath;C:/Program Files/MySQL/MySQL Server 8.0/bin;C:/xampp/mysql/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Windows/System32/OpenSSH;C:/apache-maven-3.9.3/bin;C:/Program Files/PostgreSQL/15/bin;C:/Program Files/MySQL/MySQL Shell 8.0/bin;C:/Users/MOUHAMED NDIAYE/AppData/Local/Microsoft/WindowsApps;C:/Users/MOUHAMED NDIAYE/AppData/Local/Programs/Microsoft VS Code/bin;C:/Program Files/JetBrains/IntelliJ IDEA 2023.1.3/bin;C:/glassfish-ing2/glassfish/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
C:/glassfish-ing2/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,C:\glassfish-ing2\glassfish\domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
C:/glassfish-ing2/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]

[2023-08-22T02:05:59.127533Z] [GF 7.0.5] [INFO] [] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Using property file: C:\glassfish-ing2\glassfish\domains\domain1\config\logging.properties]]

[2023-08-22T02:05:59.372609Z] [GF 7.0.5] [INFO] [NCLS-LOGGING-00009] [com.sun.enterprise.server.logging.LogManagerService] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Running GlassFish Version: Eclipse GlassFish 7.0.5 (branch: master, commit: 7b49f4eaf669e9a3b4f4648254f9016872455236, timestamp: 2023-04-02T15:44:03Z)]]

[2023-08-22T02:05:59.941863Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-08-22T02:05:59.947507Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2023-08-22T02:05:59.961552Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01115] [jakarta.enterprise.system.core.security] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2023-08-22T02:06:01.079204Z] [GF 7.0.5] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Grizzly Framework 4.0.0 started in: 131ms - bound to [/0.0.0.0:8080]]]

[2023-08-22T02:06:01.143366Z] [GF 7.0.5] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Grizzly Framework 4.0.0 started in: 7ms - bound to [/0.0.0.0:8181]]]

[2023-08-22T02:06:01.175678Z] [GF 7.0.5] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Grizzly Framework 4.0.0 started in: 21ms - bound to [/0.0.0.0:4848]]]

[2023-08-22T02:06:01.489203Z] [GF 7.0.5] [INFO] [SEC-SVCS-00100] [jakarta.enterprise.security.services] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Authorization Service has successfully initialized.]]

[2023-08-22T02:06:01.773402Z] [GF 7.0.5] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]

[2023-08-22T02:06:02.093163Z] [GF 7.0.5] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Grizzly Framework 4.0.0 started in: 7ms - bound to [/0.0.0.0:3700]]]

[2023-08-22T02:06:02.095318Z] [GF 7.0.5] [INFO] [NCLS-CORE-00017] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Eclipse GlassFish 7.0.5 (branch: master, commit: 7b49f4eaf669e9a3b4f4648254f9016872455236, timestamp: 2023-04-02T15:44:03Z) startup time: Embedded (6 567 ms), startup services (3 153 ms), total (9 720 ms)]]

[2023-08-22T02:06:02.098323Z] [GF 7.0.5] [INFO] [NCLS-CORE-00018] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Total startup time including CLI: 13 918 ms]]

[2023-08-22T02:06:02.805497Z] [GF 7.0.5] [INFO] [NCLS-CORE-00087] [jakarta.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [levelValue: 800] [[
  Grizzly Framework 4.0.0 started in: 56ms - bound to [/0.0.0.0:7676]]]

[2023-08-22T02:06:03.838489Z] [GF 7.0.5] [INFO] [NCLS-JMX-00005] [jakarta.enterprise.system.jmx] [tid: _ThreadID=64 _ThreadName=Thread-7] [levelValue: 800] [[
  JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://Zenitsu-MNN:8686/jndi/rmi://Zenitsu-MNN:8686/jmxrmi]]

[2023-08-22T02:06:07.616920Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01002] [jakarta.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Java security manager is disabled.]]

[2023-08-22T02:06:07.618915Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01010] [jakarta.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Entering Security Startup Service.]]

[2023-08-22T02:06:07.627415Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01143] [jakarta.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Loading policy provider org.glassfish.exousia.modules.locked.SimplePolicyProvider.]]

[2023-08-22T02:06:07.713458Z] [GF 7.0.5] [INFO] [NCLS-SECURITY-01011] [jakarta.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Security Service(s) started successfully.]]

[2023-08-22T02:06:08.454696Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00198] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]

[2023-08-22T02:06:08.466894Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00198] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]

[2023-08-22T02:06:08.469885Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00198] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]

[2023-08-22T02:06:08.523069Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00200] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created virtual server server]]

[2023-08-22T02:06:08.529261Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00200] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created virtual server __asadmin]]

[2023-08-22T02:06:09.335311Z] [GF 7.0.5] [INFO] [AS-WEB-CORE-00306] [jakarta.enterprise.web.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Setting JAAS app name glassfish-web]]

[2023-08-22T02:06:09.349454Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00201] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Virtual server server loaded default web module ]]

[2023-08-22T02:06:11.855552Z] [GF 7.0.5] [INFO] [NCLS-REST-00001] [jakarta.enterprise.admin.rest] [tid: _ThreadID=45 _ThreadName=admin-listener(2)] [levelValue: 800] [[
  Listening to REST requests at context: /management/domain.]]

[2023-08-22T02:06:13.001896Z] [GF 7.0.5] [WARNING] [] [jakarta.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 900] [[
  Probably the pool org.glassfish.resourcebase.resources.api.PoolInfo@ab42db2a[jndiName=AppVentePool, applicationName=null, moduleName=null] is not yet initialized (lazy-loading), trying to check ...]]

[2023-08-22T02:06:14.413293Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Version] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  WELD-000900: 5.1.0 (Final)]]

[2023-08-22T02:06:15.045832Z] [GF 7.0.5] [INFO] [] [jakarta.enterprise.resource.resourceadapter.com.sun.enterprise.resource.pool] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Created connection pool and added it to PoolManager: Pool [org.glassfish.resourcebase.resources.api.PoolInfo@ab42db2a[jndiName=AppVentePool, applicationName=null, moduleName=null]] PoolSize=0  FreeResources=0  QueueSize=0 matching=off validation=off]]

[2023-08-22T02:06:18.960007Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:19.120260Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:19.209840Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:22.414342Z] [GF 7.0.5] [INFO] [] [org.eclipse.persistence.session./file:/C:/Users/MOUHAMED NDIAYE/IdeaProjects/AppVenteVelo/target/AppVenteVelo-1.0-SNAPSHOT/WEB-INF/classes/_AppVente_PU] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  EclipseLink, version: Eclipse Persistence Services - 4.0.1.v202302241130]]

[2023-08-22T02:06:28.119675Z] [GF 7.0.5] [INFO] [] [org.glassfish.soteria.servlet.SamRegistrationInstaller] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  Initializing Soteria 3.0.2 for context '']]

[2023-08-22T02:06:28.134635Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB EmployeFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/EmployeFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/EmployeFacade!sn.edu.ugb.ipsl.appventevelo.facades.EmployeFacade]]]

[2023-08-22T02:06:28.270273Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB CategorieFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/CategorieFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/CategorieFacade!sn.edu.ugb.ipsl.appventevelo.facades.CategorieFacade]]]

[2023-08-22T02:06:28.305535Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB ArticleCommandeFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/ArticleCommandeFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/ArticleCommandeFacade!sn.edu.ugb.ipsl.appventevelo.facades.ArticleCommandeFacade]]]

[2023-08-22T02:06:28.338793Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB ProduitFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/ProduitFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/ProduitFacade!sn.edu.ugb.ipsl.appventevelo.facades.ProduitFacade]]]

[2023-08-22T02:06:28.374766Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB MagasinFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/MagasinFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/MagasinFacade!sn.edu.ugb.ipsl.appventevelo.facades.MagasinFacade]]]

[2023-08-22T02:06:28.426957Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB ClientFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/ClientFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/ClientFacade!sn.edu.ugb.ipsl.appventevelo.facades.ClientFacade]]]

[2023-08-22T02:06:28.477295Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB MarqueFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/MarqueFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/MarqueFacade!sn.edu.ugb.ipsl.appventevelo.facades.MarqueFacade]]]

[2023-08-22T02:06:28.501588Z] [GF 7.0.5] [INFO] [faces.config.listener.version] [jakarta.enterprise.resource.webcontainer.faces.config] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  Initialisation de Mojarra 4.0.2 pour le contexte «»]]

[2023-08-22T02:06:28.512559Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB CommandeFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/CommandeFacade!sn.edu.ugb.ipsl.appventevelo.facades.CommandeFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/CommandeFacade]]]

[2023-08-22T02:06:28.605842Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB EmailSender: [java:global/AppVenteVelo-1.0-SNAPSHOT/EmailSender, java:global/AppVenteVelo-1.0-SNAPSHOT/EmailSender!sn.edu.ugb.ipsl.appventevelo.EmailSender]]]

[2023-08-22T02:06:28.665525Z] [GF 7.0.5] [INFO] [AS-EJB-00054] [jakarta.enterprise.ejb.container] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Portable JNDI names for EJB StockFacade: [java:global/AppVenteVelo-1.0-SNAPSHOT/StockFacade!sn.edu.ugb.ipsl.appventevelo.facades.StockFacade, java:global/AppVenteVelo-1.0-SNAPSHOT/StockFacade]]]

[2023-08-22T02:06:29.266924Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:29.363820Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<T>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:29.397390Z] [GF 7.0.5] [INFO] [] [org.jboss.weld.Event] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.]]

[2023-08-22T02:06:31.146025Z] [GF 7.0.5] [WARNING] [] [com.sun.logging.LogDomains] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 900] [[
  Cannot find the resource bundle for the name com.sun.logging.enterprise.resource.resourceadapter for class org.glassfish.resources.mail.deployer.MailResourceDeployer using classloader org.glassfish.main.resources.mail-runtime [215]]]

[2023-08-22T02:06:31.720648Z] [GF 7.0.5] [SEVERE] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
  Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
jakarta.ejb.EJBException: jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:622)
	at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:362)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:195)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:156)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:134)
	at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:137)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:97)
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:262)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:353)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:535)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:259)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:570)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:566)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:565)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:596)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:588)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:587)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1478)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:535)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:222)
	at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:425)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:144)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:450)
	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:620)
	... 45 more
Caused by: java.lang.IllegalStateException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:164)
	at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
	at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:73)
	at org.jboss.weld.module.ejb.DynamicInjectionPointInjector.inject(DynamicInjectionPointInjector.java:61)
	at org.jboss.weld.module.ejb.SessionBeanInjectionTarget.inject(SessionBeanInjectionTarget.java:138)
	at org.glassfish.weld.services.CDIServiceImpl.injectEJBInstance(CDIServiceImpl.java:302)
	at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1545)
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:409)
	... 46 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:575)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:385)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:122)
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:155)
	... 53 more
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:262)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:353)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:535)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:259)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:570)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:566)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:565)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:596)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:588)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:587)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1478)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:535)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:222)
	at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:425)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:144)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:450)
	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:620)
	... 45 more
Caused by: java.lang.IllegalStateException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:164)
	at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
	at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:73)
	at org.jboss.weld.module.ejb.DynamicInjectionPointInjector.inject(DynamicInjectionPointInjector.java:61)
	at org.jboss.weld.module.ejb.SessionBeanInjectionTarget.inject(SessionBeanInjectionTarget.java:138)
	at org.glassfish.weld.services.CDIServiceImpl.injectEJBInstance(CDIServiceImpl.java:302)
	at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1545)
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:409)
	... 46 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:575)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:385)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:122)
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:155)
	... 53 more
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:262)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:353)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:535)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:259)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:570)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:566)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:565)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:596)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:588)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/javax.security.auth.Subject.doAs(Subject.java:376)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:587)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1478)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:535)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:222)
	at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:150)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:425)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:144)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:164)
	at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
	at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:73)
	at org.jboss.weld.module.ejb.DynamicInjectionPointInjector.inject(DynamicInjectionPointInjector.java:61)
	at org.jboss.weld.module.ejb.SessionBeanInjectionTarget.inject(SessionBeanInjectionTarget.java:138)
	at org.glassfish.weld.services.CDIServiceImpl.injectEJBInstance(CDIServiceImpl.java:302)
	at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1545)
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:409)
	... 46 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: mail/AppVenteVeloMailSession@jakarta.mail.Session@ resolved as: jndi: mail/AppVenteVeloMailSession@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class sn.edu.ugb.ipsl.appventevelo.EmailSender: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:575)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:385)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:122)
	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:155)
	... 53 more
Caused by: java.util.ServiceConfigurationError: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
	at jakarta.mail.Session.loadProviders(Session.java:987)
	at jakarta.mail.Session.<init>(Session.java:273)
	at jakarta.mail.Session.getInstance(Session.java:309)
	at org.glassfish.resources.mail.naming.MailNamingObjectFactory.getObjectInstance(MailNamingObjectFactory.java:58)
	at java.naming/javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:342)
	at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:877)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:834)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at org.glassfish.resourcebase.resources.naming.ResourceNamingService.lookup(ResourceNamingService.java:189)
	at org.glassfish.resourcebase.resources.api.ResourceProxy.create(ResourceProxy.java:66)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:827)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:74)
	at com.sun.enterprise.naming.util.JndiInitializationNamingObjectFactory.create(JndiInitializationNamingObjectFactory.java:90)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:603)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:573)
	at com.sun.enterprise.naming.impl.JavaURLContext.lambda$lookup$0(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookupOrCollectException(JavaURLContext.java:550)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:818)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:269)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:551)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:493)
	... 56 more
]]

[2023-08-22T02:06:31.729625Z] [GF 7.0.5] [SEVERE] [NCLS-CORE-00026] [jakarta.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
  Exception during lifecycle processing
jakarta.ejb.EJBException: jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:622)
	at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:362)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:195)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:156)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:134)
	at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:137)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:97)
Caused by: java.util.ServiceConfigurationError: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
	at jakarta.mail.Session.loadProviders(Session.java:987)
	at jakarta.mail.Session.<init>(Session.java:273)
	at jakarta.mail.Session.getInstance(Session.java:309)
	at org.glassfish.resources.mail.naming.MailNamingObjectFactory.getObjectInstance(MailNamingObjectFactory.java:58)
	at java.naming/javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:342)
	at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:877)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:834)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at org.glassfish.resourcebase.resources.naming.ResourceNamingService.lookup(ResourceNamingService.java:189)
	at org.glassfish.resourcebase.resources.api.ResourceProxy.create(ResourceProxy.java:66)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:827)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:74)
	at com.sun.enterprise.naming.util.JndiInitializationNamingObjectFactory.create(JndiInitializationNamingObjectFactory.java:90)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:603)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:573)
	at com.sun.enterprise.naming.impl.JavaURLContext.lambda$lookup$0(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookupOrCollectException(JavaURLContext.java:550)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:818)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:269)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:551)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:493)
	... 56 more
]]

[2023-08-22T02:06:31.738600Z] [GF 7.0.5] [SEVERE] [] [jakarta.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
  Exception while loading the app]]

[2023-08-22T02:06:32.204553Z] [GF 7.0.5] [SEVERE] [AS-WEB-GLUE-00192] [jakarta.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
  Undeployment failed for context /AppVenteVelo-1.0-SNAPSHOT]]

[2023-08-22T02:06:32.283315Z] [GF 7.0.5] [SEVERE] [] [jakarta.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
  Exception while loading the app : jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
jakarta.ejb.CreateException: Initialization failed for Singleton EmailSender
	at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:450)
	at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:620)
	at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:362)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:195)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:156)
	at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:134)
	at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:137)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:97)
Caused by: java.util.ServiceConfigurationError: jakarta.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
	at jakarta.mail.Session.loadProviders(Session.java:987)
	at jakarta.mail.Session.<init>(Session.java:273)
	at jakarta.mail.Session.getInstance(Session.java:309)
	at org.glassfish.resources.mail.naming.MailNamingObjectFactory.getObjectInstance(MailNamingObjectFactory.java:58)
	at java.naming/javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:342)
	at com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:877)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:834)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at org.glassfish.resourcebase.resources.naming.ResourceNamingService.lookup(ResourceNamingService.java:189)
	at org.glassfish.resourcebase.resources.api.ResourceProxy.create(ResourceProxy.java:66)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:827)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
	at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:74)
	at com.sun.enterprise.naming.util.JndiInitializationNamingObjectFactory.create(JndiInitializationNamingObjectFactory.java:90)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:603)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:573)
	at com.sun.enterprise.naming.impl.JavaURLContext.lambda$lookup$0(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookupOrCollectException(JavaURLContext.java:550)
	at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:818)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:269)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:551)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:493)
	... 56 more
]]

[2023-08-22T02:06:33.947873Z] [GF 7.0.5] [INFO] [AS-WEB-GLUE-00172] [jakarta.enterprise.web] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  Loading application [__admingui] at [/]]]

[2023-08-22T02:06:33.951876Z] [GF 7.0.5] [INFO] [NCLS-CORE-00022] [jakarta.enterprise.system.core] [tid: _ThreadID=91 _ThreadName=Thread-14] [levelValue: 800] [[
  Loading application __admingui done in 21 767 ms]]

Previous Topic:Glassfish JMS
Next Topic:Administration Console Problem
Goto Forum:
  


Current Time: Wed Apr 30 20:40:40 EDT 2025

Powered by FUDForum. Page generated in 0.08180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top