TodoMVC Implementation with CFWheels and HTMX
March 29, 2022
Posted in Community, Tutorials
Posted By: Peter Amiri
Ed
Hi Peter, Thanks for this example, I hadn't heard of htx before so I thought I would try it out. I followed the steps above but I'm getting an error message relating to h2 lucee.commons.lang.ClassException: cannot load class through its string name, because no definition for the class with the specified name [org.h2.Driver] could be found caused by (java.lang.ClassNotFoundException:org.h2.Driver;java.lang.ClassNotFoundException:org.h2.Driver not found by lucee.core [138];) Is this an issue with my installation of coldbox?
Mar 31, 2022

Peter Amiri
Ed that error basically means the H2 driver wasn't installed properly. I tried to take steps to make sure it gets installed automatically but sometimes it just doesn't like to play ball. The easiest way to solve this is to log into the Lucee administrator and go to the Extension section and click on Applications. Then select the H2 driver and install it. After you install it, restart Lucee. That should get it to work for you. I'll also look to see how I can make this install a little more robust.
Mar 31, 2022

Peter Amiri
Ed, I suspect the reason for this was because the Lucee server didn't get an admin password set on startup. That tends to stop the extension installation. I tend to forget about this step cause I have a file at ~/.box.env that sets a default admin password for all the Lucee servers I start up in CommandBox. I've added a default password of `cfwheels` that will get injected into the Lucee server on startup which will allow the H2 driver to be installed. I also tested this in a clean room MacOS VM and it worked. So give it another try by deleting the folder it created and issue the three commands again. Let me know how it goes. -Peter
Mar 31, 2022

Peter Amiri
Sorry you're having so much trouble but I really want to work through this to make the installation process more robust. So the first issue is the space in directory names. That would be in the CFWHeels CLI. Let me take a look at that quickly.
Mar 31, 2022
Ed
No need to apologise, I have time and it will help the community for this to be working. I know from experience that having a second pair of eyes and someone to beta test can help a lot :-)
Mar 31, 2022

Peter Amiri
Okay Ed, I just published a new version of the CLI. Can you issue a `box install cfwheels-cli` to see if it installs the v0.7.2 version. This should handle the spaces in directory paths better. Let me run this whole thing in a Windows PC to see how it behaves. I've been too Mac oriented lately. -Peter
Mar 31, 2022
Ed
Hi Peter, I tried the CLI update but when I tried the todo install I got the same error as before. I'm wondering if my update to v0.7.2 worked correctly, is there a way to check the version? -= Ed
Mar 31, 2022
Ed
When I ran commandbox as administrator it all worked perfectly :-) I probably should have thought of that myself but I've had one of those days. I did see one error but it doesn't look like it caused any problems. Mentioning here more for your reference: <code>Running the post install script... The script [postInstallAll] does not exist in this package.</code> The To Do app is now running nicely and I can add and remove entries from the list. It's a nice little demo app and I look forward to playing around with htx, it could solve a bunch of problems for me where I need ajax functions but can't (or don't have time to) build it with a framework. Let me also take this opportunity to say thanks for stepping up to the plate and taking over leadership of the project :-D
Mar 31, 2022
Please login to join the conversation! Login