Comments (7)
I have a feeling it's something to do with the location of aws.jar. When I move it from /lib/aws.jar
(mapping) to /WEB-INF/lib/aws.jar
the exception doesn't occur.
from cfml-compiler.
Ok - good to know, will have to look into it further.
How are you using the aws.jar is it just createObject()
or what?
from cfml-compiler.
When you say /lib/aws.jar
is a mapping, do you mean that you have it defined in Application.cfc
via this.javaSettings
?
from cfml-compiler.
Yes using createObject. The exception points to this line.
https://github.com/mso-net/lucee-aws/blob/master/aws.cfc#L50
And also yes the mapping is created as below.
this.javasettings = {
loadPaths = [
"/lib/"
]
};
Hope this helps.
from cfml-compiler.
Thanks - I wonder if it is due to the relative path "/lib/" in your load paths. I'm curious if you change that line to: loadPaths = [ getDirectoryFromPath( getCurrentTemplatePath() ) & "lib/" ]
if it then works.
from cfml-compiler.
If you compare the compiled code with and without the jar on the classpath, is Lucee generating different bytecode in the absence of the jar at compile time? Maybe compare the exact size of the file or decompile both files to compare the code.
from cfml-compiler.
It was indeed the relative /lib/
load path. Using the explicit path resolved my problem. Thanks for a great tool!
from cfml-compiler.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfml-compiler.