How to access a CFC outside the web root

I need to access several of the CFCS that are sitting outside the web root, however, I can't seem to find the right way to call the component.  For example... My Flex project is located in a folder under the web root.  My CFC sit in a folder at the same level as the web root.

To illustrate:

The web root is c:\coldfusion8\wwwroot

CFCS are in a folder c:\coldfusion8\com

A CFC that I need to access is named fxCFC and is located at c:\coldfusion8\com\fxCFC.cfc

The Flex project is named fxProject and is located at c:\coldfusion\wwwroot\fxProject

The application is called main.mxml and resides in c:\coldfusion\wwwroot\fxProject\src\main.mxml

I can't call the CFC using "com.fxCFC" as my compiled application cannot see the component.  I guess that since the CFC to sit above the root.  Is there a way I can access?

Thank you!

Man I feel so stupid, I forgot the option in the remoting-config. XML which allows you to turn on the mappings.

It is the solution, your wwwroot CF proceed to web-inf/flex/services-config.xml, search for and modify

false

for this

true

Restart the servers and maps to start working.

I'm so stupid sometimes.

Tags: Flex

Similar Questions

  • Access files outside the web root?

    Hello, everyone.

    Hypothetical scenario.

    I wanted to have a file that would set globally accessible variables to contain passwords, and I want to put this file outside the web root, so that users can not access.

    Logical pathnames of course won't work.  And the cfinclude tag doesn't use physical paths.

    I've never done this before.  What are my options?

    Thank you

    ^_^

    Almost all your CFML files should not be in a directory web-driven!  That those people really are looking for should be accessible web.

    Files must not be accessible to be web - ed or be instantiated as objects, or used as a custom tag.

    FOR EXAMPLE:

    C:\webapps\myapp<= this="" dir="" is="" the="" root="" as="" far="" as="" coldfusion="" is="">

    C:\webapps\myapp\wwwroot<= that="" dir="" is="" the="" webroot="" as="" far="" as="" the="" web="" server="">

    C:\webapps\myapp\includes<= files="" you="">

    C:\webapps\myapp\api<=>

    The only things that should be dir wwwroot files people really browse (index.cfm, etc.) and components such as images, JS and CSS files that must be served to the browser.

    Most of your CFM files must be in a subdirectory of C:\webapps\myapp.

    So index.cfm must be traveled, and it must use the data in secretSecureStuff.cfm which is in understand this respectively.  Then index.cfm is just:

    include "/ myapp/includes/secretSecureStuff.cfm";

    If the file to include is not in the structure of subdirectory myapp for some reason, you can create a mapping in CFAdmin or Application.cfc to point to it, for example:

    /External. => C:\stuff\somewhere\else

    And you référenceriez C:\stuff\somewhere\else\outside.cfm via:

    include "/ external / outside.cfm";

    --

    Adam

  • Setting up a Dreamweaver Site with directories outside the Web root

    I have my web server, the following web site structure:

    \WebSite\ wwwbeta.evansville.edu D:\
    \Extensions\CustomTags\ wwwbeta.evansville.edu D:\
    \Extensions\Components\ wwwbeta.evansville.edu D:\
    \Extensions\Includes\ wwwbeta.evansville.edu D:\

    The web site in the web server root, is mapped to "D:\ wwwbeta.evansville.edu \WebSite\.
    The other three directories of "Extensions" are accessible only by ColdFusion and should stay outside the web root. However, I want to be able to edit these directories in DW, as well.

    In Dreamweaver, I have the local root folder defined on C:\WebSites\ wwwbeta.evansville.edu.
    The HTTP address is on http://wwwbeta.evansville.edu/

    However, these settings just don't jive during the insertion of links. (I don't want to use relative links. We only use absolute links).

    When I insert a link, it will as long as "/ WebSite/Link.cfm. I understand very well why this is happening. However, I am looking for suggestions on how to configure DW, if possible, for me to work with all of these directories, in a unique site of DW definition, generating yet correct absolute links.

    I don't think that this is possible. Please show me the light.

    Thank you!

    > However, these settings just don't jive during the insertion of links. (I don't want to
    > use relative links. We only use absolute links).
    >
    > When I insert a link, it will as long as "/ WebSite/Link.cfm.

    It is a relative path, a relative path root site.

    because you chose a folder which is a folder of level higher than we should
    for the record of Site Local to this site, dw made the wrong way.

    There was not anyway you want.
    Set the Site Local folder to
    \WebSite\ wwwbeta.evansville.edu D:\

    and dw will properly the root of the relative site or document relative paths for
    the main site folder

    You will not be able to touch anything in these other folders with dw, because
    they are out of the structure of the site.

    You can define a new site for each of the other files, and then you could
    have dw make correct paths when working on includes, for example.

    As far as I KNOW, you can't do it with a single site def.

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • I had problems with access to most of the Web sites and I noticed that HTTPS is no longer, how do I make permanent HTTPS so I can access any Web site?

    I had problems with access to most of the Web sites and noticed that HTTPS no longer appears whenever I try to access a Web site. I can easily connect to my gmail and facebook account, but the problem is that when I click on a link on FB and gmail, I get the annoying message "refused to connect.

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site. The date and time on my laptop are both correct. I am currently using OS x 10.9.5.Please!

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site.

    My guess is that you have a damaged or invalid certificate entry OS X KeyChain, but to directly answer this question, I would say that consider you something like HTTPS Everywhere. Note, it is not available for Safari. It is available directly through the Google Chrome browser extensions.

  • How to create a link on the web to use in an e-mail?

    I don't know how to create a link on the web that I can put in the e-mail addresses. Could you help me please? I know it must be very simple, because thousands of others do regularly. Thank you.

    Katy Anderson

    You can use file-> Send link or copy the web address of the address bar and paste it into an email.

    You are using an older version of Firefox (3.0.7) - you need to update as soon as possible

  • How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

    How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

    See if a program was installed for him. Or use something like Skype / instant messaging program

  • How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    dannyb76251437 wrote:

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    Note that you can work with two screens and drag and drop the image to display on the other window.

    I think you mean working temporarily with the window enlarged image without displaying all the tools and panels.

    See:

    Panels and bins in Photoshop Elements

    My advice: take the time to read the above help and especially to look at ways to maximize this window if you are on Mac or Win.

    Set your preferences in the Edit menu to "allow the floating windows in expert mode.

    Use the "tab" on the keyboard key to hide or show your panels and tools quickly.

    Find out how to hide the photo tray.

  • How can I download it from the Web site that was sent to me?

    How can I download it from the web site that was sent to me by Adobe?

    Thank you for mentioning the name of the Adobe application, you are trying to download.

    If its creative Cloud applications, you can check the link below:

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    All other Apps that had bought you using the serial number such as Photoshop Elements or Lightroom 6... etc? You can check the link below:

    Other downloads

  • Dynamically find the web root

    I'm doing one of my truly dynamic applications as long as the reading of the configuration xml file. The configuration file is in my web root (config.cfm), that this file is simply an XML encapsulated in comment tags to prevent anyone to see if they go through it directly. Also, there is another file in the web root called findpath.cfm. Find the path contains ExpandPath("*.*) which I am hoping to use to capture and save a variable with the physical path. The physical path for both of these files is C:\CFusionMX\wwwroot\opiax

    Well, here's my question. Let's say I want to dynamically find the path to these files in the C:\CFusionMX\wwwroot\opiax\_admin directory in my application.cfm

    How can I do this with ColdFusion MX 6.1?

    I thought about it. Move my configuration file to its own folder and determine where I am.



  • How to access messages remotely or via web?

    How can I access e-mail remotely or via web.  All I know is that you can't do through iCloud.  (With the help of Macbook 10.11).  Thank you.

    You can if you use email to iCloud. If you do not, then you will need to access it from the web site of your email provider, for example, Google, Comcast.

  • How to access a movieclip on the class of document of another class?

    Hello!

    Go further on my application, I felt in another problem. Although they have a lot of messages on the web in this respect, none of the solutions worked for me

    In my document class two containers (Main.as) I ve. A void and another with a star that is imported to the library. Here´s the main class:

    package 
    {
         import flash.display.*;
         public class Main extends MovieClip
         {
              public var container1:Sprite;
                    public var container2:Sprite;
              var _star:star;
              public function Main()
              {
                   // First container
                   container1=new Sprite();
                   container1.x = 50;
                   container1.y = 200;
                   stage.addChild(container1);
                      _star=new star();
                   container1.addChild(_star);
    
                            //Second container
                            container2=new Sprite();
                            stage.addChild(container2);
                   
              }
         }
    
    }
    

    Right now I ve a star placed inside a container and the container is placed on the stage. I also created an additional container named container2.

    Now, I want to define a base class for the star. I named it as experience. Here it is:

    package 
    {
         import flash.display.*;
         import flash.events.*;
         public class Experience extends MovieClip
         {
              public function Experience()
              {
                   // constructor code
                   this.addEventListener(MouseEvent.MOUSE_CLICK,Clicked);
              }
                   public function Clicked(evt:MouseEvent):void
                    {
                          trace("Star was clicked");
                          this.parent.alpha=0; //travels back to container1 and sets alpha to zero.
                          //how can I access container2? this.parent.parent.container2 doens´t work!
                    }
    
    
            }
    }
    

    Inside of the "Clicked" function I want to access the container2 placed on the stage.

    I tried:

    this.parent.parent.container2.x=0;
    

    which gives me the error:

    1119: access of container2 property possibly not defined through a reference with static type flash.display:DisplayObjectContainer.

    I ve set the two containers as public. In this way the two is accessible off hand.

    In the meantime, I also tried to step to the constructor of the base class.

    The idea is to have the scene on the base class and so call containers directly from the stage.

    In the constructor of the main class, I add:

    home= this.stage;
    var pencil:Experience = new Experience(home);
    

    Then, in the base class I change the constructor and added something:

                                  .
                                  .
                                  .               
    private var _stage:Stage;
    
              public function Experience(home:Stage)
              {
                   _stage = home;
                                  .
                                  .
                                  .
    

    However, when I put as the class basis of the star movieclip class I get an error. If it works, but I want to put the class as a base class for this doesn´t approach meets my needs

    How can I do this?

    I hope you can help me! I want to use the classes but very delicate they´re!

    Thanks in advance for all,

    Best rgds

    You can use an event listener and the event dispatcher to listen to events to happen, something like this:

    star.addEventListener(MouseEvent.MOUSE_DOWN, callContainer2Function);
    
    function callContainer2Function(event:Event):void{
         trace("calling container2");
         //dispatch string event
         dispatchEvent(new Event("Calling container 2"));
    }
    
    container2.addEventListener("Calling container 2", container2Response, true);
    
    //When the container2 hears the string you dispatched, it will fire this function
    function container2Response(e:Event):void {
         trace("Container2 responding")
         //do your code
    }
    

    Hope that helps,

    ~ chipleh

  • How to access another library to the user of the account root on mac 10.11

    Hello experts, can you help me please know how to access the library of the user of an account when I am logged in as user root 10.11?

    Open the users folder, and then his home folder, choose go to folder from the Finder menu and provide exactly the library as the path. If you wish, you can put the name of the follow-up folder a / at the beginning of the path instead of double-click this folder.

    (139251)

  • How to access a URL in the BB device 10 Apha

    Hi guys,.

    I want to know how to access the URL of the browser in BB 10, I'm not finding the tab URL, where I can type the URL, any info about BB 10 aplha device will be useful.

    Concerning

    Rakesh Shankar.P

    You have to slide the screen from the top down, from the top of the screen to the bottom of the screen and you will see that the url bar appears again. If you want to enable the preference that the url bar is always visible, there is a toggle switch on the toolbar, you can activate in the opposite State, in which it is currently.

  • Hi how to access a Servlet of Local Web hosted on LAN where BES is running.

    Hello

    Please correct me if I am wrong whenever we open a connection from Java application of device by using URL ending by '; devices = false " connections will be done through BES." So is it possible to access that is local to BES systems

    Connector.Open (http://google.com;deviceside=false);  connect on google so if I gave the url as

    Connector.Open (http://198.168.1.xxx:8080 / servletname; deviceside = false); can I connect to the web server

    I hope that this will help explain what I mean. (I know it sounds weird)

    |----------------------------------------------|

    |               LAN                                       |

    |                                                              |

    |   [local web server]   ----> [ BES 5.0 ] ---------------->[BB Device]

    |                                                              |

    |-----------------------------------------------|

    1. Is it possiable "BB device (using Java App on device * NOT the DEVICE BROWSER)" access among the tomcat server ( ) (web that is not exposed to the internet ( ) , which is hosted on one of the systems on LAN running my BES Server? " ....
    2. What will be the url format used on the device [for example: Connector.open (http://192.168.1.xx:8080 / servletname; deviceside = false);] ... This will do the trick?...
    3. I have to make any changes to the parameters of BES?

    Please note all the I are heaps of simulators and BES of the trial which I just downloaded... :-)

    Help, please

    Thanks in advance...

    Zac

    The answer to your question is Yes, it's easy.

    I could go into the long response, but I would like to repeat things already explained in this thread and associated reading "mandatory."  Then please look into it and then ask more information where the idea is not not clear to you.

    http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...

  • How to add code affiliated with the Web site created in Muse

    Can someone guide me... . How do I add the code to the Web site created in adobe affiliate marketing muse.

    Hello

    Place the code in the HTML body (I mean within the page) you can use the object > insert HTML code.

    If you want the code to be in the head section just right click on the page > go to the properties of the page > metadata > and paste the HTML code for the head.

    Kind regards

    Ankush

Maybe you are looking for