legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Portal 6.2 を Tomcat 6 でセットアップする。

written-by

Justin Choi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Liferay Supportは、特定のサードパーティ製品を他の製品よりも推奨または承認するものではありません。 Liferayは、これらの製品に関して、ここに記載または参照されているいかなる指示に対しても責任を負いません。 これらの原則の実行は、加入者の責任において行われるものとします。

本記事は、Tomcat 6上でwarを使用してLiferay Portal 6.2 EEをセットアップする方法です。

解像度

  1. 必要なファイルを集める
    1. Tomcat 6 http://tomcat.apache.org/download-60.cgiの最新のサポートバージョンをダウンロードし、解凍します。
    2. 最新の Liferay.war ファイルと Liferay Portal の依存関係をダウンロードします。 Liferay WARと依存関係.
  2. 依存性ジャー
    1. フォルダの作成 {$TOMCAT_HOME}/lib/ext
    2. 依存関係ファイルを {$TOMCAT_HOME}/lib/extに解凍します。
    3. {$build}/lib/development から $TOMCAT_HOME/lib/extに以下の jar をコピーします : (これらは既存のバンドルから取得することも可能です).
      • activation.jar
      • jms.jar
      • jta.jar
      • jutf7.jar
      • mail.jar
      • persistence.jar
    4. Tomcat 6 用の ccpp.jar を削除します。
      • {$build}/lib/development から {$TOMCAT_HOME}/temp/liferay/com/liferay/portal/deploy/dependencies へ以下の jar をコピーします:
        • resin.jar
        • script-10.jar
    5. 最新のMySQL JDBCドライバ (MySQL Connector) をダウンロードし、 mysql-connector-java-{$version}-bin.jar{$TOMCAT_HOME}/lib/extに展開します。
  3. ドメインを設定する
    1. setenv.bat を [$TOMCAT_HOME}/bin ] に作成する。
    2. setenv.batを編集し、以下を追加します:
      if exist "%CATALINA_HOME%/jre@java.version@/win" (
        if not "%JAVA_HOME%" == "" (
        set JAVA_HOME=
        )
        set "JRE_HOME=%CATALINA_HOME%/jre@java.version@/win"
      )
      set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"
    3. ディレクトリの作成 {$TOMCAT_HOME}/conf/Catalina/localhost
    4. {%TOMCAT_HOME}/conf/Catalina/localhostに ROOT.xml を作成します。
    5. ROOT.xmlを編集し、以下を追加します:
      <Context path="" crossContext="true">
      <!-- JAAS -->
      <!--<Realm className="org.apache.catalina.realm.JAASRealm" appName="PortalRealm" userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal" roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole" />-->
      <!-- Uncomment the following to disable persistent sessions across reboots. -->
      <!-- <Manager pathname="" /> -->
      <!-- Uncomment the following to not use sessions. See the property "session.disabled" in portal.properties. -->
      <!-- <Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" /> --> </Context>
    6. {$TOMCAT_HOME}/conf/catalina.properties を編集し、置き換える。
      common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

      common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/ext,${catalina.home}/lib/ext/*.jar
    7. {$TOMCAT_HOME}/conf/server.xml を編集し、置き換える。
      <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

      <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />
    8. {$TOMCAT_HOME}/webapps に移動し、 support-catalina.jar が存在する場合は削除してください。
  4. Liferayをデプロイする
    1. {$TOMCAT_HOME}/webapps/ROOT に移動し、内容を削除する。
    2. liferay-portal-6.2.0.war の内容を {$TOMCAT_HOME}/webapps/ROOTに解凍する。
    3. コマンドコンソールを開き、 {$TOMCAT_HOME}/bin 、startup.batと入力し、サーバーを起動します。
did-this-article-resolve-your-issue

legacy-knowledge-base