Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Daniel Breitner
Strange Errors when accessing Liferay Services
March 29, 2013 11:56 AM

Daniel Breitner

Rank: Regular Member

Posts: 104

Join Date: July 16, 2008

Recent Posts

Hi everybody,

I encountered a very strange exception in Liferay GA1 (MAC OS).
I created a hook that offers a liferay service to store values.
The jar of that service is in m servers lib/ext directory, the hook has been deployed.

When I am trying to use that service I do get:

18:32:08,012 ERROR [render_portlet_jsp:154] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.test.service.service.HibernateTransactionEntityLocalService' is defined
at com.liferay.portal.bean.BeanLocatorImpl.doLocate(
at com.liferay.portal.bean.BeanLocatorImpl.locate(
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(
at com.test.service.service.HibernateTransactionEntityLocalServiceUtil.getService(
at com.test.service.service.HibernateTransactionEntityLocalServiceUtil.getListTypesforEnum(
at com.test.database.dao.liferay_impl.SchedulerLiferayDAO.getAllScheduleActions(
at com.test.bean.SchedulerBB.fillScheduleActions(
at com.test.bean.SchedulerBB.<init>(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(
at com.sun.faces.mgbean.BeanManager.createAndPush(
at com.sun.faces.mgbean.BeanManager.create(
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(
at com.sun.faces.el.ManagedBeanELResolver.getValue(
at com.sun.faces.el.DemuxCompositeELResolver._getValue(
at com.sun.faces.el.DemuxCompositeELResolver.getValue(
at org.jboss.el.parser.AstIdentifier.getValue(
at org.jboss.el.parser.AstValue.getValue(
Mehdi norouzi
RE: Strange Errors when accessing Liferay Services
March 30, 2013 2:28 AM

Mehdi norouzi

Rank: New Member

Posts: 19

Join Date: July 17, 2006

Recent Posts

It seems your problem is in way you use hook, you can make hook (Override service, jsp, properties) as portlet and then deploy it. I think it's not necessary to make jar and put in ext/lib
David H Nebinger
RE: Strange Errors when accessing Liferay Services
March 30, 2013 6:00 AM

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 13258

Join Date: September 1, 2006

Recent Posts

You should not do SB in a hook because it does not have the context to run. Deploy as a simple portlet plugin and you'll be a step closer...

To use the service in a hook, you either have to put the service jar in ROOT/WEB-INF/lib or move service jar to the global lib dir (lib/ext).

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!