Link to home
Start Free TrialLog in
Avatar of Janrow
JanrowFlag for United States of America

asked on

Microsoft, Windows 2003 Server, R2 Sandard, IIS server

In Windows 2000 Server, the IIS server allowed one to map .htm files to the ISCF.DLL coldfusion file via the Add Mappings option in the Configuration Tab.

But this doesn't work in Windows 2003 R2 Standard Server's IIS server. After adding .htm to the configuration and pointing to the same file as .cfm, which is:

C:\JRun4\lib\wsconfig\jrun_iis6.dll, I get this dandy error:

"Server Error  - Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request."

I'm using Coldfusion 8 enterprise with multiple server instances installed. The actual server directory, that is, where the home directory is located is C:\SITES\ and not the default wwwroot directory.
Avatar of pcsmitpra
pcsmitpra
Flag of India image

Please check it the path you are using for DLL ie., 'C:\JRun4\lib\wsconfig\jrun_iis6.dll" is correct. Verify that application mappings .htm or .html pointing to right DLL.
Verify that each of your IIS websites has a virtual directory called JRunScripts.
Verify that the JRunScripts directory in each of your IIS websites points to the correct location, as follows:

   1. Right-click the JRunScripts directory and select Properties.
   2. In the Properties dialog box, on the Virtual Directories tab, verify that the Local Path text box contains the following path:
      path/wsconfig/number (typically 1)
Avatar of Janrow

ASKER

Hmm. I think I got most of that, except for the last line, "path/wsconfig/number (typically 1)"

There are no virtual directory called "JRunScripts".

I can create one but what kind of virtual directory should this be, Virtual Director or Virtual Directory from file?

The path is correct, that is, if it should be: C:\JRun4\lib\wsconfig\jrun_iis6.dll.

Now, about "path/wsconfig/number (typically 1)".  The only path I find which has a directory named wsconfig is C:\JRun4\lib\wsconfig\. If that's where the Virtual directory should be pointed, I can do it but what is the number? Should it "typically" look like this:

C:\JRun4\lib\wsconfig\number1  or
C:\JRun4\lib\wsconfig\

Or am I still missing something?

 



Avatar of Janrow

ASKER

Okay, I see what you mean. I looked at the C:\JRun4\lib\wsconfig\ directory and see the only other directory under is is /1

Not sure why the virtual directory is needed but did it anyway. I verified that the Local Path text box does include "C:\JRun4\lib\wsconfig\1".

So, does this mean rule out your ideas?

If so, would creating the home directories for each domain in C:\SITES\  cause the problem? I mean, that is where all my websites are pointing, to a folder off that directory.

I guess the big question though, is, "Does Coldfuion 8 still support mapping .htm files to coldfusion?  I sure hope so or I have big problems. I can't change the name from .htm to .cfm because that would defeat our positions in the search engines. I really need to know this one for sure, and whomever answers this for sure, regadless of finding the answer will receive or share the points.

Any other ideas or am missing something?
Avatar of Janrow

ASKER

I'd like to close this question if no one else has an answer. But I'll wait to see if anyone can tell me for certain, one way or the other, if IIS6 supports mapping .htm to Coldfusion 8, and how to do it. The suggestions above are all in place and the error persists.
Avatar of Janrow

ASKER

No solution here on EE so I found one elsewhere and thought Id share it for anyone having the same problem:
-------------------
Use the same settings for .cfm path in the IIS Configuration to
include .htm files.

Edit this file:
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\web.xml
Modify and insert at the end of the other mappings:

<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>

Step 2:
Then open a command window (Run, cmd)
navigate to: C:\Jrun4\bin

enter this line exactly:

.\wsconfig -server coldfusion -ws IIS -site 0 -coldfusion -map
 ".htm,.html" -v

Restart the webserver.
Restart Coldfusion

I request this question be closed and points refunded.
ASKER CERTIFIED SOLUTION
Avatar of Janrow
Janrow
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Janrow

ASKER

Request this question be closed and points refuned.
Avatar of modus_operandi
modus_operandi

Closed, 500 points refunded.
modus_operandi
EE Moderator