Can you specify a missing template handler that lives under another site?

I have configured a dedicated site, separate from my website, for my ColdFusion administrator (CFIDE).  So I have my website here: http://www.public-site.com/ and my ColdFusion admin here: http://www.cfadmin-site.com/ .  They both live on the same server but under different directories.  So now I am configuring my ColdFusion settings and wondering if there is some way to configure the missing template handler and site-wide error handler to use files that live under the public site directory so that I can give my users a consistent look?
I am guessing that this is not possible but thought I would ask.  I may be left with creating the modules under my ColdFusion admin directory and then using <cflocation> to redirect the user back to the public website environment.  Or embedding some javascript to redirect them.  Any other thoughts?

OK, now I think I see where you are coming from about not needing to redirect *lightbulb* and perhaps I can explain to you what I am seeing.  Again, here is my setup:
web root: D:\wwwroot\public-site\
cf web root: D:\wwwroot\cfadmin-site\
Now let's say I have a file in the web root like this: D:\wwwroot\public-site\error.cfm  If I try to enter that in my site-wide error handler in ColdFusion it tells me that the file does not exist.  Makes sense.
So I moved my file to the cf web root like this: D:\wwwroot\cfadmin-site\error.cfm and set my site-wide error handler accordingly.  Now when I force an exception I get an error that my site-wide error handler failed.  In the logs I see this error:
"Error","jrpp-26","11/08/10","14:02:30",,"'' The specific sequence of files included or processed is: D:\wwwroot\public-site\error.cfm'' "
java.security.PrivilegedActionException: coldfusion.runtime.TemplateNotFoundException: File not found: D:\wwwroot\public-site\error.cfm
So now that a template is executing ColdFusion is looking for the site-wide error handler in the web root of the public site.  But the ColdFusion administrator will not let me enter that path in the site-wide error handler setting of the administrator page.
Did you run across this too?  Surely we don't need to have the file in both locations.

Similar Messages

  • Can I create object in console app that lives on another thread?

    I'm trying to get Embedded RavenDb to work in my console app. I've tried halting the application with console.readline() and by placing a breakpoint with no luck. So I was told I must run it in separate thread.
    So I have this object EmbeddableDocumentStore that I want to create in separate thread and keep it alive, is that possible?
    static void Main(string[] args)
    NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);
    EmbeddableDocumentStore store = new EmbeddableDocumentStore();
    store.DataDirectory = "data";
    store.UseEmbeddedHttpServer = true;
    store.Initialize();
    If I take all the above code in Main() and place it in separate method, and launch it in another thread - does that 2nd thread considered not halted if my program stops at Console.Readline()?

    You'd have to provide a way for it to be alive.
    So lets say you have two methods:
    Main(string[] args)
    LiveOnAnotherThread()
    When you execute the LiveOnAnotherThread() on another thread, you'd have to do a while loop for it to be not exited, prolly a boolean flag that is on the class level.
    so it's something like this
    public class Foo
    private bool _closeRunner = false;
    public void Main(string[] args)
    Thread runner = new Thread(() =>
    LiveOnAnotherThread();
    while(!_closeRunner)
    Thread.Sleep(1000); // mimics 1 second pause
    Console.ReadLine();
    The code above is basically the basic gist of it.

  • Missing Template Handler is missing in action.

    After a bit of struggle I found out how to input a missing
    template
    handler into our aged 4.5 Unix ColdFusion server. I was able
    to have it
    server up the custom 404error.htm file developed by our web
    department.
    And this worked, sort of.
    The problem was that this HTML file makes use of Apache
    <!-- include
    virtual...--> directives which, of course, ColdFusion does
    not understand.
    So, I say no problem, I've dealt with this already before and
    expanded
    on some existing code that reads the html file and replaces
    all these
    virtual includes with the contents of the included file using
    <cfile...>
    tags and reFind() functions. This version even uses a Custom
    Tag and
    recursion to handle virtual includes inside of virtually
    included files.
    And this works great!
    http://www.cdpr.ca.gov/errors/404error.cfm.
    But when I then went into the ColdFusion administrator and
    replaced the
    HTML file path
    '/rootDir/subDir/subDir/htdocs/errors/404error.htm'
    with the corresponding CFML path
    '/rootDir/subDir/subDir/htdocs/errors/404error.cfm' it stops
    working.
    ColdFusion starts to display the default ColdFusion 404 not
    found error
    rather then my specified Missing Template Handler.
    What's wrong here? Why can't I server up a CFM file from the
    exact same
    place I can serve up an, albeit incomplete, HTML file?

    User Since V1.5 wrote:
    >
    > I will be very happy if someone points out what I'm
    missing.
    >
    Everything you have describe is true. The main point is that
    sometimes
    people do not want to and that there are reasons not to let
    IIS handle
    ColdFusion missing templates.
    To be as clear as possible, if you have set IIS to check for
    the
    existence of a cfm file and then throw either a default or
    custom HTTP
    404 error page this will overwrite anything that could of or
    would of
    been done with a ColdFusion missing template page.
    Sometimes this is a bad thing. For one example, there are
    techniques
    and development methodologies that build a 'template' or
    'response'
    completely in memory and a cfm file does not actually exist
    in this
    case. This is more advanced then many people work with but it
    is
    possible. In this case your having IIS check for the
    existence of a
    template would defeat the purpose. Another example is that a
    server
    wide missing template handler used by the ColdFusion server
    can be
    passed simple information about the error from ColdFusion,
    this does not
    happen with the IIS methodology.
    So the missing template handler exists for cases where for
    one reason or
    another somebody does not want to have IIS checking for the
    existence of
    a cfm template before handing off the request to the
    ColdFusion server.
    As with many things in life, it is all about choices and what
    works for
    one person may not work for another.
    A common difficulty with the missing template handler is that
    it does
    not necessarily live in the web server root. It has to live
    in the Jrun
    (aka Java) server web root which often is different then the
    web server
    root.
    I.E. A common configuration may be this.
    c:/inetpub/wwwroot <!-- web server root -->
    c:/jrun/servers/cfusion/cfusion-ear/cfusion-war <!-- Java
    server web
    root --->
    The latter is where the ColdFusion server wide missing
    template hander
    template file would have to live in this example
    configuration.

  • Problems with missing template handler

    Hello,
    We have put the name testmiss.cfm in the missing template
    handler in the administrator. Still, the default ColdFusion error
    message shows when a cfinclude has template=a nonexisting file and
    when in an html form,
    action=a nonexisting cfm file. I have testmiss.cfm in both
    the root with Application.cfm and the directory with all the other
    cfms but still no luck.
    Any idea what we are doing wrong?
    Thank you very much.

    bill0 wrote:
    > Thanks for all the help but still no luck.
    >
    > The directory is d:\wSites\GBMain\html\CFMS> and I am
    mapped to it as x:\CFMS.
    > Most of the cfm files are in CFMS but Application.cfm is
    1 directory up in
    > html. I have tried misscfm.cfm in both html and CFMS but
    had no luck having it
    > find a non existant template referred to in a cfinclude
    or a form's action
    > attribute. The default ColdFusion error handler is what
    shows. The missing
    > template handler box says /misscfm.cfm. Misscfm.cfm is
    text followed by a
    > <cfabort>. We use ColdFusion MX6.1
    >
    > I hope that is enough information to figure what am I
    missing and/or doing
    > wrong.
    >
    >
    Is the 'misscfm.cfm' file somewhere in the
    'd:\wSites\GBMain\html\CFMS\'
    directory. I will presume this is the 'web root' as defined
    in your web
    server (IIS or Apache or built-in or ???). The missing
    template handler
    file needs to be in the ColdFusion root. This is going to be
    a
    directory such as
    '{drive}:\JRun4\servers\{server}\cfusion-ear\cfusion-war\misscfm.cfm'
    for J2EE flavors OR '{drive}:\CFusionMX\wwwroot' for Standard
    I think.
    It has been a very long time since I have dealt with
    Standard.
    This is probably completely different from the above web
    root. That is
    the point I am trying to get across. ColdFusion has TWO roots
    where it
    will look for a CFML file. But the Missing and Sitewide
    templates can
    only be in the ColdFusion root listed above, they will not
    work in the
    web root.
    HTH
    Ian

  • Missing Template Handler Issues

    Hi there, we're having some problems setting this up. We get
    the custom page we've created but still see the default coldfusion
    information..... Here's what we've done..
    (1) Set the path correctly in the Coldfusion Admin &gt;
    Settings. 'Missing Template Handler'.
    (2) Made the changes in IIS as described here...
    http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fb&amp;sliceId=1

    You are using CF8 right? Because it works just fine for me.
    Here is what I did to test.
    1) created a simple cfm template with nothing more than
    &lt;cfoutput&gt;helloworld&lt;/cfoutput&gt; and
    saved it as missing.cfm in my webroot (
    http://localhost/missing.cfm
    2) logged into the coldfusion administrator and added
    /missing.cfm into the box where it asks for the missing template
    relative path.
    3) hit submit changes.
    then browsed out to
    http://localhost/SomeStrangePageThatDoesntExist.cfm
    and as expected saw only &quot;missing&quot;
    The only thing I can think of is that you have in your
    missing template page another cfinclude that is failing.
    Try the above approach and see if you continue to get the
    error.

  • Can you specify third party JMS Provider in Weblogic appserver configuration

              Can you specify third party JMS Provider in Weblogic appserver configuration ???
              Only place i know of is that you can specify third party JMS Provider in MDB configuraion.
              DOES Weblogic has some kind of configuration files where you specify JMS Provider
              info (Like you can do that in JBOSS)
              

    You can also specify a third-party JMS provider using the Messaging Bridge,
              which transfers messages from one queue or topic to another.
              And in general, inside WLS you can use any JMS provider you wish anywhere
              that you can also use WLS JMS. In an upcoming release, there will also be
              some support to make foreign JMS providers a little easier to configure.
              But why would you want to use another JMS provider anyway? ;-)
              greg
              "Neeru Munjal" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Can you specify third party JMS Provider in Weblogic appserver
              configuration ???
              >
              > Only place i know of is that you can specify third party JMS Provider in
              MDB configuraion.
              > DOES Weblogic has some kind of configuration files where you specify JMS
              Provider
              > info (Like you can do that in JBOSS)
              

  • Can I activate a missing phone so that I can find it?

    Can I activate a missing phone so that I can find it?

    No. If it isn't online, there is nothing you can do. You must have already activated Find My iPhone (iPad) on the device and it must have an active WiFi or cellular Internet connection to locate it.
    In any case, at a minimum, you should follow Apple's advice for when you lose an iDevice: http://support.apple.com/kb/ht5668

  • Can you please CLEAN up the podcasts that are no longer in service or being maintained? It's very tedious to click on someone's podcast to find that it hasn't been updated in 3 years.

    Can you please CLEAN up the podcasts that are no longer in service or being maintained? It's very tedious to click on someone's podcast to find that it hasn't been updated in 3 years.

    This is a user forum and it is best to post these inquiries to Apple Feedback: 
    http://www.apple.com/feedback/
    You are right, a lot of older dead podcasts do not belong in the podcasts section. But there is still a lot of these podcasts that have good information and deserve to still be listed. For example there is quite a few photography lesson based podcasts in which you can get good information from different sources.

  • Can you build a battery for iphone that will last till the end of the day?

    Can you build a battery for iphone that will last till the end of the day?

    No, I can't. I've never taken any classes in either electrical or chemical engineering.
    While you're looking for someone who can, you may want to try searching the forums for the many other threads that give tips on extending your battery life (things like turning off Background Refresh). You may also want to look at battery cases such as those made by Mophie.
    Best of luck.

  • Can you make a app for texting that dont need wifi for iPod touch

    Can you make a app for texting that dont need wifi for iPod touch

    I don't think that even possible without any kind of connection

  • Can you set up a template where information can be filled in - like in a textbox and then collected

    can you set up a template where information can be filled in - like in a textbox and then collected
    Like a series of questions - then the student enters the information - and the information os then collected

    QuickTime is AppleScript aware and has its own "dictionary". Many scripts and droplets have already been compiled and you can download them from this link:
    http://www.apple.com/applescript/quicktime/
    Some need further editing to update them to version 7 features but it's not difficult using the Script Editor app.
    Tiger's new Automator app could also be used but its feature set is rather basic. Newer actions are available for download from the Mac OSX Downloads page.

  • I now have two iPads and have opened a new icloud account.  I need to change one of the ipads to the new account.  Can you tell me how to do that?

    I now have two iPads and have opened a new icloud account.  I need to change one of the ipads to the new account.  Can you tell me how to do that?

    Welcome to the Apple Community.
    settings > iCloud, scroll down and delete account. Re-enter the details of the new account.

  • My purchased download of Photoshop Elements did not work and I have been trying to reach a real person at Adobe.  Has anyone ever been able to do that.  If so can you tell me how to do that.

    My purchased download of Photoshop Elements did not work and I have been trying to reach a real person at Adobe.  Has anyone ever been able to do that.  If so can you tell me how to do that.

    Hi vision4success ,
    I would like to gather some information regarding your issue, So, please answer the questions below:
    What is the exact issue that you are facing?
    Do you get any error while installing Photoshop element?
    What is the Operating System that you are using?
    Since when you are facing this problem. Has it ever worked for you?
    What all steps did you try from your end?
    If you have any other details regarding the issue that might help us, please feel free to mention that as well.
    Waiting for you reply.
    Regards,
    Sarika

  • We are evaluating the use of iPod touch devices to record best practice videos on our manufacturing floor and to post to an internal Moodle web site. How can you upload a video from the iPod touch to a site other than YouTube?

    We are evaluating the use of iPod touch devices to record best practice videos on our manufacturing floor and to post to an internal Moodle web site. How can you upload a video from the iPod touch to a site other than YouTube? The Moodle upload interface is expecting a file selection dialog box like windows or OSX. I do not want to have to go through an intermediary step of messing with a pc.
    Thanks!

    It should be around 7 and a half gigs. In iTunes, across the bottom there should be a bar that show how much storage is being used and by what. (music, movies, apps, etc.) To make music take up less room, you can check the box to make it convert the music to 128kbps AAC. This lowers the quality, but with most earbuds and speakers, you can't even tell the difference.
    The iPod touch has parental controls built in. You'll find them in Settings. I think they only work for enabling/disabling Safari, Mail, YouTube, and App Store. Here's an app that does more: http://www.mobicip.com/online_safety/ipod_touch

  • I want to send a present to a friend that lives in another country, How can I do?, I want to send a present to a friend that lives in another country, How can I do?

    I want to send a present, a music CD, to a friend that lives in another country(Brasil).  I've read that the presents are valid only in the Country of purchasing
    How can I do?

    She'll have connect in recovery mode to restore: iOS: Unable to update or restore
    This will give her the option to set up a new password, if done on the same computer you usually sync to.
    iPhone and iPod touch: Wrong passcode results in red disabled screen
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.

Maybe you are looking for

  • How to find out which object on a JPanel was clicked...

    I have a JPanel that contains about 200 other small JPanels(only 8 are visible at any one time), and a JButton(with Visible set to false). When one of the small JPanels is rightclicked i want to know which one was clicked so I can add the JButton to

  • How do i find my iphone if its offline

    help me i lost my i phone and it dead and off line and i dont know what to do

  • Problem in DB13 - standalone gateway installed - error due to env

    Hello, As we have db and ci on separate server and there was no gateway on db server, I installed standalone gateway the rfc connection started working fine. When I try to execute any BR* command through DB13, it gives error. I checked using SM69 the

  • Third-party item in stock transfer order

    We have the following situation: The company A receives a sales order from a external customer. The company A buys the goods to the company B (the company B is an intercompany vendor).The company B has to send the goods to the external customer direc

  • Slowness in moving, sending, typing & receiving emails

    Hi, Been using Thunderbird for over a year having migrated from Eudora. Recently, I have had recurrent and intermittent slowness in typing email content, sending, receiving as well as moving emails to other folders and opening and closing of Thurderb