この記事は、Liferay Sync Connector 4.0.1 (この記事の執筆時点の最新版) をデプロイする際に発生する可能性のある既知の問題を記録しています。
Sync Connector 4.0.1 .lpkgファイル
を Liferay Digital Experience Platform (DXP) 7.0 に展開した場合、システムの再起動に失敗するエラーが発生することがあります。 この場合、2つのアプリケーションを追加で導入する必要があります。 そうすることで、Liferay Sync Connector 4.0.1が正常にデプロイされるようになります。
解像度
デフォルトでは、Liferay Sync Connector 4.0.0 は Help Centerで入手できるすべての DXP 7.0 バンドルに標準装備されています。 Sync Connectorの最新バージョンにアップグレードするためには、 Liferay Marketplace に移動してダウンロードします。 Sync Connector 4.0.1の最新バージョンをデプロイしたユーザーが、 com.liferay.portal.lpkg.deployer.LPKGVerifyException
に遭遇する既知の問題が発生しました。 アプリが正しくデプロイされず、ユーザーはバンドルを再起動することができません。
これは、スタックトレースの一部です:
18:07:31,163 INFO [Start Level: Equinox Container: f0ac9b05-dea5-0016-1a27-98eee7355fa7][BundleStartStopLogger:35] STARTED com.liferay.util.taglib_2.5.1 [967] 08-Nov-2016 18:07:31.174 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener java.lang.RuntimeException: com.liferay.portal.lpkg.deployer.LPKGVerifyException: LPKG validation failed with {[missing requirement com.liferay.sync.oauth; version=1.0.1; type=osgi.bundle [caused by: Unable to resolve com.liferay.sync.oauth version=1.0.1: missing requirement com.liferay.oauth.model; version=[1.0.0,2.0.0)]], [missing requirement com.liferay.sync.web; version=1.0.3; type=osgi.bundle [caused by: Unable to resolve com.liferay.sync.web version=1.0.3: missing requirement com.liferay.ip.geocoder; version=[1.0.0,2.0.0)]]} at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:256) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: com.liferay.portal.lpkg.deployer.LPKGVerifyException: LPKG validation failed with {[missing requirement com.liferay.sync.oauth; version=1.0.1; type=osgi.bundle [caused by: Unable to resolve com.liferay.sync.oauth version=1.0.1: missing requirement com.liferay.oauth.model; version=[1.0.0,2.0.0)]], [missing requirement com.liferay.sync.web; version=1.0.3; type=osgi.bundle [caused by: Unable to resolve com.liferay.sync.web version=1.0.3: missing requirement com.liferay.ip.geocoder; version=[1.0.0,2.0.0)]]} at com.liferay.portal.lpkg.deployer.internal.LPKGIndexValidator.validate(LPKGIndexValidator.java:267) at com.liferay.portal.lpkg.deployer.internal.DefaultLPKGDeployer._activate(DefaultLPKGDeployer.java:261) at com.liferay.portal.lpkg.deployer.internal.DefaultLPKGDeployer.activate(DefaultLPKGDeployer.java:91)
現在、当社のエンジニアがこの問題の解決に取り組んでいますが、それまでの間、回避策があります。
ワークアラウンド
以下の2つのアプリをデプロイします: Liferay IP Geocoder と Liferay Connector to Oauth. これらのアプリはいずれもLiferay Marketplaceから入手可能です。 アプリのダウンロードが完了したら、以下の手順を実行します:
- Liferay DXP 7.0をシャットダウンします。
-
/osgi/marketplace
フォルダで、既存の Liferay Sync Connector LPKG ファイルを削除します。 - 古い
/osgi/state
フォルダを削除してください。 また、ユーザーは対応するアプリケーションサーバーのキャッシュを削除する必要があります。 - 新しい Sync 4.0.1 LPKG ファイルを Liferay IP Geocoder と Liferay Oauth Provider アプリと一緒に
/deploy
フォルダに置きます。 - 最新のパッチツールおよびDE修正パックをダウンロードし、インストールしてください。
- Liferay DXP 7.0を再度起動します。
追加情報
詳細およびこの問題の最新状況については、 LPS-69151 をご覧ください。