I downloaded CommandBox v1.0.0 for Windows from http://www.ortussolutions.com/products/commandbox. I tried it first with No JRE since I assumed it would just use my JAVA_HOME ran into the same issue when using the download that includes the JRE as well.
I tried to run the server start command from my coldbox application directory. CommandBox opened up my app at http://127.0.0.1:2085 but I get the following error.
Railo 4.2.1.000 Error (expression)
Message invalid component definition, can’t find component [coldbox.system.Coldbox]
Stacktrace The Error Occurred in
/Application.cfc: line 31
29: // application start
30: public boolean function onApplicationStart(){
31: application.cbBootstrap = new coldbox.system.Coldbox( COLDBOX_CONFIG_FILE, COLDBOX_APP_ROOT_PATH, COLDBOX_APP_KEY, COLDBOX_APP_MAPPING );
32: application.cbBootstrap.loadColdbox();
33: return true;
Java Stacktrace invalid component definition, can’t find component [coldbox.system.Coldbox]
at railo.runtime.component.ComponentLoader.load(ComponentLoader.java:296):296
at railo.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:41):41
at railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2893):2893
at railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:210):210
at railo.runtime.functions.other._CreateComponent.call(_CreateComponent.java:21):21
at application_cfc$cf.udfCall(/Application.cfc:31):31
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:92):92
at railo.runtime.type.UDFImpl._call(UDFImpl.java:306):306
at railo.runtime.type.UDFImpl.call(UDFImpl.java:207):207
at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1738):1738
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:388):388
at railo.runtime.listener.ModernAppListener.onApplicationStart(ModernAppListener.java:266):266
at railo.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:2792):2792
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:101):101
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2218):2218
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2185):2185
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790):790
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85):85
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61):61
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36):36
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113):113
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56):56
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45):45
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61):61
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58):58
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70):70
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76):76
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25):25
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25):25
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240):240
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227):227
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73):73
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146):146
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168):168
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727):727
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
at java.lang.Thread.run(Unknown Source):-1
Timestamp 9/19/14 12:52:22 AM MDT
This app was created as a blank AdvancedScript Sample ColdBox app following the steps Brad outlines his video on the aforementioned URL.
I even visited http://127.0.0.1:2085/railo-context/admin/web.cfm and tried setting a mapping to the coldbox folder for my app within this context but that didn’t seem to help.
Is this related to my java version? Running this:
java -version
results in
`
java version “1.7.0_45”
Java™ SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot™ 64-Bit Server VM (build 24.45-b08, mixed mode)
`
Any thoughts on what I might be missing here would be much appreciated.
-tim