I'm setting up a development environment that will allow me to run multiple
CF engines against a single code base. I'm on Windows 7 and I have installed
Tomcat at c:\tomcat. I have deployed CF8, CF9 and OpenBD as .war files into
Tomcat. In order to run a single code base, I have the .cfm files in a
folder outside of Tomcat at d:\wwwroot\ Within the webroot of each CF
engine, I defined a junction to d:\wwwroot with the mklink command (
http://technet.microsoft.com/en-us/library/cc753194(WS.10).aspx), for
example for cf9 c:\mklink /j c:\tomcat\webapps\cf9\wwwroot d:\wwwroot So, I
can place a file at d:\wwwroot\index.cfm and execute them on each engine by
going to http://localhost:8080/cf8/wwwroot/index.cfm
http://localhost:8080/cf9/wwwroot/index.cfm
http://localhost:8080/openbd/wwwroot/index.cfm That works fine. The problem
is when I try to instantiate a cfc at d:\wwwroot\cfcdoc\model\cfcdoc.cfc
For each engine I have created a mapping for "cfcdoc":
cf9 -> C:\tomcat\webapps\cf9\wwwroot\cfcdoc
openbd -> C:\tomcat\webapps\openbd\wwwroot\cfcdoc

If I run the template at d:\wwwroot\index.cfm  that has this code
    <cfset testcfcdoc = createObject('component', 'cfcdoc.model.cfcdoc') />
    <cfdump var=#testcfcdoc# >

It runs without error on cf8, cf9 and openbd. (However on the cfdump, cf8
and cf9 say the component
is "cfcdoc.model.cfcdoc" as expected but openbd says its
"wwwroot.cfcdoc.model.cfcdoc")

If I run a template with the same code at d:\wwwroot\cfcdoc\index.cfm cf8
and cf9 have no error but openbd
errors with

Type ApplicationDetail A request was made to a resource that could not be
locatedMissing File cfcdoc.model.cfcdocTag Context CFSET
(C:/tomcat/webapps/openbd/wwwroot/cfcdoc/test.cfm, Line=28, Column=1)

So, for some reason openbd can't find the component even though there is a
mapping.

Based on the fact that openbd reported "wwwroot.cfcdoc.model.cfcdoc" in the
first test page, if I modify the second test page to be

    <cfset testcfcdoc = createObject('component',
'*wwwroot*.cfcdoc.model.cfcdoc')
/>

it will work. And it will still work on cf8 and cf9.

But there appears to be a bug with openbd. Any ideas?

-Phil

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to