Coder Social home page Coder Social logo

Comments (7)

chapmandu avatar chapmandu commented on May 30, 2024

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.

pfreitag avatar pfreitag commented on May 30, 2024

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.

pfreitag avatar pfreitag commented on May 30, 2024

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.

chapmandu avatar chapmandu commented on May 30, 2024

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.

pfreitag avatar pfreitag commented on May 30, 2024

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.

bdw429s avatar bdw429s commented on May 30, 2024

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.

chapmandu avatar chapmandu commented on May 30, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.