java.io.FileNotFoundException & Access is Denied

I've got a brand new installation of Railo 3.3 and ColdBox 3.1.

When I try to use the Application generator, I get a
java.io.FileNotFoundException error. The error occurs
incoldbox.dashboard.model.generator.generatorservice_cfc$cf.udfCall(X:
\railo\webroot\coldbox\dashboard\model\generator\GeneratorService.cfc:
57)

I'm trying to generate a "Simple" application, and I'm logged in as a
Windows XP Administrator.

I'm new to ColdBox, so thanks for any suggestions.

    Clarke

Clarke, can you copy paste and application template and see if you get any errors?

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

In file Windows XP explorer, I copied /coldbox/ApplicationTemplates, pasted it into another directory, and renamed the folder. Then I copied and pasted it back into /coldbox with no errors.

I am running as an Admin.

It does actually write out a bunch of files & directories for me. Config, handlers, includes, layouts, etc. This seems right, but since I am new to coldbox, having an error made me wonder if it really finished.

Thanks!

Clarke

Yea, I think the issue might be permission related and the Dashboard. I would suggest maybe using the ColdBox Platform Utilities with CFBuilder (They even have an express free edition). Our platform utilities has an incredible amount of tools for kickstarting your ColdBox projects, generation, testing, documentation, API, etc.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Sorry to have so many problems …

I installed CFBuilder with the ColdBox Platform Utilities as you suggested.

Then, after I right-click to go create a ColdBox Simple project, I get another error in Railo:

Does it matter that I’m using Railo 3.3?

Railo 3.3.1.000 Error (expression)

Message

key [APPLICATIONTYPE] doesn’t exist in struct (keys:)

Stacktrace

The Error Occurred in
image001.pngX:\railo\webroot\ColdBox Platform Utilities\handlers\AppSkeletonGenerate.cfm: line 25

23:
24: <!— get the zip file under the skeleton location directory. I ignore any but the first one —>
25:
26:
27: <!— Unzip it —>

called fromX:\railo\webroot\ColdBox Platform Utilities\Application.cfc: line 45

43:
44: <!— Include page requested —>
45:
46:
47:

Java Stacktrace

key [APPLICATIONTYPE] doesn’t exist in struct (keys:)
at railo.runtime.type.util.StructSupport.invalidKey(StructSupport.java:30):30
at railo.runtime.type.StructImpl.get(StructImpl.java:78):78
at railo.runtime.util.VariableUtilImpl.get(VariableUtilImpl.java:244):244
at railo.runtime.PageContextImpl.get(PageContextImpl.java:1295):1295
at coldbox_platform_utilities800.handlers.appskeletongenerate_cfm$cf.call(X:\railo\webroot\ColdBox Platform Utilities\handlers\AppSkeletonGenerate.cfm:25):25
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:762):762
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:715):715
at coldbox_platform_utilities800.application_cfc$cf.udfCall(X:\railo\webroot\ColdBox Platform Utilities\Application.cfc:45):45
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:347):347
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:174):174
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:23):23
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1991):1991
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1958):1958
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:297):297
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820):820
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534):534
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475):475
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119):119
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516):516
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226):226
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929):929
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403):403
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184):184
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864):864
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117):117
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247):247
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151):151
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114):114
at org.eclipse.jetty.server.Server.handle(Server.java:352):352
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596):596
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068):1068
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805):805
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218):218
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426):426
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508):508
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34):34
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40):40
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451):451
at java.lang.Thread.run(Unknown Source):-1

Sorry to have so many problems …

I installed CFBuilder with the ColdBox Platform Utilities as you suggested.

Then, after I right-click to go create a ColdBox Simple project, I get another error in Railo:

Does it matter that I’m using Railo 3.3?

I can’t fully follow how the extension code is supposed to run.

However, the error is being caused due to the fact that inputStruct is empty.

AppSkeleton.cfm displays the form with the drop-down to select application type.

But, when you submit the form to AppSkeletonGenerate.cfm, the data is not populated into inputStruct, and the error occurs.

Any suggestions where to look from here?

Clarke

Clarke,

The issue is that the CFBuilder is executing the ColdBox Platform Utilities code via Railo and not Adobe CF. The ColdBox Platform Utilities as far as I know, have not been fully tested with Railo, so we would have to see why it does not work with Railo. Your input here is great as you have it setup correctly.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano