問題
- 7.4 U69からU73にアップグレードした後、LiferayをWebSphereにデプロイすると以下のエラーが発生します:
ERROR [Framework Event Dispatcher: Equinox Container: a2a85eaa-5ae8-4b66-87a5-4315e923a260][Framework:56] FrameworkEvent ERROR
com.liferay.portal.kernel.log.LogSanitizerException: org.osgi.framework.BundleException: Could not resolve module: com.liferay.announcements.uad [123]_ Unresolved requirement: Import-Package: com.liferay.user.associated.data.anonymizer; version="1.2.0"_ -> Export-Package: com.liferay.user.associated.data.anonymizer; bundle-symbolic-name="com.liferay.user.associated.data.api"; bundle-version="7.0.1"; version="1.2.0"; uses:="com.liferay.portal.kernel.dao.orm,com.liferay.portal.kernel.exception,com.liferay.portal.kernel.model,com.liferay.user.associated.data.component"_ com.liferay.user.associated.data.api [1312]_ Unresolved requirement: Import-Package: com.liferay.petra.xml; version="3.0.0"_ Unresolved requirement: Import-Package: com.liferay.user.associated.data.display; version="2.1.0"_ -> Export-Package: com.liferay.user.associated.data.display; bundle-symbolic-name="com.liferay.user.associated.data.api"; bundle-version="7.0.1"; version="2.1.0"; uses:="com.liferay.portal.kernel.dao.orm,com.liferay.portal.kernel.model,com.liferay.portal.kernel.portlet,com.liferay.portal.kernel.util,com.liferay.user.associated.data.component"_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi.jar:?]
Environment
- DXP 7.4
解決策
- 起動ログにこのような行がある場合、問題は単に外部データベースの代わりにHSQLを使用していることが原因かもしれない:
INFO [server.startup : 0][DialectDetector:153] Using dialect com.liferay.portal.dao.orm.hibernate.HSQLDialect for HSQL Database Engine 2.7
[6/14/23 14:11:45:343 GMT] 0000005f webapp I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [liferay-dxp#liferay-dxp-7.4.13.u73-20230419073742119.war]:.Initializing Spring root WebApplicationContext
- 以下を行います。
-
シャットダウンして、
/data/hypersonic
と/osgi/state
フォルダを削除し、バンドルを再起動するという回避策を試してみてください。 - または外部データベースに接続する
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン