Trying to convert from ColdFusion to Lucee but new to cfml

Pulled an app that was built for ColdFusion and having issues pulling
information from a file within a config folder localhost.cfl

Error (java.io.IOException)

can’t create directory

The Error Occurred in
C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 261

259:
260: <cfif ! DirectoryExists(application.folders[key])>
261:
262:
263:

called from C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 48

46:
47:
48: <cfset initializeFolders() />
49:

Is there something that is not being called correctly or needs to change so
that I can pull data from the files to set my localhost testing environment?

Your code looks fine from what little I see of it. Most of the time, issues like this have to do with permissions - which is language agnostic. :wink: Does your tomcat user have the correct permissions to create the directory where you’re trying to create it? You can configure what user the Tomcat service is running as in the Tomcat service control.

Hope this helps!

Kind regards,
Jordan Michaels----- Original Message -----
From: “Tommy Byrne” <@Tommy_Byrne>
To: “Lucee” lucee@googlegroups.com
Sent: Wednesday, September 2, 2015 11:02:17 AM
Subject: [Lucee] Trying to convert from ColdFusion to Lucee but new to cfml

Pulled an app that was built for ColdFusion and having issues pulling
information from a file within a config folder localhost.cfl

Error (java.io.IOException)

can’t create directory

The Error Occurred in
C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 261

259:
260: <cfif ! DirectoryExists(application.folders[key])>
261:
262:
263:

called from C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 48

46:
47:
48: <cfset initializeFolders() />
49:

Is there something that is not being called correctly or needs to change so
that I can pull data from the files to set my localhost testing environment?


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/04963628-4063-4c27-b64a-55baf98fd637%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You could turn UARC off and I bet this will just work.

Or you could change the permission for the service to a dedicated user with
full permissions for the pathOn Wednesday, September 2, 2015 at 2:02:18 PM UTC-4, Tommy Byrne wrote:

Pulled an app that was built for ColdFusion and having issues pulling
information from a file within a config folder localhost

Error (java.io.IOException)

can’t create directory

The Error Occurred in
C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 261

259:
260: <cfif ! DirectoryExists(application.folders[key])>
261:
262:
263:

called from C:\lucee\tomcat\webapps\ROOT####\Application.cfc: line 48

46:
47:
48: <cfset initializeFolders() />
49:

Is there something that is not being called correctly or needs to change
so that I can pull data from the files to set my localhost testing
environment?