Lucee 5 Upgrade Failed

166 views
Skip to first unread message

Cody W

unread,
Feb 20, 2017, 11:23:43 AM2/20/17
to Lucee
Hello,

We're attempting an upgrade from "Lucee 4.5.2.018 final" to Lucee 5 by following the directions in the documentation at http://docs.lucee.org/guides/lucee-5/upgrading-lucee-45.html

The upgrade seems successful, and Lucee starts as expected. However, visiting a website or the Lucee admin results in the same error. 

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 not found by lucee.core [64];java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver;)

I've attached a full error page as "lucee.commons.ClassException.html". After seeing this error, I copied over the "mysql-connector-java-bin.jar" file to the lib directory, and the above error message went away.Unfortunately, I still couldn't access any of my Lucee admin pages. The error message was "Lucee 5.0.1.85 Error (missinginclude)". I've attached a stack trace as "lucee_admin_stacktrace.txt".

I've also attached the relevant entries from the Catalina log as "relevant_catalina.txt".

Here's some general info from the Lucee Overview.

General Info

Label74d63ad2aa36cb24097521793fe94cc8
Hash74d63ad2aa36cb24097521793fe94cc8
VersionLucee 4.5.2.018 final
Version NameNeo
Release dateNov 4, 2015
ColdFusion® compatibilty version10.0.0.0

Configuration FileC:\home\domain.tld\wwwroot\WEB-INF\lucee\lucee-web.xml.cfm
WebrootC:\home\domain.tld\wwwroot
OSWindows Server 2012 (6.2) 64bit
Remote IP64.207.234.198
Host Name-(omitted)
Servlet ContainerApache Tomcat/7.0.47
Installed tag
libraries
- Lucee Core Tag Library 
Installed function
libraries
- Lucee Core Function Library
Lucee date/timeFeb 20, 2017 10:08 AM
Server date/time:Feb 20, 2017 10:08 AM
Java1.7.0_45 (Oracle Corporation) 64bit
Architecture64bit
lucee_admin_stacktrace.txt
lucee.commons.lang.ClassException.html
relevant_catalina.txt

Andrew Dixon

unread,
Feb 20, 2017, 3:44:37 PM2/20/17
to lu...@googlegroups.com
Hi Cody,

When you say you "followed the instructions", did you follow them exactly, particularly the part stating "Remove all other JARs in the same directory..."? 

Lucee 5 works completely differently to Lucee 4 when it comes to the external dependencies and leaving the previous JARs around, or copying them back as have suggested you have done, will cause you problems. 

Also, did you download the "lucee.jar" file from here:


the link to the current release lucee.jar file is:


The file it downloads is 63.5Mb. The file contains all the extensions for DB, cache, etc... that were previously bundled. From the error message, it looks like you are missing the MySQL extension, so I wonder if you got the wrong file.

The only other thing I would say, is from your output, you appear to be on a pretty old version of Java 7, which I believe there have been lots of security updates for since, so I would recommend you upgrade to the latest version of Java 8.

Kind regards,

Andrew

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/e94b1d6c-f7ee-4c5c-a546-ebfab1575b21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cody W

unread,
Feb 20, 2017, 6:13:26 PM2/20/17
to Lucee
Hi Andrew,

Thanks for taking a look! Yes, all other JARs were removed from the lib directory. I heard that Lucee 5 includes all dependencies in the one JAR, which is why I'm so bewildered at the current situation. I've done a few in place Lucee 4.5 to Lucee 5 upgrades, and I've never ran into this issue.

I updated Lucee to use the latest Java 8 JDK from Oracle, as you suggested.

At first I was using "lucee-5.0.1.85.jar", but I just tried updating with the latest JAR from the link you provided, while using Java 8, and I got the same error message. 
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages