Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why


Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
Daniel Breitner
Strange Errors when accessing Liferay Services
29 marzo 2013 11.56

Daniel Breitner

Punteggio: Junior Member

Messaggi: 94

Data di Iscrizione: 16 luglio 2008

Messaggi recenti

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
30 marzo 2013 2.28

Mehdi norouzi

Punteggio: New Member

Messaggi: 19

Data di Iscrizione: 17 luglio 2006

Messaggi recenti

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
30 marzo 2013 6.00

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 10342

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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).