0 Replies Latest reply on Mar 25, 2007 11:26 PM by VegasIT

    Admin Mappings: Custom Tags and Files not found

    VegasIT Level 1
      I'm installing a legacy application on a new server and the old server is not available. The application worked on the old server so I think that these errors are due to admin mappings, virtual folders or other environment settings.

      Windows Server 2003
      IIS 6.0
      CF MX 7 (no prior CF server’s have been installed)
      MySQL 5.0

      ------------------------------------------------------------------------------------------ ------------------

      Existing environment documentation

      (from E:\web\ourlumber\cmspower\documents\cmspower_mappings.htm)

      Configuration 6: cmspower physically installed in site root, but site root is on another drive other than the web root.


      In this configuration, we have the web root in c:\inetpub\wwwroot, but the site root is on another drive. In our example, its

      at d:\cmstron and cmspower is physically installed there. In this configuration, you would have to create a ColdFusion

      mapping for the site root. In this case the cmstron folder and it would point to d:\cmstron. You would also need to make

      sure that a ColdFusion mapping existed for just “/” and that it pointed to your web root, in this case c:\inetput\wwwroot.

      In this configuration, the configuration settings will look like the following:

      In application.cfm:
      request.site_path = “/”
      request.cmspower_path = “/cmstron/”

      In ColdFusion administrator:
      Logical path = “/”
      Directory path = “c:\inetpub\wwwroot”

      Logical path = “/cmstron/”
      Directory path = “d:\cmstron”

      ------------------------------------------------------------------------------------------ ------------------

      from http://localhost/CFIDE/administrator/index.cfm?target=/CFIDE/administrator/settings/server _settings.cfm?

      Active ColdFusion Mappings
      Actions Logical Path Directory Path
      / C:\Inetpub\wwwroot
      /CFIDE C:\Inetpub\wwwroot\CFIDE
      /cmspower e:\web\ourlumber\cmspower\customtags
      /gateway C:\CFusionMX7\gateway\cfc
      /ourlumber e:\web\ourlumber
      /loadingforus e:\web\loadingforus

      ------------------------------------------------------------------------------------------ ------------------

      from E:\web\ourlumber\Application.cfm


      <cfset request.site_path = "/">
      <cfset request.cmspower_path = "/ourlumber/">

      <!--- The site_path variable should reflect the Web site path relative to the Web Site's root --->
      <!--- IE. site is at the root (where IP is assigned) <cfset request.site_path = "/" > --->
      <!--- IE. site is one level down <cfset request.site_path = "/site1/"> --->
      <!--- The cmspower_path variable should reflect the Web site path relative to the Web Server's root --->
      <!--- If the cmspower folder is not physically below the web site, you will need to create a Cold Fusion Mapping --->
      <!--- The request.cmspower_path variable is concatenated with 'cmspower/' and the result is used as a cold fusion mapping

      --->
      <!--- IE. <cfset request.cmspower_path = "/site1/"> and the mapping would be '/site1/cmspower/'--->

      ------------------------------------------------------------------------------------------ ------------------

      from E:\web\loadingforus\Application.cfm

      <cfsetting enablecfoutputonly="Yes">

      <cfset request.site_path = "/">
      <cfset request.cmspower_path = "/loadingforus/">

      <!--- The site_path variable should reflect the Web site path relative to the Web Site's root --->
      <!--- IE. site is at the root (where IP is assigned) <cfset request.site_path = "/" > --->
      <!--- IE. site is one level down <cfset request.site_path = "/site1/"> --->
      <!--- The cmspower_path variable should reflect the Web site path relative to the Web Server's root --->
      <!--- If the cmspower folder is not physically below the web site, you will need to create a Cold Fusion Mapping --->
      <!--- The request.cmspower_path variable is concatenated with 'cmspower/' and the result is used as a cold fusion mapping

      --->
      <!--- IE. <cfset request.cmspower_path = "/site1/"> and the mapping would be '/site1/cmspower/'--->

      ------------------------------------------------------------------------------------------ ------------------

      Location of application folders

      C:\Inetpub\wwwroot\eMPowerSample
      E:\web\ourlumber
      E:\web\loadingforus

      Virtual Folders
      ourlumber
      loadingforus

      ------------------------------------------------------------------------------------------ ------------------

      This error is resolved and the file is found by adding the existing admin mappings displayed above- Cannot find CFML template for custom tag eCmSingleDoc

      Error Occurred While Processing Request
      Cannot find CFML template for custom tag eCmSingleDoc.
      ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name.

      The error occurred in E:\web\ourlumber\profile_history.cfm: line 22

      20 : <td align="left" valign="top" width="371">
      21 : <!--- Content title: BG & History Copy, Date inserted:

      May-04-2001--->
      22 : <CF_eCmSingleDoc DocId="5" AdminPath="/empower/"

      Mode="#IIf(IsDefined("url.mode"), "url.mode", De(""))#"></td>
      23 : <td align="right" valign="top"><!--- Content title: BG & History Image, Date

      inserted: Mar-06-2002--->
      24

      ------------------------------------------------------------------------------------------ ------------------

      Open - environment settings

      There are some more file not found errors and broken links. So, there must be some missing environment settings still, like the mappings. I will list them below.

      Detail records don't show

      1. http://localhost/loadingforus/shell.cfm?con=measures.cfm&sec=MEASURES
      2. http://localhost/loadingforus/shell.cfm?con=technology.cfm&sec=TECH
      3. http://localhost/loadingforus/shell.cfm?con=people.cfm&sec=HR
      4. http://localhost/loadingforus/shell.cfm?con=inthenews.cfm&sec=INTHENEWS
      5. http://localhost/loadingforus/shell.cfm?con=library.cfm&sec=LIBRARY

      Broken links on pages

      ourlumber
      1. http://localhost/ourlumber/index2.cfm Customers and Commitment link
      2. http://localhost/ourlumber/index2.cfm Products and Services link
      3. http://localhost/ourlumber/index2.cfm Find Us link, click Alabama: Pelham Area

      The locations_findUs_Blank.cfm is physically in the following folder E:\web\ourlumber\locations_findUs_Blank.cfm

      -----------------------------------------------------------------------
      error listing follows:

      File not found: /locations_findUs_Blank.cfm


      Resources:
      Check the ColdFusion documentation to verify that you are using the correct syntax.
      Search the Knowledge Base to find a solution to your problem.


      Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)
      Remote Address 127.0.0.1
      Referrer http://localhost/ourlumber/locations_findUs.cfm
      Date/Time 25-Mar-07 10:49 PM

      Stack Trace (click to expand)

      coldfusion.runtime.TemplateNotFoundException: File not found: /locations_findUs_Blank.cfm
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
      at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
      at coldfusion.CfmServlet.service(CfmServlet.java:107)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
      -----------------------------------------------------------------------

      …more broken links
      4. http://localhost/ourlumber/index2.cfm Job Rescue link
      5. http://localhost/ourlumber/index2.cfm College Recruiting link

      loadingforus
      1. http://localhost/loadingforus/shell.cfm?con=eStore/viewCategory.cfm&sec=STORE&cat=Promotio nal
      2. http://localhost/loadingforus/shell.cfm?con=eStore/eStoreMain.cfm&sec=STORE