-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.10 EE GA1
-
Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M2
-
Component/s: WCM, WCM > Publication, WCM > Publication > Asset Publisher
-
Labels:None
-
Environment:Ubuntu 12.04 : 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
When trying to override the struts action for /asset_publisher/rss from a hook using the following configuration:
<hook> <struts-action> <struts-action-path>/asset_publisher/rss</struts-action-path> <struts-action-impl>com.savoirfairelinux.hook.AssetPublisherRSSAction</struts-action-impl> </struts-action> </hook>
and the attached AssetPublisherRSSAction class, the result is the following exception (see attached stacktrace)
java.lang.NoClassDefFoundError: Could not initialize class com.sun.syndication.feed.synd.SyndFeedImpl
The workaround is to add the rome.jar as a dependency for the hook to have access to com.sun.syndication.feed.synd.SyndFeedImpl.
I suggest to create a service API around the RSS library as Liferay do for most other external dependencies being used throughout the portal and to also change the Asset Publisher RSSAction to obey the 'enableRss' portlet preference.
- relates
-
LPS-30162 Struts action hooks use wrong classloader to execute original action
- Closed