1

JRun(J2EEインストール)、Windows Server 2008 R2、Java1.6.0_22でColdFusion9,0,1,274733を実行する

他の誰かがデフォルトのドキュメントindex.cfmをColdFusionで動作させるのに問題がありましたか?これはセットアップのせいで問題になるだけだと思います。別のWebサーバー(IIS)とアプリケーションサーバー(ColdFusion)。この構成を実行しているのは私たちだけだとは想像できません。私たちは?

だからここに問題があります。http://mysite.com/index.cfm
をリクエストすると、機能します。http://mysite.com/ をリクエストすると、機能せず、404が返されます。

IISサーバーでWebコネクタのログファイルを確認したところ、ColdFusionサーバーにリクエストが送信されていることがわかりました。ColdFusionサーバーから404エラーコードが返送されていますが、その理由がわかりません。IISサーバーにデフォルトのドキュメントが設定されていますindex.cfm。また、アプリケーションサーバー(web.xml)<welcome-file-list>に含めるセットもあります。index.cfm

含まれていない場合のWebコネクタのログからindex.cfm

2012-11-01 13:37:22 jrISAPI[4544:3600]  ***HttpExtensionProc for JRun ISAPI Extension: uri is "/test/"
2012-11-01 13:37:22 jrISAPI[4544:3600]     HTTP_HOST: servername
2012-11-01 13:37:22 jrISAPI[4544:3600]  filtering /test/ (/test/) HOST=servername
2012-11-01 13:37:22 jrISAPI[4544:3600]  filterRequest:   no match
2012-11-01 13:37:22 jrISAPI[4544:3600]  ExecUrl: request received: URL=/test/
2012-11-01 13:37:22 jrISAPI[4544:3600]  ExecUrl Completion: 404, ErrorCode=2, URL=/test/.

以下を含める場合は、Webコネクタのログからindex.cfm

2012-11-01 13:49:02 jrISAPI[9936:3600]  ***HttpExtensionProc for JRun ISAPI Extension: uri is "/test/index.cfm"
2012-11-01 13:49:02 jrISAPI[9936:3600]     HTTP_HOST: servername
2012-11-01 13:49:02 jrISAPI[9936:3600]  filtering /test/index.cfm (/test/index.cfm) HOST=servername
2012-11-01 13:49:02 jrISAPI[9936:3600]  filterRequest:   matched *.cfm
2012-11-01 13:49:02 jrISAPI[9936:3600]  ***IISWorkerThreadProc for JRun ISAPI Extension: uri is "/test/index.cfm"
2012-11-01 13:49:02 jrISAPI[9936:3600]     ALL_RAW: Connection: Keep-Alive
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, application (553)
2012-11-01 13:49:02 jrISAPI[9936:3600]  Headers and Values:
... and much more ...

この問題は、IISのURL書き換えモジュールを使用してURLに追加index.cfmすることで回避できました。それは機能しますが、私の腸は、そのような基本的な機能のためにそれを行う必要はないはずだと私に言い続けています。

他にこの問題を抱えている人はいますか?どうやってこれを回避しましたか?

いくつかの情報を追加して編集

IISサーバーからの私のサイトのweb.configファイルの内容は次のとおりです。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
    <handlers>
        <add name="JWildCardHandler" path="*" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\1\jrun_iis6_wildcard.dll" resourceType="Unspecified" requireAccess="None" />
        <add name="hbmxmlHandler" path="*.hbmxml" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="cfswfHandler" path="*.cfswf" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="cfrHandler" path="*.cfr" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="cfcHandler" path="*.cfc" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="cfmlHandler" path="*.cfml" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="cfmHandler" path="*.cfm" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="jwsHandler" path="*.jws" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
        <add name="jspHandler" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="D:\JRun4\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
    </handlers>
    <defaultDocument>
        <files>
            <add value="index.cfm" />
        </files>
    </defaultDocument>
    <staticContent>
        <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package zip" />
    </staticContent>
</system.webServer>
</configuration>

APPサーバーweb.xmlのファイルの内容の一部を次に示します。

<welcome-file-list id="WelcomeFileList_1034546870672">
    <welcome-file>index.cfm</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
</welcome-file-list>
4

4 に答える 4

0

私はこの質問を Adob​​e フォーラムにも投稿しましたが、そこではさらに注目を集めています。 ここですべての詳細を読むことができます。

私が抱えていた主な問題は、ColdFusion に「/」のマッピングがないと判断された後、IIS が「/index.cfm」を Web コネクタに渡さなかったことのようです。これは、Web サーバーに空の (空の) index.cfm ファイルを作成した後に機能し始めました。過去に分散モードを使用する場合、CFM ファイルを Web サーバーに配置する必要があったことを思い出しません。これが機能するためには、CFMファイルが両方のサーバーに存在する必要があることを確認または拒否できますか(とにかく書き換えルールを使用しません)?

于 2012-11-05T22:01:29.620 に答える