Where do you add a custom jar to the express install?
cannot load class through its string name, because no definition for the class with the specified name [mytestjar] could be found caused by (java.lang.ClassNotFoundException:influxdb-2.5.2 not found by lucee.core [64];java.lang.ClassNotFoundException:influxdb-2.5.2;)
I have tried lucee-install/lib and webapps/WEB-INF/lucee/lib but it is not finding it.
That said, putting it into WEB-INF/lucee/lib should also allow you to find the class, so I suspect you may just have a bad call to get the class. For portability, however, I prefer to load jarâs in Application.cfc vs. putting them in the lib dir.
Just to note that this setting (along with watchInterval) doesnât work in Lucee: once loaded youâre stuck with your classes until you restart the instance. Votes for the following would be welcome.
The OSGi Bundle with name [influxdb-java-2.8] is not available locally (/Volumes/Samsung USB/lucee-express-5.1.0.34/lucee-server/bundles) or from the update provider (http://release.lucee.org).
Unfortunately, Iâm not a java expert so could anyone explain what I should do. If I compile the Jar myself locally will I get the same error? I just donât want to have to go through all that if iâm going to get the same result of it not loading.
I figured out the OSGi error. I omitted the .jar extension when I typed it. Funny how little things can hang you up.
Now I get this error:
lucee.commons.lang.ClassException
cannot load class through its string name, because no definition for the class with the specified name [org.influxdb.InfluxDBFactory] could be found caused by (java.lang.ClassNotFoundException:org.influxdb.InfluxDBFactory not found by lucee.core [64];java.lang.ClassNotFoundException:org.influxdb.InfluxDBFactory;java.lang.UnsupportedClassVersionError:org/influxdb/InfluxDBFactory : Unsupported major.minor version 52.0;)
/Volumes/Samsung USB/lucee-express-5.1.0.34/webapps/ROOT/influxjava/test3.cfm:10
Any suggestions on âUnsupported major.minor version 52.0;â ?
cannot load class through its string name, because no definition for the class with the specified name [org.influxdb.dto.Query] could be found caused by (java.lang.ClassNotFoundException:org.influxdb.dto.Query not found by lucee.core [64];java.lang.UnsupportedClassVersionError:org/influxdb/dto/Query :
Unsupported major.minor version 52.0;java.lang.ClassNotFoundException:org.influxdb.dto.Query;)
How do I get to the methods in InfluxDB class once the factory is called? Iâm missing something and I just cant get my head around it. Isnât the factory suppost to create the instance with access to the classes?
Iâve no prior experience with this database or API and donât have it set up to test, but it looks like when you connect() to your database using the InfluxDBFactory it returns an influxDB object, which you then use to issue queries. So perhaps something like: