Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Richard Gibson
BeanLocator is null for servlet context error
25 de Maio de 2011 05:05
Resposta

Richard Gibson

Ranking: Junior Member

Mensagens: 30

Data de entrada: 19 de Fevereiro de 2010

Mensagens recentes

Hi,

I have a plugin portlet project that consists of 13 portlets, these portlets are calling a number of service methods defined within this plugin project.

Sometimes when I deploy the project to Liferay 6.1 I see the following error for every portlet

BeanLocator is null for servlet context <my-portlet-name>

The only way to correct this seems to be to restart the server.

I've been trying to work out a pattern to this happening, if after starting the server I go directly to a page in Liferay that is hosting one or more of these portlets the error usually occurs, however going to a standard Liferay page before moving to a page containing these portlets seems to work. Can't say this 100% but that is the pattern I have established so far.

Ideally I would like to break this project up into a number of smaller projects, but I couldn't find a way to call a custom service defined in one plugin project from another.

Anyone had a similar problem?
Andrés Cerezo
RE: BeanLocator is null for servlet context error
18 de Junho de 2011 01:51
Resposta

Andrés Cerezo

Ranking: Junior Member

Mensagens: 92

Data de entrada: 11 de Novembro de 2010

Mensagens recentes

Hi!!!! I have the same problem!!!! Didi you find the solution?

Cheers.
Richard Gibson
RE: BeanLocator is null for servlet context error
20 de Junho de 2011 01:31
Resposta

Richard Gibson

Ranking: Junior Member

Mensagens: 30

Data de entrada: 19 de Fevereiro de 2010

Mensagens recentes

Andrés Cerezo:
Hi!!!! I have the same problem!!!! Didi you find the solution?

Cheers.



No, I haven't found out how to resolve this.
raghu batchu
RE: BeanLocator is null for servlet context error
11 de Julho de 2011 10:20
Resposta

raghu batchu

Ranking: New Member

Mensagens: 9

Data de entrada: 23 de Agosto de 2009

Mensagens recentes

Hi Richard

I have the same problem. Did you find the solution?If Yes could you please share the solution.

Thanks
Raghu
Richard Gibson
RE: BeanLocator is null for servlet context error
12 de Julho de 2011 01:01
Resposta

Richard Gibson

Ranking: Junior Member

Mensagens: 30

Data de entrada: 19 de Fevereiro de 2010

Mensagens recentes

I haven't found a solution, other than to restart Tomcat when it occurs.
David García González
RE: BeanLocator is null for servlet context error
12 de Julho de 2011 01:49
Resposta

David García González

Ranking: Regular Member

Mensagens: 127

Data de entrada: 14 de Julho de 2009

Mensagens recentes

Could it be related to a classloader problem?
Richard Gibson
RE: BeanLocator is null for servlet context error
13 de Julho de 2011 06:21
Resposta

Richard Gibson

Ranking: Junior Member

Mensagens: 30

Data de entrada: 19 de Fevereiro de 2010

Mensagens recentes

I think it most likely is a classloader issue, at the moment it makes development quite slow as each time I redeploy my portlets I have to restart Tomcat.
devaraj s
RE: BeanLocator is null for servlet context error
9 de Agosto de 2012 04:24
Resposta

devaraj s

Ranking: Regular Member

Mensagens: 223

Data de entrada: 21 de Maio de 2012

Mensagens recentes

Hi everyone,
I have created a registeration portlet , by using service builder created a neccessory tables also in mysql database..

The problem is that when i click submit button after filling registration form its throwing exception like BeanLocator is null for servlet context. plz anyone suggest how i ill resolve this problem.
Balazs Varhegyi
RE: BeanLocator is null for servlet context error
21 de Dezembro de 2012 02:13
Resposta

Balazs Varhegyi

Ranking: New Member

Mensagens: 1

Data de entrada: 13 de Agosto de 2012

Mensagens recentes

I had the same problem.
I've rebuilt the service and the problem solved (for me).
Arthur Grohe
RE: BeanLocator is null for servlet context error
21 de Janeiro de 2013 02:48
Resposta

Arthur Grohe

Ranking: Junior Member

Mensagens: 49

Data de entrada: 5 de Novembro de 2012

Mensagens recentes

Hi ,

same problem here! running servicebuilder again didnt help me!
poornima madhav
RE: BeanLocator is null for servlet context error
16 de Setembro de 2016 09:41
Resposta

poornima madhav

Ranking: New Member

Mensagens: 2

Data de entrada: 14 de Fevereiro de 2016

Mensagens recentes

Hi,
I have tried out even by removing my portlet from server + clean the server + stopped the server + started the server by deploying the portlet once agin.
My application is very small on just to persist 2 fields data from the Ui , the value comes upto controller.. but when trying to persist in DB it is giving this BeanLocator exceptionemoticon

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