Re: Can't Find mySQL connector

Benoit TELLIER <[email protected]> Sun, 18 Aug 2024 22:04:28 +0000
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
External jars is specific to guice and would not apply for spring which relies on other folders.

See this example for custom JDBC drivers with guice james-jpa: https://github.com/apache/james-project/blob/master/server/apps/jpa-app/docker-compose.yml 

-- 

Best regards,

Benoit TELLIER

General manager of Linagora VIETNAM.
Product owner for Team-Mail product.
Chairman of the Apache James project.

Mail: [email protected]
Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)


On Aug 17, 2024 6:49 AM, from Jerry Malcolm I downloaded 3.8.1 JPA-Guice zip and installed it on an AWS linux EC2.  
I downloaded the latest mySQL JDBC connector and put the jar in 
external-jars.   When I start up James, I get several exceptions saying 
it can't find com.mysql.cj.jdbc.Driver.  I tried moving the connector 
jar into james-server-jpa-app.lib.  No change. I haven't yet upgraded 
the database mySQL 5.7 to mySQL 8. Is this the problem?  It seems pretty 
straight forward when the error message says java can't locate a class.  
But the class is in the jar file and the jar file is in the same folder 
with all of the other jars.  Do I have to add this jar to a classpath 
somewhere?  What am I missing?

thx

Jerry


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]