2017-06-16 3 views
1

Macで開発環境にLuceeを設定する際に問題が発生しています。 Luceeは稼動しています。私はサーバー管理ページを表示できますが、私の開発サイトではCFMLを処理しません。私はTomcatのserver.xmlファイルにサイトを追加しているので、それらは提供されますが、Luceeはそこにいることを知らないようです。 Luceeにこれらのサイトについて話すには、私は何をする必要がありますか?LuceeをMac OS Xで開発環境として設定する

+0

環境について詳しく教えてください。あなたはどのようにLuceeをインストールしましたか? Luceeに加えてWebサーバーを使用していますか? server.xmlファイルにリストされているので、どのようにサイトにアクセスしようとしていますか? – Jordan

+0

私はLuceeに関する情報でweb.xmlファイルを更新する必要があるという点で、最終的に答えを見つけました。 LuceeサイトのMacセットアップ手順にはありませんでした。 – unclesol

答えて

1

最後に、Luceeの情報をTomcat web.xmlファイルに追加する必要があることが判明しました。これはMac OSX Luceeセットアップのドキュメントにはありませんでしたが、私はそれを他の場所で見つけました。ここに必要なものは次のとおりです。

<!-- ===================================================================== --> 
<!-- Lucee CFML Servlet - this is the main Lucee servlet     --> 
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 
<servlet id="Lucee"> 
    <description>Lucee CFML Engine</description> 
    <servlet-name>CFMLServlet</servlet-name> 
    <servlet-class>lucee.loader.servlet.CFMLServlet</servlet-class> 
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 
    <!-- to specify the location of the Lucee Server config and libraries, --> 
    <!-- uncomment the init-param below. make sure that the param-value  --> 
    <!-- points to a valid folder, and that the process that runs Lucee has --> 
    <!-- write permissions to that folder. leave commented for defaults. --> 
    <!-- 
    <init-param> 
    <param-name>lucee-server-root</param-name> 
    <param-value>/var/Lucee/config/server/</param-value> 
    <description>Lucee Server configuration directory (for Server-wide configurations, settings, and libraries)</description> 
    </init-param> 
    !--> 
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 
    <!-- to specify the location of the Web Contexts' config and libraries, --> 
    <!-- uncomment the init-param below. make sure that the param-value  --> 
    <!-- points to a valid folder, and that the process that runs Lucee has --> 
    <!-- write permissions to that folder. the {web-context-label} can be --> 
    <!-- set in Lucee Server Admin homepage. leave commented for defaults. --> 
    <!-- 
    <init-param> 
    <param-name>lucee-web-directory</param-name> 
    <param-value>/var/Lucee/config/web/{web-context-label}/</param-value> 
    <description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description> 
    </init-param> 
    !--> 
    <load-on-startup>1</load-on-startup> 
</servlet> 

<servlet-mapping> 
    <servlet-name>CFMLServlet</servlet-name> 
    <url-pattern>*.cfc</url-pattern> 
    <url-pattern>*.cfm</url-pattern> 
    <url-pattern>*.cfml</url-pattern> 
    <url-pattern>/index.cfc/*</url-pattern> 
    <url-pattern>/index.cfm/*</url-pattern> 
    <url-pattern>/index.cfml/*</url-pattern> 

    <!-- url-pattern>*.cfm/*</url-pattern !--> 
    <!-- url-pattern>*.cfml/*</url-pattern !--> 
    <!-- url-pattern>*.cfc/*</url-pattern !--> 
    <!-- url-pattern>*.htm</url-pattern !--> 
    <!-- url-pattern>*.jsp</url-pattern !--> 
</servlet-mapping> 

<!-- ===================================================================== --> 
<!-- Lucee REST Servlet - handles Lucee's RESTful web services    --> 
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 
<servlet id="RESTServlet"> 
    <description>Lucee Servlet for RESTful services</description> 
    <servlet-name>RESTServlet</servlet-name> 
    <servlet-class>lucee.loader.servlet.RestServlet</servlet-class> 
    <load-on-startup>2</load-on-startup> 
</servlet> 

<servlet-mapping> 
    <servlet-name>RESTServlet</servlet-name> 
    <url-pattern>/rest/*</url-pattern> 
</servlet-mapping> 
関連する問題