掲示板
BeanLocator is null for servlet context error
12年前 に Richard Gibson によって更新されました。
BeanLocator is null for servlet context error
Junior Member 投稿: 30 参加年月日: 10/02/19 最新の投稿
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?
12年前 に Andrés Cerezo によって更新されました。
RE: BeanLocator is null for servlet context error
Junior Member 投稿: 92 参加年月日: 10/11/11 最新の投稿
Hi!!!! I have the same problem!!!! Didi you find the solution?
Cheers.
Cheers.
12年前 に Richard Gibson によって更新されました。
RE: BeanLocator is null for servlet context error
Junior Member 投稿: 30 参加年月日: 10/02/19 最新の投稿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.
12年前 に raghu batchu によって更新されました。
RE: BeanLocator is null for servlet context error
New Member 投稿: 9 参加年月日: 09/08/23 最新の投稿
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
12年前 に Richard Gibson によって更新されました。
RE: BeanLocator is null for servlet context error
Junior Member 投稿: 30 参加年月日: 10/02/19 最新の投稿
I haven't found a solution, other than to restart Tomcat when it occurs.
12年前 に David García González によって更新されました。
RE: BeanLocator is null for servlet context error
Regular Member 投稿: 127 参加年月日: 09/07/14 最新の投稿
Could it be related to a classloader problem?
12年前 に Richard Gibson によって更新されました。
RE: BeanLocator is null for servlet context error
Junior Member 投稿: 30 参加年月日: 10/02/19 最新の投稿
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.
11年前 に devaraj s によって更新されました。
RE: BeanLocator is null for servlet context error
Regular Member 投稿: 228 参加年月日: 12/05/21 最新の投稿
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.
11年前 に Balazs Varhegyi によって更新されました。
RE: BeanLocator is null for servlet context error
New Member 投稿: 1 参加年月日: 12/08/13 最新の投稿
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).
11年前 に Arthur Grohe によって更新されました。
RE: BeanLocator is null for servlet context error
Junior Member 投稿: 49 参加年月日: 12/11/05 最新の投稿
Hi ,
same problem here! running servicebuilder again didnt help me!
same problem here! running servicebuilder again didnt help me!
7年前 に poornima madhav によって更新されました。
RE: BeanLocator is null for servlet context error
New Member 投稿: 2 参加年月日: 16/02/14 最新の投稿
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