I have a little problem in lucee. Currently I use lucee version 5.2.2.70-RC
I have a simple code:
classLoader = createObject(“java”, “java.lang.Class”);
classLoader.forName(“net.sourceforge.jtds.jdbc.Driver”);
with above code, I always get error:
net.sourceforge.jtds.jdbc.Driver not found by lucee.core [64]
when I check ‘jtds-1.3.1.jar’ the jar is exists in folder ‘lucee/tomcat/lucee-server/bundles/’
any idea for this problem?
In adobe coldfusion the script are ok.
isapir
2
The class is in a bundle, so you have to specify the bundle’s symbolic name as a 3rd arg of createObject(), e.g.
createObject("java", "net.sourceforge.jtds.jdbc.Driver", bundleSymbolicName);
But the jTDS extension should work fine and do everything you need out of the box, so I’m not sure what are you trying to achieve here?