Hi, (warning: long email)
I was messing around with moving the config files out of the web root as a way to secure a MG app that I've got running so that the XML files are not readable. Prior to fiddling around here the app was working perfectly well, so I'm kind of kicking myself a bit. Anyhow, I've got the app sitting in the inetpub/wwwroot/mywebapp folder. MG, Reactor and CS are all in the inetpub/wwwroot folder. I have mappings for MG, CS and Reactor set up in CF administrator. I have moved the config files (ie coldspring.xml and modelglue.xml) to the mapping C:/MyApps/config/myapp/ColdSpring.xml and C:/MyApps/config/myapp/ModelGlue.xml respectively and have updated the ColdSpring.xml mapping in the index.cfm file as follwos: <cfset ModelGlue_LOCAL_COLDSPRING_PATH = "C:/MyApps/config/myapp/ColdSpring.xml"> It seems that MG is picking up the ColdSpring.xml file location but then throws the following error: An error occurred when performing a file operation read on file C:\Inetpub\wwwroot\myapp/config/ModelGlue.xml. The cause of this exception was: java.io.FileNotFoundException: C:\Inetpub\wwwroot\myapp\config\ModelGlue.xml (The system cannot find the path specified). The error occurred in C:\Inetpub\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 37 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 63 Called from C:\Inetpub\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 65 Called from C:\Inetpub\wwwroot\myapp\index.cfm: line 55 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 37 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 63 Called from C:\Inetpub\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 65 Called from C:\Inetpub\wwwroot\myapp\index.cfm: line 55 35 : </cfif> 36 : 37 : <cffile action="read" file="#configurationPath#" variable="cfg" /> 38 : 39 : <cftry> It seems that there is a mapping that needs to be updated in the coldspring.xml file - I have tried changing the configurationPath mapping in coldspring.xml to C:/MyApps/config/myapp/ModelGlue.xml and it resulted in the same error: An error occurred when performing a file operation read on file C:\Inetpub\wwwroot\myapp/C:/MyApps/config/myapp/ModelGlue.xml. The cause of this exception was: java.io.FileNotFoundException: C:\Inetpub\wwwroot\myapp\C:\MyApps\config\myapp\ModelGlue.xml (The filename, directory name, or volume label syntax is incorrect). The error occurred in C:\Inetpub\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 37 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 63 Called from C:\Inetpub\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 65 Called from C:\Inetpub\wwwroot\myapp\index.cfm: line 55 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 37 Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 63 Called from C:\Inetpub\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 65 Called from C:\Inetpub\wwwroot\myapp\index.cfm: line 55 35 : </cfif> 36 : 37 : <cffile action="read" file="#configurationPath#" variable="cfg" /> 38 : 39 : <cftry> Is this a MG version problem? Is it perhaps a problem with the way I've got IIS set up here? In IIS my app is set up as a website domain name (with the home directory pointing to C:\Inetpub\wwwroot\myApp). I did see another issue under the subject line: "Best way to deploy ModelGlue:Unity apps?" with the last email by Teddy Payne saying that he'd look into this issue. Did it ever get resolved? I'm sorry that this was from ages ago but I don't seem to have the concluding emails. Any help would be much appreciated. Best regards, Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
