coldbox-templates / default Goto Github PK
View Code? Open in Web Editor NEWThe default starter template for a ColdBox application
The default starter template for a ColdBox application
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.