OS: CentOS 7 Minimal
Web Server: Tomcat v9.0.85 with Java 11.
App: Lucee 6.0.0.585
DB: MariaDB 11.2.2
I recently deployed the .war for 6.0.0.585 and installed it into my app. I basically moved my old WEB-INF to WEB-INF.BAK and dropped the WEB-INF from the new Lucee War into my app. I updated the web.xml file and restarted tomcat.
It seems to be running fine except datasources aren’t working. My test page comes up, SSL cert works, etc. but it’s failing to connect to my database so it throws an error. It’s late and I’m throwing in the towel for the night, but I figured I’d post here first because I didn’t have much luck finding anything to match this error in the forums/google. I’m getting the following error.
java.lang.RuntimeException:lucee.commons.lang.ClassException: cannot load class through its string name, because no definition for the class with the specified name [org.gjt.mm.mysql.Driver] could be found caused by (java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver;java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver not found by lucee.core [45]
Does Lucee 6 not support mysql or mariadb out of the box? Do I need to install a driver or something?
Here’s an example of a datasource as I have it setup in myapp/Application.cfc
this.datasources[“dbusers”] = {
class: ‘org.gjt.mm.mysql.Driver’
, connectionString: ‘jdbc:mysql://192.168.200.211:3306/dbUsers?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=exception&tinyInt1isBit=true&autoReconnect=false&jdbcCompliantTruncation=true&useOldAliasMetadataBehavior=true&allowMultiQueries=true&useLegacyDatetimeCode=true’
, username: ‘lucee’
, password: “encrypted:f665f7be64cc1ab5709d6e4ad4be7ebb1c123886bfe1217e999886705f451dbd94ead7d373cca033”
// optional settings
, connectionLimit:100 // default:-1
};
Thoughts? The database works just fine on Lucee 5.2.5.20, which is what I’m trying to upgrade from. It’s been a while since I set these datasources up on Lucee 5, but I don’t recall having to add any database drivers or anything.
1 post - 1 participant