Error using Ucanaccess Driver installed in Lucee admin

Error message is :

I have installed Ucanaccess driver (ucanaccess-4.0.4.jar) Under Lucee 5.3
on Linux Debian 10 and Apache 2.4

Ucanacces driver have appeared in the datasource driver list.
(also, I can see Ucanacces files in the Lucee file structure, the jar, the lex)

When declaring a new datasource I can choose the Ucanacces driver in the driver list,
great, Then I create and get the datasource full form.
I give the mdb file (database file) address in the “database” field , like : /var/www/C006/database/cinema.mdb

I am wondering if this is the right place to point to the mdb file,
and the right path designation ?

Error is message :

Thanks, if anybody can help me with this blocking factor using Lucee/Linux
instead Coldfusion/Windows.

I believe , this is a Ucanaccess/Lucee link problem.


Hi @Pierre_Larde the UcanAccess extension is maintained by a member of the community @michaelborn_me and not the Lucee dev team. I’ve pinged him so hopefully he can chime in and help.

OK, thanks,
by the way, what means : in Info Bundle (jar)
"active or not loaded" , how to load a bundle ?
Is that done by application installation ?

See the screenshot I have, I should have a version problem.

Thanks for advise.

Can you click show details on the error page?

Hey Pierre,
You seem to have found the root issue - Lucee doesn’t want to load the jackcess library, which is the main jar that adds Access database capability in this extension.

I’ve actually unpublished the extension for now, because I can replicate this issue and it’s keeping the extension from working at all.

Brad, do you have any clue on why Lucee would show the jar but set it to “not loaded”? Pierre’s screenshot is showing two versions of jackcess, one active and one not. When I test it after installing the extension, I only see a single version (3.0.1) and it is “not loaded”.

Also, Pierre, I haven’t tested using the Lucee admin UI for adding a datasource. For using the extension, you’ll need to manually create the datasource in code - see

there maybe two versions of the extension bundle under bundles?

I think the extension handling logic doesn’t always remove older versions…

TBH, I don’t recall what the words on that screen mean. I know they had specific, OSGI-related meanings and Micha explained them to me, but I forget.

Error message is :
Lucee Error (java.lang.NoClassDefFoundError)


Can you help me to make it working ?

I tried declaration through the Lucee admin
and manually adding this code :
class: “net.ucanaccess.jdbc.UcanaccessDriver”,
connectionString: “jdbc:ucanaccess:///var/www/C006/database/cinema.mdb”

and get the same message error

May be, I could put the right files versions at the right place ?
And I am not sure the connection string is correct Under Linux ?
jdbc:ucanaccess:///var/www/C006/database/cinema.mdb (correct linux path ?)

thanks for help.

It seems there is a incoherent link to the right version ?
Thanks for any help,
And what should be the right way to restart properly.

Here is the details of error :

lucee.runtime.exp.NativeException: com/healthmarketscience/jackcess/util/ErrorHandler at java.base/java.lang.Class.getDeclaredConstructors0(Native Method) at java.base/java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.base/java.lang.Class.getConstructor0(Unknown Source) at java.base/java.lang.Class.newInstance(Unknown Source) at lucee.runtime.db.DataSourceSupport._initializeDriver( at lucee.runtime.db.DataSourceSupport.initialize( at lucee.runtime.db.DataSourceSupport.getConnection( at lucee.runtime.tag.Admin._doVerifyDatasource( at lucee.runtime.tag.Admin.doUpdateDatasource( at lucee.runtime.tag.Admin._doStartTag( at lucee.runtime.tag.Admin.doStartTag( at services_datasource_create_cfm1334$ at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl.doInclude( at services_datasource_cfm414$ at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl.doInclude( at web_cfm$ at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl.doInclude( at server_cfm$ at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.listener.ModernAppListener._onRequest( at lucee.runtime.listener.MixedAppListener.onRequest( at lucee.runtime.PageContextImpl.execute( at lucee.runtime.PageContextImpl._execute( at lucee.runtime.PageContextImpl.executeCFML( at lucee.runtime.engine.Request.exe( at lucee.runtime.engine.CFMLEngineImpl._service( at lucee.runtime.engine.CFMLEngineImpl.serviceCFML( at lucee.loader.engine.CFMLEngineWrapper.serviceCFML( at lucee.loader.servlet.CFMLServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.tomcat.websocket.server.WsFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.authenticator.AuthenticatorBase.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.service( at org.apache.coyote.AbstractProcessorLight.process( at org.apache.coyote.AbstractProtocol$ConnectionHandler.process( at$SocketProcessor.doRun( at at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$ Source) at org.apache.tomcat.util.threads.TaskThread$ at java.base/ Source) Caused by: java.lang.NoClassDefFoundError: com/healthmarketscience/jackcess/util/ErrorHandler … 58 more Caused by: java.lang.ClassNotFoundException: com.healthmarketscience.jackcess.util.ErrorHandler not found by ucanaccess.4.0.4 [50] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation( at org.apache.felix.framework.BundleWiringImpl.access$300( at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass( at java.base/java.lang.ClassLoader.loadClass(Unknown Source) … 58 more

Pierre, you’re not going to get this working through the CF admin - see my comment above, where I linked to my blog post on how to use the extension.

As far as that datasource goes, it does look right. Of course, I can’t say whether that file path actually points to your DB file, but at any rate that’s not really the issue here. Somehow the wrong jar (2.1.1, in your screenshot) is loaded into Lucee, and 3.0.1 is not. I have no idea why that is.

And if I replace the jar 3.0.1 files by the jar 2.1.1 (degrade the version)
Lucee should understand it ? as it look for the jar 2.1.1 (extension loaded)

Do you think, this could be a trial ?
I f so, where to get the older version 2.1.1 ?

Thanks for your comments,

No news about my problem ? is that a version problem ?
With no success, I will give up this environment.
Should I wait next version of Lucee to place the right Ucanaccess extension version ?
Thanks for help.
Or I reinstall the whole.