I’m having a difficult time getting Lucee to pick up my jar file. In which
folder is it supposed to be?
cannot load class through its string name, because no definition for the
class with the specified name [password.test.PasswordConverter.class] could
be found caused by
(java.lang.ClassNotFoundException:password.test.PasswordConverter.class not
found by lucee.core
[64];java.lang.ClassNotFoundException:password.test.PasswordConverter.class;)
Here is my CF code:
<cfset testCF = createObject(“java”, “password.test.PasswordConverter”) />
does it work? #testCF.test()#
Am I supposed to use a regular jar or an executable jar? Neither one work
btw. Or am I supposed to use an OSGI bundle? What do I do if I am
referencing other java libraries inside of my custom jar file? Do I place
them inside my custom jar file or include them separately?
Am I supposed to create a mapping inside of Application.cfc for this to
work, or is it unnecessary? In which file can I find the settings which
declares the file path for Lucee to pick up these jar files?
-GOn Wed, Mar 1, 2017 at 9:54 AM, <@ryanjpgandy> wrote:
I’m having a difficult time getting Lucee to pick up my jar file. In which
folder is it supposed to be?
cannot load class through its string name, because no definition for the
class with the specified name [password.test.PasswordConverter.class]
could be found caused by (java.lang.ClassNotFoundException:password.test.PasswordConverter.class
not found by lucee.core [64];java.lang.ClassNotFoundException:
password.test.PasswordConverter.class;)
Here is my CF code:
<cfset testCF = createObject(“java”, “password.test.PasswordConverter”) />
does it work? #testCF.test()#
Am I supposed to use a regular jar or an executable jar? Neither one work
btw. Or am I supposed to use an OSGI bundle? What do I do if I am
referencing other java libraries inside of my custom jar file? Do I place
them inside my custom jar file or include them separately?
Am I supposed to create a mapping inside of Application.cfc for this to
work, or is it unnecessary? In which file can I find the settings which
declares the file path for Lucee to pick up these jar files?
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!