Foros de discusión

org.springframework.beans.factory.NoSuchBeanDefinitionException:

thumbnail
Hojat Vaheb, modificado hace 15 años.

org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
Hi every body,

When I deployed my new war file in liferay, I got this error but I have BookLocalServiceFactory in classes directory.
I considered most of related topic in forum but no one couldn’t help me to solve my problem.
Please Guide me
Thank you in advence

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.ext.portlet.libr
ary.service.BookLocalServiceFactory' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(De
faultListableBeanFactory.java:391)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinitio
n(AbstractBeanFactory.java:999)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory
.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory
.java:170)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicatio
nContext.java:883)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:68)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:46)
at com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(BeanLocatorUtil.java:51)
at com.ext.portlet.library.service.BookLocalServiceFactory._getFactory(BookLocalServiceFacto
ry.java:70)
at com.ext.portlet.library.service.BookLocalServiceFactory.getService(BookLocalServiceFactor
y.java:45)
at com.ext.portlet.library.service.BookLocalServiceUtil.getAll(BookLocalServiceUtil.java:126
)
thumbnail
Hojat Vaheb, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
After considering my problem deeply, I think that spring files in META-INF directory weren't loaded. I don't know why?

Could anyone help me?

Thanks alot



Hojat Vaheb:
Hi every body,

When I deployed my new war file in liferay, I got this error but I have BookLocalServiceFactory in classes directory.
I considered most of related topic in forum but no one couldn’t help me to solve my problem.
Please Guide me
Thank you in advence

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.ext.portlet.libr
ary.service.BookLocalServiceFactory' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(De
faultListableBeanFactory.java:391)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinitio
n(AbstractBeanFactory.java:999)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory
.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory
.java:170)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicatio
nContext.java:883)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:68)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:46)
at com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(BeanLocatorUtil.java:51)
at com.ext.portlet.library.service.BookLocalServiceFactory._getFactory(BookLocalServiceFacto
ry.java:70)
at com.ext.portlet.library.service.BookLocalServiceFactory.getService(BookLocalServiceFactor
y.java:45)
at com.ext.portlet.library.service.BookLocalServiceUtil.getAll(BookLocalServiceUtil.java:126
)
thumbnail
Peter Shin, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Regular Member Mensajes: 121 Fecha de incorporación: 24/09/07 Mensajes recientes
If you are using Liferay 5.0.x, check your web.xml file. It should look something like this.

<web-app>
	<context-param>
		<param-name>contextClass</param-name>
		<param-value>com.liferay.portlet.service.LazyClassPathApplicationContext</param-value>
	</context-param>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/data-source-spring.xml,WEB-INF/portlet-spring.xml</param-value>
	</context-param>
	<listener>
		<listener-class>com.liferay.portlet.service.PortalContextLoaderListener</listener-class>
	</listener>
</web-app>
thumbnail
Hojat Vaheb, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
I use Liferay 4.4.0 which does not contain PortalContextLoaderListener and I get the following error :
ERROR [[/lib]:3715] Error configuring application listener of class com.liferay.portlet.service.PortalContextLoaderListener
java.lang.ClassNotFoundException: com.liferay.portlet.service.PortalContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:595)
23:47:37,062 ERROR [[/lib]:3722] Skipped installing application listeners due to previous error(s)
So the portlet does not register successfully. Do I have to use Liferay 5?

When I add the following line :

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/data-source-spring.xml,WEB-INF/portlet-spring.xml</param-value>
</context-param>

the previousproblem happens :

,843 ERROR [jsp:52] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.ext.portlet.library.service.BookLocalServiceF
actory' is defined

Any suggestion? Thanks.
Ganesh Ram, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Regular Member Mensajes: 199 Fecha de incorporación: 5/02/08 Mensajes recientes
Hi Hojat,

Check for the "spring.configs" key in portal.properties. It should have META-INF/portal-spring.xml entry.

Secondly, open the META-INF/portal-spring.xml, and check whether it has an entry for your *Factory class that it cribs about.
If its not there, I would suggest that you run the service builder, that would regenerate the spring file for u.

Restart ur server and then check out.

- Ganesh
thumbnail
Hojat Vaheb, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
I added the following line to META-INF/portal-spring.xml but nothing happendemoticon

<bean id="com.ext.portlet.library.service.BookLocalServiceFactory" class="com.ext.portlet.library.service.BookLocalServiceFactory" lazy-init="true">
<property name="service">
<ref bean="com.ext.portlet.library.service.BookLocalService.transaction" />
</property>
</bean>
thumbnail
Rob Sonke, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Expert Mensajes: 275 Fecha de incorporación: 26/08/07 Mensajes recientes
There's a problem with deploying the xml and properties files in lf 5.0.1. Could you check if your ext-spring.xml is deployed to your application server? I assume that that's the file which should contain your bean definitions.
thumbnail
Hojat Vaheb, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
I have checked my portlet-spring.xml in my deployed application; it contains the "BookLocalServiceFactory" entry , also I have added this line manually after rebuilding the service layer.
thumbnail
Hojat Vaheb, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Junior Member Mensajes: 29 Fecha de incorporación: 19/09/07 Mensajes recientes
Any suggestions for resolving NoSuchBeanDefinitionException ? I can deploy this portlet without problem in ext environment. But the problems begin when I want to make a war file from this portlet. The problem must be related to an xml file, but I can not detect it. I appreciate any help.
thumbnail
Faisal K, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

Regular Member Mensajes: 138 Fecha de incorporación: 9/01/08 Mensajes recientes
I am getting the same error in liferay 5.1.0
zahia ikh ikh, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:

New Member Mensajes: 9 Fecha de incorporación: 29/09/08 Mensajes recientes
I am getting the same error in liferay 5.1.1.
Please help me solve the issue.
thumbnail
Sharana Basavaraj BM, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

Regular Member Mensajes: 139 Fecha de incorporación: 10/09/07 Mensajes recientes
Well, we'll solve this issue.

Please let me know the steps you followed in order to execute it. So that I can get a fair idea on whats happening.

Let me know , if you are using service builder the service.xml and the steps you followed to build it.

and for you new war file the deployment descriptors (web.xml, portlet.xml, liferay-portlet.xml any spring applicationContext.xml)

My question is for all the guys who are facing this problem. Lets together solve this.
zahia ikh ikh, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

New Member Mensajes: 9 Fecha de incorporación: 29/09/08 Mensajes recientes
Hello,
I have created a service on Liferay 5.1.1 as following steps:

1. Create file service.xml on ext-impl
2. execute the build-service from ext-impl
3. it generates the persistant classes
4. Modify MyClassLocalSrvice and MyClassLocalSrviceImpl
5. Modyfy web.xml file of ext-web/docroot/WEB-INF like this http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Upgrading+ServiceBuilder+generated+classes+to+Liferay+5.1.x
6.Modify portal-ext.properties


spring.configs=\
META-INF/activemq-spring-jms.xml,\
META-INF/data-source-spring.xml,\
META-INF/misc-spring.xml,\
META-INF/counter-spring.xml,\
META-INF/documentlibrary-spring.xml,\
META-INF/lock-spring.xml,\
META-INF/mail-spring.xml,\
META-INF/mail-spring-jms.xml,\
META-INF/portal-spring.xml,\
META-INF/portal-spring-jcr.xml,\
META-INF/portal-spring-jms.xml,\
META-INF/ext-spring.xml


7.deploy the portal

But i have the following exception



Loading file:/D:/ideo-factory/liferay-portal-tomcat-6.0-5.1.1/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Starting Liferay Portal 5.1.1 (Calvin / Build 5101 / August 11, 2008)
16:06:50,593 ERROR [StartupAction:105] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.liferay.lock.service.LockServiceFactory' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.liferay.lock.service.LockServiceFactory' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:968)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:66)
at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:58)
at com.liferay.lock.service.LockServiceFactory._getFactory(LockServiceFactory.java:53)
at com.liferay.lock.service.LockServiceFactory.getService(LockServiceFactory.java:36)
at com.liferay.lock.service.LockServiceUtil.clear(LockServiceUtil.java:42)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:102)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:70)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:146)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
3 oct. 2008 16:06:52 org.apache.catalina.core.ApplicationContext log
GRAVE: StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at com.liferay.portal.events.StartupAction.run(StartupAction.java:82)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:146)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
at com.liferay.portal.service.CompanyLocalServiceUtil.getCompanies(CompanyLocalServiceUtil.java:129)
at com.liferay.portal.search.lucene.IndexWriterFactory.<init>(IndexWriterFactory.java:82)
at com.liferay.portal.search.lucene.LuceneUtil.<init>(LuceneUtil.java:644)
at com.liferay.portal.search.lucene.LuceneUtil.<clinit>(LuceneUtil.java:642)
... 29 more
3 oct. 2008 16:06:52 org.apache.catalina.core.StandardContext loadOnStartup
GRAVE: La servlet a généré une exception "load()"
java.lang.NullPointerException
at com.liferay.portal.service.CompanyLocalServiceUtil.getCompanies(CompanyLocalServiceUtil.java:129)
at com.liferay.portal.search.lucene.IndexWriterFactory.<init>(IndexWriterFactory.java:82)
at com.liferay.portal.search.lucene.LuceneUtil.<init>(LuceneUtil.java:644)
at com.liferay.portal.search.lucene.LuceneUtil.<clinit>(LuceneUtil.java:642)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:82)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:146)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
3 oct. 2008 16:06:55 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
3 oct. 2008 16:06:55 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
3 oct. 2008 16:06:55 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/297 config=null
3 oct. 2008 16:06:55 org.apache.catalina.startup.Catalina start
INFO: Server startup in 58442 ms





Can some one help me.

regards
zahia ikh ikh, modificado hace 15 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

New Member Mensajes: 9 Fecha de incorporación: 29/09/08 Mensajes recientes
Ihave the same problem with 5.1.2. Any suggestions for resolving NoSuchBeanDefinitionException ?

thanks
Mahipalsinh Rana, modificado hace 14 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

New Member Mensajes: 3 Fecha de incorporación: 30/09/09 Mensajes recientes
I'm getting same error on 5.2.3 , my portlet works on ext but does not work on SDK.

error I am getting following error :

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.x.portlet.survey.service.SurveyService.impl' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:59)
at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:58)
at com.liferay.portal.spring.annotation.BeanReferenceElement.getResourceToInject(BeanReferenceElement.java:70)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(BeanReferenceAnnotationBeanPostProcessor.java:64)
... 31 more

I have my service.properties has all the spring related xml file , also web.xml has related entries . its lookes like circular reference problem while intializing bean , class LocalService extend Base Service which has variable for Service and Service in tern refers to LocalService , I am not sure in this situation how spring can initalize the bean ,

please advice what could be done differently , does anybody able to done this
alex ace, modificado hace 14 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

Junior Member Mensajes: 28 Fecha de incorporación: 15/07/09 Mensajes recientes
Was this issue ever resolved? I am getting the same issue.
thumbnail
Kalai arasan, modificado hace 10 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

Regular Member Mensajes: 127 Fecha de incorporación: 2/01/13 Mensajes recientes
I am also getting these problem in liferay 6.1
Haseena Begum, modificado hace 7 años.

RE: org.springframework.beans.factory.NoSuchBeanDefinitionException:e

New Member Mensajes: 12 Fecha de incorporación: 20/05/16 Mensajes recientes
Hi,

I got this error, i think it is because of project is not loading completely including META-INF.
So I restarted the application server and deployed the portlet successfully with no such error

Thanks

Regards,
Haseena