Igor Beslic 10 Years Ago Hi Meera,nice example, keep doing good job!Just wanted to suggest you two things. It is more natural that dependent plugin (one that declares dependencies via required-deployment-contexts) is called child. Also it would be easier for audience if you format your source-code statements with code formatting.Best regards! Please sign in to reply. Reply as... Cancel meera prince Igor Beslic 10 Years Ago thank you Igor Beslic i will follows your suggestion... Please sign in to reply. Reply as... Cancel Umer Sayeed meera prince 10 Years Ago I am not able to get the Impl() in parent portlet, other all methods are comming good. where did i made a mistake?? Please sign in to reply. Reply as... Cancel Sanketh Iyer Umer Sayeed 8 Years Ago Hi Umer, I am facing the same issue . Were you able to resolve your problem?Thanks and regards,Sanketh Please sign in to reply. Reply as... Cancel
meera prince Igor Beslic 10 Years Ago thank you Igor Beslic i will follows your suggestion... Please sign in to reply. Reply as... Cancel Umer Sayeed meera prince 10 Years Ago I am not able to get the Impl() in parent portlet, other all methods are comming good. where did i made a mistake?? Please sign in to reply. Reply as... Cancel Sanketh Iyer Umer Sayeed 8 Years Ago Hi Umer, I am facing the same issue . Were you able to resolve your problem?Thanks and regards,Sanketh Please sign in to reply. Reply as... Cancel
Umer Sayeed meera prince 10 Years Ago I am not able to get the Impl() in parent portlet, other all methods are comming good. where did i made a mistake?? Please sign in to reply. Reply as... Cancel Sanketh Iyer Umer Sayeed 8 Years Ago Hi Umer, I am facing the same issue . Were you able to resolve your problem?Thanks and regards,Sanketh Please sign in to reply. Reply as... Cancel
Sanketh Iyer Umer Sayeed 8 Years Ago Hi Umer, I am facing the same issue . Were you able to resolve your problem?Thanks and regards,Sanketh Please sign in to reply. Reply as... Cancel
Martin Kruse 9 Years Ago Things I found out in at least Liferay 6.2 EE:1. Do not let your entity end with "Service" (e.g. MyJournalService). It will break the generator for the <Entity>LocalService-Interface. It will not generate the method to get the entity by primary key/composit key. So the service builder will generate broken code as the LocalServiceBaseImpl will override the method not existing in the interface.2. The package-paths for the two services must be different! Otherwise you will only be able to call one service. Calling the second service will result in a "NoSuchBeanDefinitionException". Try calling the ParentLocalServiceUtil.getParent(1) in your example Parent-Portlet's view.jsp. It will throw this exception.Those two things took me half a day to find out :-/ So I thought I should share. Please sign in to reply. Reply as... Cancel Meera Prince Martin Kruse 9 Years Ago its very helpful.. thanks for sharing.. Please sign in to reply. Reply as... Cancel David Lee Martin Kruse 9 Years Ago I have two portlets and I want to share a service between them. They are created in their own liferay project folder/path. So I think they are in different package-paths. And the service that I want to share is placed in the tomcat\lib\ext folder. But I get the "NoSuchBeanDefinitionException" error. I am using 6.2 CE. I think I got the service to be shared when I was using 6.1 CE. But I am having a hard time with 6.2. CE. Any help provided is greatly appreciated. Please sign in to reply. Reply as... Cancel Hardik Pathak David Lee 9 Years Ago I guess remove jar from the tomcat/lib/ext folder.Make sure two things. 1. Add your service jar into ROOT/WEB-INF/lib folder.2. In your consumer portlet's liferay-plugin-package.xml file under "Portal Dependency Jars" click on Add and select the custom service jar. And under "Required Deployment Context" select your custom service project.Redeploy custom portlets and hopefully that should work. Please sign in to reply. Reply as... Cancel Quang Anh Ngô Martin Kruse 7 Years Ago I got NoSuchBeanDefinitionException when place services at the same package path.Thank you! Helpful reply. Please sign in to reply. Reply as... Cancel
Meera Prince Martin Kruse 9 Years Ago its very helpful.. thanks for sharing.. Please sign in to reply. Reply as... Cancel
David Lee Martin Kruse 9 Years Ago I have two portlets and I want to share a service between them. They are created in their own liferay project folder/path. So I think they are in different package-paths. And the service that I want to share is placed in the tomcat\lib\ext folder. But I get the "NoSuchBeanDefinitionException" error. I am using 6.2 CE. I think I got the service to be shared when I was using 6.1 CE. But I am having a hard time with 6.2. CE. Any help provided is greatly appreciated. Please sign in to reply. Reply as... Cancel Hardik Pathak David Lee 9 Years Ago I guess remove jar from the tomcat/lib/ext folder.Make sure two things. 1. Add your service jar into ROOT/WEB-INF/lib folder.2. In your consumer portlet's liferay-plugin-package.xml file under "Portal Dependency Jars" click on Add and select the custom service jar. And under "Required Deployment Context" select your custom service project.Redeploy custom portlets and hopefully that should work. Please sign in to reply. Reply as... Cancel
Hardik Pathak David Lee 9 Years Ago I guess remove jar from the tomcat/lib/ext folder.Make sure two things. 1. Add your service jar into ROOT/WEB-INF/lib folder.2. In your consumer portlet's liferay-plugin-package.xml file under "Portal Dependency Jars" click on Add and select the custom service jar. And under "Required Deployment Context" select your custom service project.Redeploy custom portlets and hopefully that should work. Please sign in to reply. Reply as... Cancel
Quang Anh Ngô Martin Kruse 7 Years Ago I got NoSuchBeanDefinitionException when place services at the same package path.Thank you! Helpful reply. Please sign in to reply. Reply as... Cancel
manasa chandri 9 Years Ago Hi,How many child portlets we can add in one parent portlet.for example: required-deployment-contexts=Child-portlet1,Child-portlet2we can add like above example? Please sign in to reply. Reply as... Cancel
Quang Anh Ngô 7 Years Ago But if you try this:Child-portlet requires Parent-portlet services and Parent-portlet requires Child-portlet servicesthen the deployment will block foreverboth portlets will wait each other in queue till one of them be deployed.This is my problem. Please sign in to reply. Reply as... Cancel