Hi Alan, This was using the nightly build from 10 Dec 2012 - sorry, I quoted the version number from the website (v2.0.3b) rather than what was in the server admin (2.1).
I've just downloaded the latest nightly build and it's still giving me the same 404 error, looking for /app/cfc/one.cfc instead of /cfc/one.cfc. From the admin console: Open BlueDragon Product Version 2,1 Open BlueDragon Build Date 2012-12-11 11:25:26 GMT Operating System Windows XP x86 (5.1) Application Server jetty/7.5.4.v20111024 Java Virtual Machine Sun Microsystems Inc. 1.6.0_33 (JVM Properties) cheers, Paul On Tuesday, 11 December 2012 18:37:31 UTC+8, Alan Williamson wrote: > > the paths here i recall were changed in 3.0 (nightly build) ... can you > take that one for a run. > > > On 11/12/2012 00:38, Paul Dowling wrote: > > I'm trying to migrate an existing ColdFusion codebase from Adobe CF8 to > OpenBD. My files include something like this: > > /cfc/one.cfc/cfc/two.cfc > /app/page.cfm > > In CF8 I had a mapping from 'cfc' to '/cfc', and in page.cfm I had: > > <cfajaxproxy cfc="cfc.one" > jsclassname="oneCfc"><cfajaxproxy cfc="cfc.two" jsclassname="twoCfc"> > > and then in Javascript I could call the CFC using: > > var c = new oneCfc(); > > ...and life was good. > ------------------------------ > > Under Open BD (v2.0.3b) however, I can't seem to call the CFC functions > from Javascript. The proxy is declared as before, and I can create the > object in Javascript, but when I try to call a function I get the following > error in my browser dev tools: > > POST http://127.0.0.1:8080/app/cfc/one.cfc 404 (Not Found) > > It appears to be using a relative path in Javascript when it tries to call > the function, even though it's already got the object created. > > The CFC is valid according to OpenBD (I can browse to ./cfc/one.cfc?wsdl, > and I can call functions on it using ./cfc/one.cfc?method=getData etc). > It doesn't seem to matter whether I have a mapping defined in OpenBD or not. > > The one workaround that seems to work is having the CFC in the same > function as the calling CFM file, but this isn't a very good solution when > I want to reuse the CFC code from many different pages. > > Can anyone explain how to get this CFC reference to work, please? > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en > > > -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
