пт, 24 мар. 2023 г. в 03:47, Kevin Huntly :
>
> Object
> of type [class jakarta.mail.Session] available at JNDI location
> [java:comp/env/mail/MailSession] is not assignable to [jakarta.mail.Session]
Apparently you have two copies of a "jakarta.mail.Session" class,
loaded by different classloaders
WARN ] - [File: AbstractApplicationContext.java:591] - Exception
> > > encountered during context initialization - cancelling refresh attempt:
> > > org.springframework.beans.factory.BeanCreationException: Error creating
> > > bean with name 'mailSession': Invocatio
empt:
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'mailSession': Invocation of init method failed; nested
> > exception is javax.naming.NamingException: Could not create resource
> > instance
> > [Time:
ilSession': Invocation of init method failed; nested
> exception is javax.naming.NamingException: Could not create resource
> instance
> [Time: 23 Mar 2023 11:31:44,139][Thread: main][Log:
> org.springframework.web.servlet.DispatcherServlet][Level: ERROR] - [File:
x27;mailSession': Invocation of init method failed; nested
exception is javax.naming.NamingException: Could not create resource
instance
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
~[spr