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

tc Server 2.9.3にLiferay Portalをセットアップする。

投稿者

Liferay Support

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text

このガイドは、tc Server 2.9.3のセットアップ方法について説明しています。

解決策

  1. vfabric-tc-server-standard-2.9.3.RELEASE.zip という名前の tc Server の zip ファイルをダウンロードします。
  2. コマンドプロンプトを開き、 /../vfabric-tc-server-standard-2.9.3.RELEASE. この場所は、 {tc Server Home}に短縮されます。
  3. コマンドの実行: mkdir servers
  4. コマンドを実行します。 tcruntime-instance.bat|sh create -i servers lp-server
  5. {tc Server Home}/servers/lp-server/confに移動します。 **wrapper.conf** ファイルを開いてください。
  6. '-Xmx'1024m で変更 wrapper.java.addition.8.
  7. 変更点 `-Xss` から 512kwrapper.java.addition.9.
  8. wrapper.java.additional.10="-XX:MaxPermSize=256m" を追加.
  9. wrapper.java.additional.11="-Dfile.encoding=UTF-8" を追加.
  10. ファイルを保存して閉じます。
  11. {tc Server Home}/servers/lp-server/confに、 **Catalina**という新しいフォルダーを作成します。
  12. {tc Server Home}/servers/lp-server/conf/Catalinaに、 localhostという新しいフォルダを作成します。 {tc Server Home}/servers/lp-server/conf/Catalina/localhostに、 ROOT.xml という新しいファイルを作成します。
  13. 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. -->
    
               <!-- Uncomment the following to not use sessions. See the property "session.disabled" in portal.properties. -->
    
              <!-- <Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" /> -->
    </Context> 			
    
  14. {tc Server Home}/servers/lp-server/conf フォルダで、 server.xml ファイルを開いてください。
  15. Connector プロパティに URIEncoding="UTF-8" を追加して、次のようにします:
    <Connector acceptCount="100"
               connectionTimeout="20000"
               executor="tomcatThreadPool"
               maxKeepAliveRequests="15"
               port="${bio.http.port}"
               protocol="org.apache.coyote.http11.Http11Protocol"
               redirectPort="${bio.https.port}"
    	   URIEncoding="UTF-8"/>
    
  16. lib/ext' フォルダに依存関係が展開される Tomcat とは異なり、tc Server の依存関係は 'lib' フォルダに直接展開されます。 すべて 以下の.jarをコピーします:
    • activation.jar
    • ccpp.jar
    • hsql.jar
    • jta.jar
    • jutf7.jar
    • mail.jar
    • mysql.jar
    • persistence.jar
    • portal-service.jar
    • portlet.jar
    • postgresql.jar
    • script-10.jar
  17. 次に、 {tc Server Home}/servers/lp-server/bin/setenv.bat|setenv.shを設定する。 set JVM_OPTS=-Dfile.encoding=UTF-8 -Xmx1024M -Xss512K -XX:MaxPermSize=512mこのプロパティをファイルの最後に追加する。
  18. これで、ポータルのデプロイ準備が整いました。 {tc Server Home}/servers/lp-server/webapps/ROOTに移動します。 このフォルダーにあるデフォルトのコンテンツを削除する。 ここで Liferay の .war ファイルを解凍します。 なお、.war ファイルは、パッケージャーまたはソースフォルダで **ant -f build-dist.xml zip-portal-war** を実行することで入手できます。
  19. {tc Server Home}/servers フォルダ内の /lp-server に portal-ext.properties を並列に設定します。 MySQLで動作するようにportal-ext.propertiesを設定する。
  20. portal-ext.propertiesでスタートアップウィザードの有効・無効を設定します。
  21. /bin フォルダーに次のように入力します。 tcruntime-ctl.bat run |./tcruntime-ctl.sh run
  22. シャットダウンするには、CTRL + Cで十分です
did-this-article-resolve-your-issue

legacy-knowledge-base