Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mapping .CHTML extension to Coldfusion in IIS6 / CF9

New Here ,
Oct 16, 2009 Oct 16, 2009

Hey All -

I won't go into the details of my support experience trying to resolve this with Adobe Tech Support/Customer Service.  Suffice it to say, the Adobe Support/Service is horrific.  It's absolutely mind-boggling to me that a company can provide such horrible support.

Here's my question...

I need to map the .CHTML file extension so that it is processed by Coldfusion.   I'm setting up a brand new server with Windows 2003 R2 Standard (64-bit) and Coldfusion 9 (64-bit).   I do the Coldfusion install with no problems (choosing IIS).    I can get into the Coldfusion Admin and all of my .CFM pages work fine.   I then run the following wsconfig command to add the .CHTML mapping:

2.jpg

"wsconfig -ws iis -site XXXXXXX -map .chml -host 172.16.110.1 - server coldfusion"

Looks good so far, right?   If I go into IIS and under the site look at the mappings, I even see:

3.jpg

Alrighty - so wsconfig is configured and talking to Coldfusion and my .CHTML to jrun_iis6.dll mapping has been automatically created.   Things should work now, right?   Here's what I get when I try to open any .CHTML pages:

4.jpg

"Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request."   Keep in mind, if I rename this page from .CHTML to .CFM the page loads fine, so I know it's not anything else (e.g. datasources or other coldfusion settings).

So now I'm stuck...  I've found some sites that say I need to edit the wwwroot\WEB-INF\web.xml file to add mappings, but that didn't make a difference either (same exact error).  I've also found some sites that say I need to have a JRUNScripts virtual directory in each site (what I've found is that when I install/uninstall Coldfusion (which I've now done more than a dozen times) the virtual directory in question is automatically created about 10% of the time).  However, no matter what I do, I can't get it to work.

Any help is greatly appreciated...

thanks!

2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Oct 16, 2009 Oct 16, 2009

Have you tried this?

http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions

And when you installed CF did your IIS have IIS 6 Metabase compatibility enabled?

http://forums.iis.net/t/1142872.aspx

Ken Ford

Translate
Contributor ,
Oct 16, 2009 Oct 16, 2009

Have you tried this?

http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions

And when you installed CF did your IIS have IIS 6 Metabase compatibility enabled?

http://forums.iis.net/t/1142872.aspx

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2009 Oct 16, 2009

I have tried what is in http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions.  In fact, that's pretty much exactly what I did.   Just for kicks, I went ahead and deleted my existing config through wsconfig and ran this:

%CFUSION_HOME%\runtime\bin\wsconfig -server coldfusion -ws IIS -site 0 -coldfusion -cfwebroot -map ".chtml" -v

This completed successfully.   If I look at my C:\ColdFusion9\runtime\lib\wsconfig\wsconfig.properties file, I see:

----

#JRun/ColdFusion MX Web Server Configuration File

#Fri Oct 16 12:27:26 PDT 2009

1=IIS,0,false,".chtml"

1.srv=localhost,"coldfusion"

1.cfmx=true,C:/Inetpub/wwwroot

-----

I also updated the web.xml file, here is the pertinent section:

<servlet-mapping>

<servlet-mapping id="coldfusion_mapping_15">

<servlet-name>CfmServlet</servlet-name>

<url-pattern>*.chtml</url-pattern>

</servlet-mapping>

<servlet-mapping id="coldfusion_mapping_16">

<servlet-name>CfmServlet</servlet-name>

<url-pattern>*.chtml/*</url-pattern>

</servlet-mapping>

Yet I still get "Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request" (even after restarting the services and rebooting).

As for the IIS6 Metabase compatibility (http://forums.iis.net/t/1142872.aspx) I'm running Windows 2003 R2, not Windows 2008.  Windows 2003 R2 uses IIS6 so that article doesn't really apply (although the guy there appears to have had the exact same problem that I'm having!).

Any other ideas?

thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 16, 2009 Oct 16, 2009

The only other suggestion I have is to restart IIS and ColdFusion, maybe even reboot the server

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2009 Oct 16, 2009

I actually think I might have made some progress here...

The original article talked about updating the web.xml file.  However, I think I was updating it wrong.  I did this:

<servlet-mapping>

  <servlet-mapping id="coldfusion_mapping_15">

  <servlet-name>CfmServlet</servlet-name>

<url-pattern>*.chtml</url-pattern>

</servlet-mapping>

<servlet-mapping id="coldfusion_mapping_16">

  <servlet-name>CfmServlet</servlet-name>

  <url-pattern>*.chtml/*</url-pattern>

</servlet-mapping>

...I think I should have done this:

<servlet-mapping>

  <servlet-name>CfmServlet</servlet-name>

  <url-pattern>*.htm</url-pattern>

</servlet-mapping>

<servlet-mapping>

  <servlet-name>CfmServlet</servlet-name>

  <url-pattern>*.htm/*</url-pattern>

</servlet-mapping>

I had read somewhere else that you needed to have a servlet-mapping id, but I guess that was wrong.  I took those out and now I'm one step farther (although still getting a different error now).

Working on it...  thanks for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2009 Oct 16, 2009

Problem solved...   that was it.  Adobe actually sent us an article saying that we needed to number the servlets, but when you do that, it doesn't work.

thanks!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 16, 2009 Oct 16, 2009

Cool glad you got it sorted!

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 16, 2009 Oct 16, 2009

babyky2k wrote:

Problem solved...   that was it.  Adobe actually sent us an article saying that we needed to number the servlets, but when you do that, it doesn't work.

thanks!!

Interesting. I tried it a while back using the instructions from another blog, and it did work with the numbering. Granted I did increment the numbers ie If the last mapping was #8, I started my new mappings at #9.  Anyway, that is good to know for the future.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2009 Oct 16, 2009

Honestly I think that CF9 is sensitive as heck.  We've done the install/uninstall too many times to count and what we're noticing is that even though we do the exact same process every time, sometimes the configuration is different.

We had two people separately working on this issue and both of us were following the article from Adobe to the letter and it didn't work (we were incrementing the numbers too).

Adobe technical support had absolutely no idea how any of the stuff worked and couldn't even talk to us about the process, let alone help us troubleshoot.  It literally took them a week just to send us the article with the instructions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 16, 2009 Oct 16, 2009
LATEST

Possibly.  I have not used the final version enough to form an opinion. But I realize that I neglected to mention those settings were under CF8 (not 9).  So I would have to test it with CF9 to see if the same holds true.

Adobe technical support had absolutely no idea how any of the stuff worked and couldn't even talk to us about the process, let alone help us troubleshoot.  It literally took them a week just to send us the article with the instructions.

Fortunately, I have not had to speak with Adobe technical support lately.  _Unfortunately_ I have dealt with the tech support departments of other companies and have had similar experiences.  It is not reassuring when you get the impression _you_ know more about the subject matter than the technical support representative.  It is a bit like talking to a surgeon about your upcoming operation and they end up asking you to describe how the process works ... 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources