Foros de discusión
BeanLocator is null for servlet context error
Richard Gibson, modificado hace 12 años.
BeanLocator is null for servlet context error
Junior Member Mensajes: 30 Fecha de incorporación: 19/02/10 Mensajes recientes
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?
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, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
Junior Member Mensajes: 92 Fecha de incorporación: 11/11/10 Mensajes recientes
Hi!!!! I have the same problem!!!! Didi you find the solution?
Cheers.
Cheers.
Richard Gibson, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
Junior Member Mensajes: 30 Fecha de incorporación: 19/02/10 Mensajes recientesAndré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, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
New Member Mensajes: 9 Fecha de incorporación: 23/08/09 Mensajes recientes
Hi Richard
I have the same problem. Did you find the solution?If Yes could you please share the solution.
Thanks
Raghu
I have the same problem. Did you find the solution?If Yes could you please share the solution.
Thanks
Raghu
Richard Gibson, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
Junior Member Mensajes: 30 Fecha de incorporación: 19/02/10 Mensajes recientes
I haven't found a solution, other than to restart Tomcat when it occurs.
David García González, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
Regular Member Mensajes: 127 Fecha de incorporación: 14/07/09 Mensajes recientes
Could it be related to a classloader problem?
Richard Gibson, modificado hace 12 años.
RE: BeanLocator is null for servlet context error
Junior Member Mensajes: 30 Fecha de incorporación: 19/02/10 Mensajes recientes
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, modificado hace 11 años.
RE: BeanLocator is null for servlet context error
Regular Member Mensajes: 228 Fecha de incorporación: 21/05/12 Mensajes recientes
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.
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, modificado hace 11 años.
RE: BeanLocator is null for servlet context error
New Member Mensaje: 1 Fecha de incorporación: 13/08/12 Mensajes recientes
I had the same problem.
I've rebuilt the service and the problem solved (for me).
I've rebuilt the service and the problem solved (for me).
Arthur Grohe, modificado hace 11 años.
RE: BeanLocator is null for servlet context error
Junior Member Mensajes: 49 Fecha de incorporación: 5/11/12 Mensajes recientes
Hi ,
same problem here! running servicebuilder again didnt help me!
same problem here! running servicebuilder again didnt help me!
poornima madhav, modificado hace 7 años.
RE: BeanLocator is null for servlet context error
New Member Mensajes: 2 Fecha de incorporación: 14/02/16 Mensajes recientes
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 exception
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 exception