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: Issue in velocity template
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:
Thanks in advance.
Kind regards.
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.
Hey Daniel,
Check out the documentation for the new path:
https://portal.liferay.dev/docs/7-1/reference/-/knowledge_base/r/classes-moved-from-portal-service-jar
Check out the documentation for the new path:
https://portal.liferay.dev/docs/7-1/reference/-/knowledge_base/r/classes-moved-from-portal-service-jar
the new dependency for JournalArticleResourceLocalService is "com.liferay.journal.api" and the fully qualified name of the class is "com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"
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
Thanks again.
Kind regards
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™