Lucee 5 Upgrade Failed

Hello,

We’re attempting an upgrade from “Lucee 4.5.2.018 final” to Lucee 5 by
following the directions in the documentation
at Upgrading from Lucee 4.5 :: Lucee Documentation.

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
Label 74d63ad2aa36cb24097521793fe94cc8
Hash 74d63ad2aa36cb24097521793fe94cc8
Version Lucee 4.5.2.018 final
Version Name Neo https://www.facebook.com/neo.cfm
Release date Nov 4, 2015
ColdFusion® compatibilty version 10.0.0.0
Configuration File
C:\home\domain.tld\wwwroot\WEB-INF\lucee\lucee-web.xml.cfm
Webroot C:\home\domain.tld\wwwroot
OS Windows Server 2012 (6.2) 64bit
Remote IP 64.207.234.198
Host Name -(omitted)
Servlet Container Apache Tomcat/7.0.47
Installed tag
libraries - Lucee Core Tag Library
Installed function
libraries - Lucee Core Function Library
Lucee date/time Feb 20, 2017 10:08 AM
Server date/time: Feb 20, 2017 10:08 AM
Java 1.7.0_45 (Oracle Corporation) 64bit
Architecture 64bit

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:

http://stable.lucee.org/download/?type=releases

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

http://release.lucee.org/rest/update/provider/loader/5.1.1.65

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
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 20 February 2017 at 16:22, Cody W <@Cody_W> wrote:

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
Label 74d63ad2aa36cb24097521793fe94cc8
Hash 74d63ad2aa36cb24097521793fe94cc8
Version Lucee 4.5.2.018 final
Version Name Neo https://www.facebook.com/neo.cfm
Release date Nov 4, 2015
ColdFusion® compatibilty version 10.0.0.0
Configuration File C:\home\domain.tld\wwwroot\WEB-INF\lucee\lucee-web.xml.
cfm
Webroot C:\home\domain.tld\wwwroot
OS Windows Server 2012 (6.2) 64bit
Remote IP 64.207.234.198
Host Name -(omitted)
Servlet Container Apache Tomcat/7.0.47
Installed tag
libraries - Lucee Core Tag Library
Installed function
libraries - Lucee Core Function Library
Lucee date/time Feb 20, 2017 10:08 AM
Server date/time: Feb 20, 2017 10:08 AM
Java 1.7.0_45 (Oracle Corporation) 64bit
Architecture 64bit


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 lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/e94b1d6c-f7ee-4c5c-a546-ebfab1575b21%40googlegroups.com
https://groups.google.com/d/msgid/lucee/e94b1d6c-f7ee-4c5c-a546-ebfab1575b21%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.