RE: Issue in velocity template

Daniel G, modified 6 Years ago. Regular Member Posts: 141 Join Date: 3/14/17 Recent Posts
Hi everyone.
I have a velocity template for webcontent. In other versions it was working fine, but in 7.1 I have an error with this line:


    #set ($journalArticleResourceService =  $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleResourceLocalService"))

because service does not exist. Is something different in the new version with this service? 

Thanks in advance.
Kind regards.
thumbnail
Amos Fong, modified 6 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts
Pablo B, modified 6 Years ago. New Member Posts: 10 Join Date: 7/9/15 Recent Posts
the new dependency for JournalArticleResourceLocalService is "com.liferay.journal.api" and the fully qualified name of the class is "com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"
Daniel G, modified 6 Years ago. Regular Member Posts: 141 Join Date: 3/14/17 Recent Posts
Thanks both of you! I was looking for something like that documentation page but I couldn't find it. I made the changes and now it works fine.
Thanks again.

Kind regards