Instantiating third party Java libraries
In order to use third party java libraries, Lucee must be able to find them. Like any Java application, Lucee will load any java libraries on the classpath, but Lucee also supports dynamically loading libraries at runtime.
I have not tried using it, but it may work for you without having to add things into the WEB-INF folder.
Did you have to do a full server reboot, or just a Lucee restart?
I’m having the same trouble loading FTP4j-1.7.2.jar. I’ve put it in the /lucee/lib file and tried every combination I can think of in boath javasettings loadpath’s and createObject calls. Total fubar.
Voila! A simple dump(ftpClient); after that gave me access to all the PEM’s.
I did NOT need to load the java classpaths in Application.cfc either, which was good because this is only used by less than one percent of the application and only by certain people, so I didn’t need to add to the memory usage for the rest of the community.
Thanks to this forum I was able to piece together the solution. Gracias!
Yes – built in does not support TLS and I have a couple customers still using that technology, so I reached back to this 2012 JAR file for the solution. Haven’t finished development yet so not totally sure it will solve the problem, but the docs and stackoverflow responses all say it will.
It turns out that if you have access to the Lucee admin, it’s very simple to just use the SSL Cert option from the menu, enter the client url and click install. Quite simple.
This class I’m using, though, wants file names created from java.io.file, but I don’t have access to a java.io class and cannot find where to download one. If it’s in Lucee, it’s not apparent to me.
Oh, I take that back. createObject(“java”,“java.io.File”) works just fine. First time I tried that I left off the “File” at the end and screwed myself up.