Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 9:16
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 20 de julio de 2012 9:30
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 9:36
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 20 de julio de 2012 9:59
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 10:03
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 10:14
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 20 de julio de 2012 10:40
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 10:46
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 20 de julio de 2012 11:00
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 11:05
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 20 de julio de 2012 11:11
RE: ISSUE WITH MODEL LISTENER HOOK Jay Patel 20 de julio de 2012 13:46
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 20 de julio de 2012 15:24
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 23 de julio de 2012 3:08
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 23 de julio de 2012 5:27
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 23 de julio de 2012 5:42
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 23 de julio de 2012 7:35
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 23 de julio de 2012 8:06
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 23 de julio de 2012 9:54
RE: ISSUE WITH MODEL LISTENER HOOK David H Nebinger 23 de julio de 2012 10:14
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 23 de julio de 2012 10:29
RE: ISSUE WITH MODEL LISTENER HOOK Joel Peterson 26 de julio de 2012 13:25
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 26 de julio de 2012 14:05
RE: ISSUE WITH MODEL LISTENER HOOK Joel Peterson 26 de julio de 2012 15:19
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 30 de julio de 2012 3:59
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 31 de julio de 2012 1:55
RE: ISSUE WITH MODEL LISTENER HOOK Joel Peterson 31 de julio de 2012 9:27
RE: ISSUE WITH MODEL LISTENER HOOK Rajashekar Katla 31 de julio de 2012 11:48
RE: ISSUE WITH MODEL LISTENER HOOK Joel Peterson 31 de julio de 2012 12:27
RE: ISSUE WITH MODEL LISTENER HOOK Jay Patel 30 de julio de 2012 13:35
Rajashekar Katla
ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 9:16
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi All,

I have developed portlets with my custom entities by using service builder and generated service classes. And in my entities I have user and organization id’s.

But I have requirement like whenever the user/organization is deleted from Liferay user_ & organization_ tables, I need to delete those corresponding user/organization from my tables.
For that I created two hooks to act as listener for those tables.
1) ClearUserHook extends BaseModelListener<User>
2) ClearOrganizationHook extends BaseModelListener<Organization>

And registered the two listeners in portal.properties file. The listeners are registered and invoking properly, whenever create/update/delete operation performed for user_ & organization_ tables.

But the issue is:
The custom entities are not loading. I am getting the below runtime exception:
ERROR [PortletBeanLocatorUtil:38] BeanLocator is null for servlet context

I added the my service jars in tomcat\lib\ext folder and hook project lib folder as well. How to load my service classes to perform operations.
Please help me..!!

Thanks,
Rajashekar
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 9:30
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

BeanLocator is null is a common error that you can search the forums for a solution.

Basically it sounds like it is a timing issue; your hook is loading before the plugin providing the service is loaded.

Use liferay-plugin-package.properties of the hook to add the plugin providing the service as a required deployment context.
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 9:36
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi David,

Thanks for your quick reply..!!

Could you please tell me how to add plugin providing the service as a required deployment context. if you have any examples please share with me.

Thanks,
Rajashekar
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 9:59
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Open the file in the Liferay IDE. You'll see where to add it in the lower right corner.
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 10:03
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Thanks David.

I will try and let you know, the result.

Thanks,
Rajashekar
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 10:14
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi David,

I added
required-deployment-contexts=\ (all the required protlets)

but I am getting same error: BeanLocator is null for servlet context.

Thanks,
Rajashekar
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 10:40
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

That's not all contexts, it is just the root context.

If the plugin providing the service is in the webapps dir as "my-portlet", your required deployment context would be "/my-portlet".
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 10:46
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi David,

I have 3 portlet projects, each project having service classes. So I added 3 projects as required-deployment-contexts in liferay-plugin-package.properties file, but still I am getting same error: ERROR [PortletBeanLocatorUtil:38] BeanLocator is null for servlet context XYZService

Please check my implementation, could you please tell me how fix this issue. I not able proceed further because of this issue. I completely stuck here.

Listener class
-----------------------
public class ClearUserHook extends BaseModelListener<User> {
Book book = null;
@Override
public void onAfterRemove(User user) throws ModelListenerException {
long userId = user.getUserId();
try {
book = bookLocalServiceUtil.findAssociatedBook(userId);
if (book != null) {
try {
BookLocalServiceUtil.deleteBook(book);
} catch (SystemException e) {
e.printStackTrace();
}
}
} catch (SystemException e1) {
e1.printStackTrace();
}
}

portal.properties
-----------------------
value.object.listener.com.liferay.portal.model.User=com.liferay.hook.ClearUserHook

liferay-hook.xml
---------------------
<hook>
<portal-properties>portal.properties</portal-properties>
</hook>


liferay-plugin-package.properties
---------------------------------------------
required-deployment-contexts=\ (added required portlet project)
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 11:00
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Rajashekar Katla:
liferay-plugin-package.properties
---------------------------------------------
required-deployment-contexts=\ (added required portlet project)


Again, this is where the problem is.

I have a portlet plugin which also has required deployment contexts.

My liferay-plugin-package.properties file has the following (well, I did change the names):

1required-deployment-contexts=\
2  my-portlet-1,\
3  my-portlet-2,\
4  my-portlet-3
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 11:05
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Yeah I did the same, even though I am getting same error.
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 11:11
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Well try posting the full stack trace...
Jay Patel
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 13:46
Respuesta

Jay Patel

Ranking: Regular Member

Mensajes: 119

Fecha de incorporación: 23 de febrero de 2010

Mensajes recientes

Rajashekar Katla:
Hi All,

I have developed portlets with my custom entities by using service builder and generated service classes. And in my entities I have user and organization id’s.

But I have requirement like whenever the user/organization is deleted from Liferay user_ & organization_ tables, I need to delete those corresponding user/organization from my tables.
For that I created two hooks to act as listener for those tables.
1) ClearUserHook extends BaseModelListener<User>
2) ClearOrganizationHook extends BaseModelListener<Organization>

And registered the two listeners in portal.properties file. The listeners are registered and invoking properly, whenever create/update/delete operation performed for user_ & organization_ tables.

But the issue is:
The custom entities are not loading. I am getting the below runtime exception:
ERROR [PortletBeanLocatorUtil:38] BeanLocator is null for servlet context

I added the my service jars in tomcat\lib\ext folder and hook project lib folder as well. How to load my service classes to perform operations.
Please help me..!!

Thanks,
Rajashekar


Hi Rajashekar,

Are you removing service-jar from your hook's lib directory & portlet's lib directory? Because if you've placed that jar in tomcat\lib\ext, then no need to have it at other places.

-Jay.
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
20 de julio de 2012 15:24
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Thanks Jay.

I tried with u r solution but now i got below error:

ERROR [render_portlet_jsp:154] com.liferay.portal.kernel.bean.BeanLocatorException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.xyz.liferay.serv.service.xxxLocalService' is defined
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:70)
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:47)

Please help me to come out of this issue.

Thanks,
Rajashekar
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 3:08
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi David / Jay,

Please find the attachment for full stack trace of error, please suggest me how to come out of this issue.

Thanks,
Rajashekar
archivos adjuntos: User table Listener Error Log.txt (19,1k)
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 5:27
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

One of the first things you learn as a java programmer is that the top listed exception is not necessarily the one that is the problem.

Looking at the full stack trace, you find the following:

1Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.sample.liferay.serv.service.BookLocalService' is defined


It has nothing to do with the bean locator, it has to do with an undefined bean.

Is the portlet providing the book service deployed? Did it start correctly?
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 5:42
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

David,

All Portlets are deployed properly and working fine. I am able to do all the functionalities of the Portets without any issues.

But I am facing issues to load those Working Portlets service classes into Hook listener. Please any body suggest me to solve this issue.

-Rajashekar
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 7:35
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi All,

Can any one please give me some hints for how to access Portlet service classes (custom entities) in Hook Listener class.

-Rajashekar
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 8:06
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Rajashekar Katla:
Can any one please give me some hints for how to access Portlet service classes (custom entities) in Hook Listener class.


That would seem to be your problem...

A hook's context is typically the portal's context, and I'm guessing the portal does not have access to your service jar.

Try dropping the service jar into the global lib/ext directory and remove the service jar from any other location in webapps, then restart the application container.

Basically I think this will boil down to just not thinking things through correctly... You can hook the listener in for Liferay's classes, but you should not be hooking in listeners for services which you manage.
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 9:54
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Ok, Finally I got it SOLVED.

Step1 : I placed all Portlets service jars in tomcat-7.0.23\lib\ext (Globally)

Step 2 : Also I placed service jars in hook WEB-INF\lib folder


Note:
For example A-Portlet is having service jar as A-portlet-service.jar

But A-Portlet referring B-Portlet-service.jar, So in Hook WEB-INF\lib folder only A-portlet-service.jar has to be placed not both.

Then restarted the server, and deploy the hook listener it works fine.


Thanks David and Jay for your valuables inputs.

Best Regards,
Rajashekar
David H Nebinger
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 10:14
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11771

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Rajashekar Katla:
Step1 : I placed all Portlets service jars in tomcat-7.0.23\lib\ext (Globally)

Step 2 : Also I placed service jars in hook WEB-INF\lib folder


If it's in the global lib/ext directory, it doesn't need to be in the WEB-INF/lib folder of the hook. A global jar is just that, available to all web applications deployed on the application server.

In fact you can possibly face other problems by doing things this way. The hook's class loader would load from the WEB-INF/lib jar (if the hook has a context, depends upon the type of hook) while every other web app would be using the one loaded from the global class loader. This can lead to conflicts...
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
23 de julio de 2012 10:29
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Thanks David,

But It is not working in that way. I tried all the various options but these steps are working fine for me. If I remove service jars from Hook lib folder again I am getting Bean Locator No bean defined error.

I placed Portlet service jars in ext\lib folder and deleted from corresponding Portlet WEB-INF\lib folder. Then I added into Hook WEB-INF\lib folder it is working perfectly.

Cheers,
- Rajashekar
Joel Peterson
RE: ISSUE WITH MODEL LISTENER HOOK
26 de julio de 2012 13:25
Respuesta

Joel Peterson

Ranking: New Member

Mensajes: 22

Fecha de incorporación: 18 de febrero de 2010

Mensajes recientes

Is there a specific reason why you have your model listener hook in a different plugin than your portlet? If you are always going to have the hook and portlet deployed together than you should be able to move your hook inside of the portlet plugin so that it all deploys together. By doing it that way you should be able to keep the portlet's *service.jar in your portlet's WEB-INF/lib folder since the listener will be running in your portlet's context and will have access to your portlet's classloader, and you will not need to mess with the global lib/ext folder.

Joel
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
26 de julio de 2012 14:05
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Thanks Joel, for your valuable suggestion.

I am new to Liferay development, I don't know know how to create listener in portlet. I searched in Liferay Forum then i come to know i need to create a hook for listener. That is why i implemented a hook plugin. Could you please tell me how to create listener in portlet ? If you have sample code pls share with me!

Thanks,
Rajashekar
Joel Peterson
RE: ISSUE WITH MODEL LISTENER HOOK
26 de julio de 2012 15:19
Respuesta

Joel Peterson

Ranking: New Member

Mensajes: 22

Fecha de incorporación: 18 de febrero de 2010

Mensajes recientes

You just need to merge your hook project into your portlet project. I listed out the three files that you would need to copy in to your portlet project.
  1. Move <hook-project>/docroot/WEB-INF/liferay-hook.xml to <portlet-project>/docroot/WEB-INF/liferay-hook.xml
  2. Move <hook-project>/docroot/WEB-INF/src/portal.properties to <portlet-project>/docroot/WEB-INF/src/portal.properties
  3. Move <hook-project>/docroot/WEB-INF/src/.../YourListenerClass.java to <portlet-project>/docroot/WEB-INF/src/.../YourListenerClass.java


When you deploy your portlet, if you watch the server logs it should mention that it is deploying your portlet and it should also mention that it is deploying a hook. Make sure that you undeploy your standalone hook first though so that you do not have the same listener running twice.

If you want to look at an example of a hook in a portlet plugin, Liferay's Mail portlet available here, Liferay CE Official Plugins, is a portlet with a hook inside of it.

Joel
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
30 de julio de 2012 3:59
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Thank you so much Joel.

Sure I will try and let you know.

Best Regards,
Rajashekar
Jay Patel
RE: ISSUE WITH MODEL LISTENER HOOK
30 de julio de 2012 13:35
Respuesta

Jay Patel

Ranking: Regular Member

Mensajes: 119

Fecha de incorporación: 23 de febrero de 2010

Mensajes recientes

Glad that it has worked for you Rajashekar.

-Jay.
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
31 de julio de 2012 1:55
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

Hi Joel,

I did same as you suggested, but it is not working. I got the below error and portlet not loading. Pls tell me how to fix this ?

The below error keep on printing on console, until I stop the browser to load.

at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)


Thanks,
Rajashekar
Joel Peterson
RE: ISSUE WITH MODEL LISTENER HOOK
31 de julio de 2012 9:27
Respuesta

Joel Peterson

Ranking: New Member

Mensajes: 22

Fecha de incorporación: 18 de febrero de 2010

Mensajes recientes

Is there an error above that repeated line in your logs?

Also, what does it say when you deploy your plugin? Does it say that it successfully deployed the portlet and the hook?
Rajashekar Katla
RE: ISSUE WITH MODEL LISTENER HOOK
31 de julio de 2012 11:48
Respuesta

Rajashekar Katla

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 20 de julio de 2012

Mensajes recientes

yeah, the portlet deployed successfully without any issue. But while accessing the portlet i am getting this runtime exceptions and the browser keep on loading the portlet but nothing is displayed on browser but on console the exception keep on printing ?

Thanks,
Rajashekar
Joel Peterson
RE: ISSUE WITH MODEL LISTENER HOOK
31 de julio de 2012 12:27
Respuesta

Joel Peterson

Ranking: New Member

Mensajes: 22

Fecha de incorporación: 18 de febrero de 2010

Mensajes recientes

Have you removed your portlet's service jar from the server's lib/ext folder and placed it back into your portlet's WEB-INF/lib folder and then restarted your server?