Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Richard Gibson
BeanLocator is null for servlet context error
May 25, 2011 5:05 AM
Answer

Richard Gibson

Rank: Junior Member

Posts: 30

Join Date: February 19, 2010

Recent Posts

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
June 18, 2011 1:51 AM
Answer

Andrés Cerezo

Rank: Junior Member

Posts: 92

Join Date: November 11, 2010

Recent Posts

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

Cheers.
Richard Gibson
RE: BeanLocator is null for servlet context error
June 20, 2011 1:31 AM
Answer

Richard Gibson

Rank: Junior Member

Posts: 30

Join Date: February 19, 2010

Recent Posts

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
July 11, 2011 10:20 AM
Answer

raghu batchu

Rank: New Member

Posts: 9

Join Date: August 23, 2009

Recent Posts

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
July 12, 2011 1:01 AM
Answer

Richard Gibson

Rank: Junior Member

Posts: 30

Join Date: February 19, 2010

Recent Posts

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
July 12, 2011 1:49 AM
Answer

David García González

Rank: Regular Member

Posts: 127

Join Date: July 14, 2009

Recent Posts

Could it be related to a classloader problem?
Richard Gibson
RE: BeanLocator is null for servlet context error
July 13, 2011 6:21 AM
Answer

Richard Gibson

Rank: Junior Member

Posts: 30

Join Date: February 19, 2010

Recent Posts

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
August 9, 2012 4:24 AM
Answer

devaraj s

Rank: Regular Member

Posts: 206

Join Date: May 21, 2012

Recent Posts

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
December 21, 2012 2:13 AM
Answer

Balazs Varhegyi

Rank: New Member

Posts: 1

Join Date: August 13, 2012

Recent Posts

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
January 21, 2013 2:48 AM
Answer

Arthur Grohe

Rank: Junior Member

Posts: 49

Join Date: November 5, 2012

Recent Posts

Hi ,

same problem here! running servicebuilder again didnt help me!