Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSaff1f2a7b564e360a16b1e813510c41a56-7fff.html
Copy link to clipboard
Copied
The docs here seem wrong. If I don't specify a service mapping, I get this error:
No mapping found for path C:/ColdFusion10/cfusion/wwwroot/shared/CF/rest/encoding/api .
If mapping is not specified, path should point to application root directory.
The error occurred in C:/ColdFusion10/cfusion/wwwroot/shared/CF/rest/encoding/Application.cfc: line 10
8 :
9 : public void function onApplicationStart()
12 :
So it seems the serviceMapping is not "Optional. Alternate string to be used for application name while calling the REST service.", it's more some sort of path reference to where the CFCs are.
Also it doesn't say anything to the effect that if I don't specify the serviceMapping, then my dirPath needs to point to my application root.