Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Status of CDI OSGI + Liferay Faces to avoid having Weld jar files in WA
Hi! I know some work were made (https://issues.liferay.com/browse/LPS-86079) in order to have CDI implementation as part of an OSGI module.Here https://issues.liferay.com/browse/LPS-86824 there was some failure of a CDI portlet, but don't know what steps should be made in order to have CDI OSGI working in Liferay Faces portlets. This way we could avoid adding CDI implementation jar files in our portlets.Thanks!
Hi Juan,Liferay Portal 7.1 CE GA4 and 7.2 CE GA1 have weld-osgi-bundle deployed under $LIFERAY_HOME/osgi/modules. That makes it possible to have thin Portlet 3.0 "bean portlets" that rely on CDI.
However, we don't have a version of Liferay Faces Bridge that supports the "bean portlet" feature yet.Kyle recently pushed some commits to the liferay-faces-bridge-impl, liferay-faces-bridge-ext, and liferay-faces-util Git repos under the following tickets:- FACES-3471: Allow use of Liferay Provided CDI (instead of embedded Weld)- FACES-3024: Enable deployment of Liferay Faces dependencies as OSGi bundlesAlthough "bean portlet" is a feature of Portlet 3.0, we're trying to see if we can make it work with the 4.x version of Liferay Faces Bridge (which is compiled against the Portlet 2.0 API). We won't have a Portlet 3.0 version of the bridge until JSR 378 is complete.So the overall message is that we're making progress towards the ability to not rely on WEB-INF/weld-servlet.jar -- but we're not there yet.Best Regards,Neil
However, we don't have a version of Liferay Faces Bridge that supports the "bean portlet" feature yet.Kyle recently pushed some commits to the liferay-faces-bridge-impl, liferay-faces-bridge-ext, and liferay-faces-util Git repos under the following tickets:- FACES-3471: Allow use of Liferay Provided CDI (instead of embedded Weld)- FACES-3024: Enable deployment of Liferay Faces dependencies as OSGi bundlesAlthough "bean portlet" is a feature of Portlet 3.0, we're trying to see if we can make it work with the 4.x version of Liferay Faces Bridge (which is compiled against the Portlet 2.0 API). We won't have a Portlet 3.0 version of the bridge until JSR 378 is complete.So the overall message is that we're making progress towards the ability to not rely on WEB-INF/weld-servlet.jar -- but we're not there yet.Best Regards,Neil
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™