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: Running Service Builder methods outside the Portlet
So, I've created a standalone Java driver class with a main method to test some DB data. I want to call and run service-builder methods within Eclipse. What do I need to add to the Run Configuration to avoid the error:
BeanLocator has not been set for servlet context <PORTLET>
This happens when I try to call a method from a *LocalServiceUtil.java class.
BeanLocator has not been set for servlet context <PORTLET>
This happens when I try to call a method from a *LocalServiceUtil.java class.
Service builder is an integral part of Liferay core leveraging both Spring and Hibernate.
What you're attempting would be extremely difficult to do, if not impossible, simply because of all of the assumptions the core makes about running within an app server, the web app context, ...
What you're attempting would be extremely difficult to do, if not impossible, simply because of all of the assumptions the core makes about running within an app server, the web app context, ...
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™