Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Use a common service to different portlet surjeet singh 5 de febrero de 2013 23:16
RE: Use a common service to different portlet Rahul Pande 8 de febrero de 2013 2:16
RE: Use a common service to different portlet surjeet singh 11 de febrero de 2013 1:32
RE: Use a common service to different portlet Mayur Patel 11 de febrero de 2013 1:51
RE: Use a common service to different portlet Rahul Pande 11 de febrero de 2013 3:43
RE: Use a common service to different portlet Hello World 9 de agosto de 2013 20:27
RE: Use a common service to different portlet subhash lamba 9 de agosto de 2013 20:48
RE: Use a common service to different portlet Prakash Khanchandani 19 de noviembre de 2015 7:28
RE: Use a common service to different portlet Meera Prince 11 de febrero de 2013 2:29
RE: Use a common service to different portlet surjeet singh 11 de febrero de 2013 3:33
RE: Use a common service to different portlet pawan chauhan 20 de septiembre de 2013 3:03
RE: Use a common service to different portlet Dhanush B 15 de diciembre de 2014 4:45
RE: Use a common service to different portlet Jitendra Rajput 15 de diciembre de 2014 5:01
RE: Use a common service to different portlet Dhanush B 15 de diciembre de 2014 21:31
RE: Use a common service to different portlet Dhvanil Reshamwala 12 de febrero de 2013 4:44
RE: Use a common service to different portlet Meera Prince 12 de febrero de 2013 20:37
RE: Use a common service to different portlet surjeet singh 19 de febrero de 2013 1:48
RE: Use a common service to different portlet Dhvanil Reshamwala 19 de febrero de 2013 3:48
surjeet singh
Use a common service to different portlet
5 de febrero de 2013 23:16
Respuesta

surjeet singh

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 8 de octubre de 2012

Mensajes recientes

Hi All,

I want to use a common service to more that one portlet with a unique method.

As I have created a portlet and build a service for that. I hava created a common method which I have to use in differnt portlet. Then I build the service.
After building the service I get a *service.jar. As I common method is working fine with the same portlet.

Now I put that *service.jar to liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\lib\ext folder and restart the server. My custome portlet gets the *service.jar file in tomcat lib directory and I am able to use the common method in my custom portlet. But when I call the common method it gets me error as following----


  106:41:48,451 INFO  [http-bio-8080-exec-2][ClpSerializer:70] Unable to locate deployment context from portlet properties
  206:41:48,454 ERROR [http-bio-8080-exec-2][PortletBeanLocatorUtil:38] BeanLocator is null for servlet context SMSEmailUtility-portlet
  306:41:48,456 ERROR [http-bio-8080-exec-2][PortletServlet:115] javax.portlet.PortletException: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context SMSEmailUtility-portlet
  4javax.portlet.PortletException: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context SMSEmailUtility-portlet
  5    at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:171)
  6    at com.liferay.util.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:250)
  7    at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:80)
  8    at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:220)
  9    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
 10    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
 11    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 12    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 13    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 14    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 15    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 16    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 17    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 18    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 19    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 20    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 21    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 22    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 23    at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
 24    at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
 25    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
 26    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
 27    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 28    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 29    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 30    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 31    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 32    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 33    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 34    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 35    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 36    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 37    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 38    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 39    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 40    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 41    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 42    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 43    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 44    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 45    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 46    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 47    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 48    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 49    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 50    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 51    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 52    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 53    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 54    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 55    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 56    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 57    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 58    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 59    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 60    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 61    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 62    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 63    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 64    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 65    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
 66    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 67    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 68    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 69    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 70    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 71    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
 72    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 73    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 74    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 75    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 76    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 77    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 78    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 79    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 80    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 81    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 82    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 83    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 84    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 86    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 87    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 88    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 89    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
 90    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 91    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 92    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 93    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 94    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 95    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 96    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 97    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 98    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 99    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
100    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
101    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
103    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
104    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
105    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
106    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
108    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
109    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
110    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
114    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
118    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
119    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
120    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
123    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
124    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
125    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
126    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
127    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
128    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
129    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
130    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
131    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
132    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
133    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
134    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
135    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
136    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
137    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
138    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
139    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
140    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
141    at java.lang.Thread.run(Thread.java:619)
142Caused by: com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context SMSEmailUtility-portlet
143    at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:42)
144    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.getService(BATCHJOBQUEUELocalServiceUtil.java:307)
145    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.sendSMS(BATCHJOBQUEUELocalServiceUtil.java:294)
146    at com.tcs.branchFeedback.BranchFeedbackPortlet.searchBranchLocation(BranchFeedbackPortlet.java:198)
147    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
148    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
149    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
150    at java.lang.reflect.Method.invoke(Method.java:597)
151    at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:153)
152    ... 136 more
153Feb 6, 2013 6:41:48 AM org.apache.catalina.core.ApplicationDispatcher invoke
154SEVERE: Servlet.service() for servlet branchfeedbackportlet Servlet threw exception
155com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context SMSEmailUtility-portlet
156    at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:42)
157    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.getService(BATCHJOBQUEUELocalServiceUtil.java:307)
158    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.sendSMS(BATCHJOBQUEUELocalServiceUtil.java:294)
159    at com.tcs.branchFeedback.BranchFeedbackPortlet.searchBranchLocation(BranchFeedbackPortlet.java:198)
160    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
161    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
162    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
163    at java.lang.reflect.Method.invoke(Method.java:597)
164    at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:153)
165    at com.liferay.util.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:250)
166    at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:80)
167    at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:220)
168    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
169    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
170    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
171    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
172    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
173    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
174    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
175    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
176    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
177    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
178    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
179    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
180    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
181    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
182    at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
183    at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
184    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
185    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
186    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
187    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
188    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
189    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
190    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
191    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
192    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
193    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
194    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
195    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
196    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
197    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
198    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
199    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
200    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
201    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
202    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
203    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
204    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
205    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
206    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
207    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
208    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
209    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
210    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
211    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
212    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
213    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
214    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
215    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
216    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
217    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
218    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
219    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
220    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
221    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
222    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
223    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
224    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
225    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
226    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
227    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
228    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
229    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
230    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
231    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
232    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
233    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
234    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
235    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
236    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
237    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
238    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
239    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
240    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
241    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
242    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
243    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
244    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
245    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
246    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
247    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
248    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
249    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
250    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
251    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
252    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
253    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
254    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
255    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
256    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
257    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
258    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
259    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
260    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
261    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
262    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
263    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
264    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
265    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
266    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
267    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
268    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
269    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
270    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
271    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
272    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
273    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
274    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
275    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
276    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
277    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
278    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
279    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
280    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
281    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
282    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
283    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
284    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
285    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
286    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
287    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
288    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
289    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
290    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
291    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
292    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
293    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
294    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
295    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
296    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
297    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
298    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
299    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
300    at java.lang.Thread.run(Thread.java:619)
30106:41:48,758 ERROR [http-bio-8080-exec-2][render_portlet_jsp:154] com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set for servlet context SMSEmailUtility-portlet
302    at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:42)
303    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.getService(BATCHJOBQUEUELocalServiceUtil.java:307)
304    at com.smsEmailUtility.slayer.service.BATCHJOBQUEUELocalServiceUtil.sendSMS(BATCHJOBQUEUELocalServiceUtil.java:294)
305    at com.tcs.branchFeedback.BranchFeedbackPortlet.searchBranchLocation(BranchFeedbackPortlet.java:198)
306    at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:153)
307    at com.liferay.util.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:250)
308    at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:80)
309    at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:220)
310    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
311    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
312    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
313    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
314    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
315    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
316    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
317    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
318    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
319    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
320    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
321    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)

Please someone tell me that is it the correct approach or I have to use some different one?
Rahul Pande
RE: Use a common service to different portlet
8 de febrero de 2013 2:16
Respuesta

Rahul Pande

Ranking: Expert

Mensajes: 308

Fecha de incorporación: 6 de julio de 2010

Mensajes recientes

Hi Surjeet,

Once you put *service.jar file in " {tomcat}+/lib/ext " then it should be available to all other portlets.

Please check tomcat, that your portlet's lib foler should not contain same *.service.jar file in it.

If it still is there then delete that jar and restart the server.

Hope that helps

Thanks
Rahul
Prakash Khanchandani
RE: Use a common service to different portlet
19 de noviembre de 2015 7:28
Respuesta

Prakash Khanchandani

Ranking: Expert

Mensajes: 329

Fecha de incorporación: 10 de febrero de 2011

Mensajes recientes

If you put the *-service.jar inside the tomcat/lib/ext then you should remove it from your custom-portlet's WEB-INF/lib/.

I would suggest using the following porperty in your liferay-plugin-package.properties in all other portlets which use the services of MyCommon-portlet:
1required-deployment-contexts=MyCommon-portlet


Only put the *-service.jar inside the tomcat/lib/ext when you need that your *-service.jar's method should be available to even the Hooks or EXTs you would create. For custom plugin portlets the liferay-plugin-package.properties should suffice.

This forum-answer should help you decide.

Hope this helps.

-
Prakash K
(Fulcrum Worldwide)
surjeet singh
RE: Use a common service to different portlet
11 de febrero de 2013 1:32
Respuesta

surjeet singh

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 8 de octubre de 2012

Mensajes recientes

Hi Rahul,

As I already mention earlier that I put my *-service.jar file only in tomcat/lib/ext folder. The method which I have written in my common portlet is available for use. When I use intelligence from ecllipse it shows me the mothod. After restarting the server, when that method is called then that error comes into picture as earlier.

So I have put my *service.jar file to only one location which is tomcat/lib/ext. Please give me any suggestion.

Thanks in advance.
Mayur Patel
RE: Use a common service to different portlet
11 de febrero de 2013 1:51
Respuesta

Mayur Patel

Ranking: Expert

Mensajes: 350

Fecha de incorporación: 17 de noviembre de 2010

Mensajes recientes

Thanks Prakash, It's really helpful emoticon
Meera Prince
RE: Use a common service to different portlet
11 de febrero de 2013 2:29
Respuesta

Meera Prince

Ranking: Liferay Legend

Mensajes: 1110

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

Hi
We need copy the service layer of first portlet into global class path lib directory which in tomcat.(tomcat/lib/ext). And delete this service layer form from first portlet.
Example:



Producer is one of the plugin portlet and Consumer is second portlet.
Assume we want use Producer Service layer into Consume portlet.
Step: 1
Copy service layer form Producer portlet .Service layer.
path is /Producer-portlet/docroot/WEB-INF/lib/ Producer -service.jar
Step: 2
Paste the Producer -service.jar jar file into tomcat global class path drectory. The path is
/tomcat-6.0.16/lib/ext/ Producer -service.jar
Step: 3
Delete Producer -service.jar file from Producer portlet lib directory. Path is like /Producer-portlet/docroot/WEB-INF/lib/ Producer -service.jar
Step: 4
Deploy the consumer and producer portlets.
Test The Consumer Portlet Application with serviceUtil clasess code. If you get following errors like
ClassCast exception and class not found Exception Do the following thing.
First of all in tomacat server and Delete all files in temp directory and work directory.
Check the Producer-Service.jar file in tomcat global class path that is /tomcat-6.0.16/lib/ext/ Producer -service.jar if not available again we have to add.
Check the Producer lib directory for service jar in fallowing path tomcat-6.0.16\webapps\ Producer -portlet\WEB-INF\lib. If available delete from lib directory.
Start tomcat and check the service layer classes in consumer portlet.

Regards,
Meera Princes
surjeet singh
RE: Use a common service to different portlet
11 de febrero de 2013 3:33
Respuesta

surjeet singh

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 8 de octubre de 2012

Mensajes recientes

Hi Prince,

Thanks its works for me.
Rahul Pande
RE: Use a common service to different portlet
11 de febrero de 2013 3:43
Respuesta

Rahul Pande

Ranking: Expert

Mensajes: 308

Fecha de incorporación: 6 de julio de 2010

Mensajes recientes

Hi Surjeet,

Yes you have to put *-service.jar file only at one location i.e tomcat/lib/ext

Thanks
Rahul
Dhvanil Reshamwala
RE: Use a common service to different portlet
12 de febrero de 2013 4:44
Respuesta

Dhvanil Reshamwala

Ranking: New Member

Mensajes: 13

Fecha de incorporación: 23 de diciembre de 2011

Mensajes recientes

Did you tried the solution provided by Prakash ? It looks like a much cleaner solution rather than putting it in tomcat/lib/ext.
Thanks,
Dhvanil
Meera Prince
RE: Use a common service to different portlet
12 de febrero de 2013 20:37
Respuesta

Meera Prince

Ranking: Liferay Legend

Mensajes: 1110

Fecha de incorporación: 8 de febrero de 2011

Mensajes recientes

HI Dhvanil Reshamwala
i tested the solution given by Prakash but not working.
i am using liferay6.0.6 version.
i am getting class not found excretion. its clearly said service jar is not availble. if any thing is required to work that please share.


Regards,
Meera Prince.
surjeet singh
RE: Use a common service to different portlet
19 de febrero de 2013 1:48
Respuesta

surjeet singh

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 8 de octubre de 2012

Mensajes recientes

hi Dhvanil Reshamwala,

Its also not working for me. It copies the jar file into portlet lib folder but when ever I call the common method it gives me some error as "ClassCast exception and class not found Exception " So I have tried the solution given by prince and it is working fine.

thanks
surjeet
Dhvanil Reshamwala
RE: Use a common service to different portlet
19 de febrero de 2013 3:48
Respuesta

Dhvanil Reshamwala

Ranking: New Member

Mensajes: 13

Fecha de incorporación: 23 de diciembre de 2011

Mensajes recientes

Thanks Surjeet and Meera for the update.

So we will have to go ahead with solution of putting JAR in tomcat/lib/ext.

Regards,
Dhvanil
Hello World
RE: Use a common service to different portlet
9 de agosto de 2013 20:27
Respuesta

Hello World

Ranking: New Member

Mensajes: 4

Fecha de incorporación: 5 de agosto de 2011

Mensajes recientes

Hi, can you send me the *.service.jar files or link to download theme, my e-mail biorioza@gmail.com. Thank so much
subhash lamba
RE: Use a common service to different portlet
9 de agosto de 2013 20:48
Respuesta

subhash lamba

Ranking: Regular Member

Mensajes: 136

Fecha de incorporación: 7 de julio de 2013

Mensajes recientes

Hi. Van Sinh..
*.service.jar will generate automaticaly when you bould service in your portlet lib folder like XXX-portlet-service.jar, here XXX is you portlet name.
it only generate after bould the service.
pawan chauhan
RE: Use a common service to different portlet
20 de septiembre de 2013 3:03
Respuesta

pawan chauhan

Ranking: Junior Member

Mensajes: 75

Fecha de incorporación: 8 de octubre de 2012

Mensajes recientes

Hi Meera,

I was trying to do a similar thing and followed your suggestions line by line .
I am still having the same problem and i have no clue why..

I would appreciate if you can help me out ..

I created a portlet "Product" and the services in that are to be used in two more portlets ...

So I followed all the steps and pasted the product-portlet-service.jar in /tomcat-6.0.16/lib/ext/ ..

Now the portlet "Product-Feedback" that is to use services of "Product" portlet has the required jar under libraries ..
The IDE shows no error when "Product-Feedback" portlet refers to the services of "product" but after i deploy i get the same error ..

here is the JSP I use ..
 1<%
 2       
 3
 4
 5       
 6       
 7
 8int count = ProdCategoryLocalServiceUtil.getProdCategoriesCount();
 9   
10       
11        List<ProdCategory> category = ProdCategoryLocalServiceUtil.getProdCategories(0,count);
12       
13       
14       
15        PortletURL saveUserFeedback = renderResponse.createActionURL();
16        //PortletURL saveUserComments = renderResponse.createActionURL();
17       
18        saveUserFeedback.setParameter(ActionRequest.ACTION_NAME,"saveUserFeedback");
19        //saveUserComments.setParameter(ActionRequest.ACTION_NAME,"saveUserComments");
20       
21        List<ProdSubCateg> subCategoryList =  (List<ProdSubCateg>) renderRequest.getPortletSession().getAttribute("subCategoryList");
22        List<Product> productList =  (List<Product>) renderRequest.getPortletSession().getAttribute("productList");
23
24       
25       
26        %>



and the error I get is ..

 1
 2Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /html/custprodfeedback/view.jsp at line 175
 3
 4172:         
 5173:         
 6174:
 7175: int count = ProdCategoryLocalServiceUtil.getProdCategoriesCount();
 8176:    
 9177:         
10178:         List<ProdCategory> category = ProdCategoryLocalServiceUtil.getProdCategories(0,count);
11
12Caused by: com.liferay.portal.kernel.bean.BeanLocatorException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.test.service.ProdCategoryLocalService' is defined
13    at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:89)
14    at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:47)
15    at com.test.service.ProdCategoryLocalServiceUtil.getService(ProdCategoryLocalServiceUtil.java:278)
16    at com.test.service.ProdCategoryLocalServiceUtil.getProdCategoriesCount(ProdCategoryLocalServiceUtil.java:218)
17    at org.apache.jsp.html.custprodfeedback.view_jsp._jspService(view_jsp.java:406)
18    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
19    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
20    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
21    ... 186 more


I don't understand if IDE shows no error then why do I get error after deployment ..

Please Reply ..
Dhanush B
RE: Use a common service to different portlet
15 de diciembre de 2014 4:45
Respuesta

Dhanush B

Ranking: Junior Member

Mensajes: 55

Fecha de incorporación: 26 de agosto de 2014

Mensajes recientes

Meera Prince:
Hi
We need copy the service layer of first portlet into global class path lib directory which in tomcat.(tomcat/lib/ext). And delete this service layer form from first portlet.
Example:



Producer is one of the plugin portlet and Consumer is second portlet.
Assume we want use Producer Service layer into Consume portlet.
Step: 1
Copy service layer form Producer portlet .Service layer.
path is /Producer-portlet/docroot/WEB-INF/lib/ Producer -service.jar
Step: 2
Paste the Producer -service.jar jar file into tomcat global class path drectory. The path is
/tomcat-6.0.16/lib/ext/ Producer -service.jar
Step: 3
Delete Producer -service.jar file from Producer portlet lib directory. Path is like /Producer-portlet/docroot/WEB-INF/lib/ Producer -service.jar
Step: 4
Deploy the consumer and producer portlets.
Test The Consumer Portlet Application with serviceUtil clasess code. If you get following errors like
ClassCast exception and class not found Exception Do the following thing.
First of all in tomacat server and Delete all files in temp directory and work directory.
Check the Producer-Service.jar file in tomcat global class path that is /tomcat-6.0.16/lib/ext/ Producer -service.jar if not available again we have to add.
Check the Producer lib directory for service jar in fallowing path tomcat-6.0.16\webapps\ Producer -portlet\WEB-INF\lib. If available delete from lib directory.
Start tomcat and check the service layer classes in consumer portlet.


hai meera


i am facing the same issue but i followed your steps but i got one exception i have mentioned that in below please help me how to clear this one.

2:44:24,476 ERROR [http-bio-8080-exec-28][render_portlet_jsp:154] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.slayer.service.PodEngineUserLocalService' is defined
at com.liferay.portal.bean.BeanLocatorImpl.doLocate(BeanLocatorImpl.java:137)
at com.liferay.portal.bean.BeanLocatorImpl.locate(BeanLocatorImpl.java:83)
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:47)
at com.slayer.service.PodEngineUserLocalServiceUtil.getService(PodEngineUserLocalServiceUtil.java:304)
at com.slayer.service.PodEngineUserLocalServiceUtil.getPodEngineUsers(PodEngineUserLocalServiceUtil.java:211)
at com.test.hostandpostPortlet.permission(hostandpostPortlet.java:490)
at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:153)
at com.liferay.util.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:250)
at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:80)
at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:220)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
Jitendra Rajput
RE: Use a common service to different portlet
15 de diciembre de 2014 5:01
Respuesta

Jitendra Rajput

Ranking: Liferay Master

Mensajes: 873

Fecha de incorporación: 7 de enero de 2011

Mensajes recientes

Please create a separate thread if you have any question.

And for sharing service between multiple portlets instead of copying jar to global class path you can specify required-deployment-context in liferay-plugin-package.properties file .

Check below link for example.

http://itsliferay.blogspot.in/2014/04/share-services-between-portlets.html
Dhanush B
RE: Use a common service to different portlet
15 de diciembre de 2014 21:31
Respuesta

Dhanush B

Ranking: Junior Member

Mensajes: 55

Fecha de incorporación: 26 de agosto de 2014

Mensajes recientes

Thanks for your Reply
I will try this one if i face any issue means i will create new thread for that issue.
Thanks and Regards
B.dhanush