Giter VIP home page Giter VIP logo

default's Issues

[Coldbox 5.0.0] Lucee 5.2.7+63 MacOS Sierra 10.12.6

Default JavaSettings in Application.cfc raises an error when loading the IBM icu4j-61.1.jar component installed in the /lib directory:

// Default Application.cfc

.......

// Java Integration
this.javaSettings = {
loadPaths = [ ".\lib" ],
loadColdFusionClassPath = true,
reloadOnChange= false
};

// Custom loaded classes on ApplicationStart()

public boolean function onApplicationStart(){

application.cbBootstrap = new coldbox.system.Bootstrap( COLDBOX_CONFIG_FILE, COLDBOX_APP_ROOT_PATH, COLDBOX_APP_KEY, COLDBOX_APP_MAPPING );
application.cbBootstrap.loadColdbox();

// Instantiate IBM icu4j-61.1 i18n libraries (http://apps.icu-project.org/apiref/icu4j/)

var Application.Ulocale = createObject("java", "com.ibm.icu.util.ULocale" );
var Application.icu4jTZ = createObject("java", "com.ibm.icu.util.TimeZone");
var Application.Ucalendar = createObject("java", "com.ibm.icu.util.Calendar");
var Application.icu4jDateFormat = createObject("java", "com.ibm.icu.text.DateFormat");
var Application.icu4jDateFormatSymbols = createObject("java", "com.ibm.icu.text.DateFormatSymbols");
var Application.msgFormat = createObject("java", "com.ibm.icu.text.MessageFormat");
var Application.icu4jCollator = createObject("java", "com.ibm.icu.text.Collator");

return true;
}

However, when I update to a forward slash from loadPaths = [ ".\lib"] to loadPaths = [ "./lib"] in the javaSettings, the jar file is properly picked up and the classes are loaded without error.

NB: in [ColdBox 4.3.0] on adobe engine 2016.0.06+308055, the same default Application.cfc file was working fine and I did not have to modify the javaSettings.

luceeerrorreport

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.