FrameworkEvent ERROR when deploying Liferay to WebSphere

Issue

  • After an upgrade from 7.4 U69 to U73, the following errors are seen when deploying Liferay to 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

Resolution

  • The issue might simply be because of the use of HSQL instead of an external database, if you see this line in the startup log:
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
  • Do the following:
  1. Try a workaround of shutting down, deleting the /data/hypersonic and /osgi/state folders and restarting the bundle
  2. Or connect to an external database

 

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助