![]() You may want to consider some of what I said, for the value it may have in mirroring some aspects of CFBuilder configuration, since you are talking about browsing from within that. I also refer there to mappings in CF Studio, which was the precursor to CFBuilder. It was from the CF6 era, before application-level mappings were added (in CF7, I think). In it, I talk about the difference between various mappings (like CF admin and web server ones and still others). Macromedia - Finding Your Way with a Mapping I wrote it for the then Adobe Dev Center, which is gone, but I found the article on : You may want to implement Apache, even though it may seem a complication-at least if you want to have things more in sync with the other instance you're trying to model.īack to the earlier discussion, I will say also that you may find value in a 2001 article I wrote (yes, hard to believe something from 2001 could still be relevant). But you are not using Apache on this machine, right? Just note that some of what you do and want to do will act quite differently because of that difference alone. But you may not need to bother with that, since this is your own machine and likely the only app you need to worry about on it.Īgain, the key here is understanding the difference in what you can see in browsing to that il_shared folder vs whether and how CF can CFINCLUDE it.įinally, I'll note that you refer to how you're trying to "adapt" the setup from another environment which was running CF and Apache. ![]() The fastest solution would be to go into the CF Admin, to its Mappings page, and point il_shared to /Applications/ColdFusionBuilder2018/ColdFusion/cfusion/in your application.cfc. (I don't know if CF can't or won't read a symlink.) Such a mapping tells CF (not the web server) where to map that sort of name (il_shared) when it is NOT a real folder. They do NOT affect CF doing a CFINCLUDE of it.įor CF to CFINCLUDE that folder, it either needs to be a real folder there or needs a CF Admin (or application) "mapping". Lots to digest there, and to recommend.įirst, now that we can see more clearly the include failure, your problem there is not with CF's built-in (Tomcat) web server and those context.xml changes you made. The error occurred in /Applications/ColdFusionBuilder2018/ColdFusion/cfusion/cfm file in the folder I mentioned and, after commenting Application.cfc, It runs as expected. The cfbuilder server is started and running on port 8600 and the url I launch is: and as I said earlier I can navigate to The error I get is:Ĭould not find the included template /il_shared/global_application.cfm. The site I'm trying to launch is located in wwwroot/sites/site1 and the mapped folder is located in wwwroot/sharedcode/il_shared. Sym link "il_shared" path is /Applications/ColdFusionBuilder2018/ColdFusion/cfusion/After that I was able to navigate to the mapped folderĤ) Yes I'm referring to the CF+tomcat bundle in cfbuilder to run my application and I'm able to navigate to the mapped folder (after enabling allowlinking). There we have apache and cf11 and some folders are mapped with sym links. There are many variables, and this one may be challenging to resolve easily by text this way.ġ) The code is located under cfusion/wwwroot (/Applications/ColdFusionBuilder2018/ColdFusion/cfusion)Ģ) I'm trying to adapt the server enviroment (cf11/Suse) where the code is currently developed. Let's see if any of these get you down the road. And it may be that within CFB, it's pointing to the latter, while you may be putting code in the former. Could it be that you have CF installed both on your own (in an opt/coldfusion directory) AS WELL AS installed also within the CFBuilder folder? That's an available option.Are you referring then to running the code from within CFBuilder? Are you able to see the URL being generated? What if you visit the URL (that you think should be "right") from a browser, rather than from within CFBuillder? Does that work? When you refer to "server document root" and "coldfusion+tomcat version", these are things in CF Builder.Why did you modify the context.xml? You say it was to enable "linking", but what led you to think you needed to do that?.Why did you create a symlink? What is the actual path and the link path?.You say the code is in the Do you mean the one in the coldfusion cfusion/wwwroot? Do you realize that that's for accessing it via the built-in web server in CF (port 8500, by default)? Is that what you are USING? Or might you be using Apache?.Your question and issue raise still more questions, in response:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |