• Welcome to KonaKart Community Forum. Please login or sign up.
 

Failed the portlet KonaKark 6.5.0.0 in Liferay 6.1

Started by ivanmmix, February 26, 2013, 02:43:51 pm

Previous topic - Next topic

ivanmmix

Hello,

First of all, thank you very much and forgive the inconvenience.

I'm trying to deploy Liferay 6.1 portlet-Front KonaKart Application Store in a clean install. The version is 6.5.0.0. To do this I performed the following steps:

1. I created the file "konakart.war" with the following command:

      kkant make_liferay_portlet_war-DforStruts2 = true-DnoAxis = true-DLR611 = true

2. I imported "konakart.war" in Eclipse.


3. Create the database in Mysql Store1.
4. Run the script konakart_demo.sql.
5. Set the file KonaKart.Properties with previous data, user and pasword. The connection to the database is correct.


When I try to run it on the server, I get the following error:

GRAVE: El Servlet.service() para servlet default lanzó una excepción
java.io.FileNotFoundException: El recurso requerido /konakart/Welcome.do no se encuentra disponible
   at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:776)
   at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:411)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   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)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
   at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.invoke(LiferayRequestDispatcher.java:175)
   at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:94)
   at org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:375)
   at org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.java:274)
   at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
   at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
   at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
   at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
   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)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
   at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
   at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)
   at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)
   at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1207)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
   at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
   at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
   at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
   at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
   at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
   at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   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.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   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)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
   at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)
   at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:735)
   at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
   at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
   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.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
   at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   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)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
   at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
   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.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
   at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
   at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
   at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
   at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   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)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
   at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:306)
   at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
   at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
   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)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   at org.apache.catalina.valves.Er26-feb 12:51:50 ERROR (StrutsPortlet.java:processRequest:449) unexpected
java.io.FileNotFoundException: El recurso requerido /konakart/Welcome.do no se encuentra disponible

trevor

We are working on "portalising" the new struts 2 storefront application. Currently, only the struts 1 storefront can be converted to a portlet using the ANT task. You can run the struts 2 app in an iFrame portlet.

The struts 2 application cannot use the struts portlet bridge and it uses a lot more AJAX and javascript and a KK tag library which makes the exercise more difficult. However, we have it working in the lab and hopefully it will soon be made available. Our aim this time around is to make a tighter integration with Liferay by providing SSO in the new storefront portlet.

ivanmmix

Thank you very much for responding quickly. Then  I will use the 6.4.0.0 version that works in Liferay 6.1 and wait for your next version.

Thank you very much.

Best regards.

trevor

You can still use 6.5 but only with the struts1 storefront. It's explained in LiferayPortletInstallation.pdf in the doc directory.

ivanmmix

I already tried following the steps above, set for Struts 1:

  kkant make_liferay_portlet_war -DforStruts1=true -DnoAxis=true -DLR611=true

But I get the same bug.  Will you help me?. I do not know which is my error



ming

Have you installed the S1 version over the top of the default S2 version first?

ivanmmix

No, I'm sorry.

Is it a lot of trouble if you can tell me how? . I did not understand it. You mean to run the two commands above, first with Struts 1 and then run it with Structs2

ming

It's in the User Guide:

If you wish to install the Struts 1 version of the Community edition of KonaKart you must run the following installers in this sequence:

• Community Edition Installer (by default this installs the Struts 2 storefront) = KonaKart-6.5.0.0-Windows-Setup.exe, KonaKart-6.5.0.0-Linux-Install or KonaKart-6.5.0.0-Linux-Install-64

• Community Edition Struts 1 storefront Installer = KonaKart_S1-6.5.0.0-Windows-Setup.exe,
KonaKart_S1-6.5.0.0-Linux-Install or KonaKart_S1-6.5.0.0-Linux-Install-64


So you basically install the "S1" installer over the top of the first installation.

After you've done that you can make your portlet as before.

ivanmmix

Ok, thank you very much I'll try.

My last question:
Then, this sequence will generate somewhere a portlet with Struts 1 to deploy in Liferay 6.1?

thank you very much

ivanmmix

Perfect, It's working.

Thank you very much.

Best regards.

ming

Well done ivannmix,  thanks for confirming that  :)   Good luck  :)

naeryeo

Quote from: trevor on February 26, 2013, 02:56:14 pm
We are working on "portalising" the new struts 2 storefront application. Currently, only the struts 1 storefront can be converted to a portlet using the ANT task. You can run the struts 2 app in an iFrame portlet.

The struts 2 application cannot use the struts portlet bridge and it uses a lot more AJAX and javascript and a KK tag library which makes the exercise more difficult. However, we have it working in the lab and hopefully it will soon be made available. Our aim this time around is to make a tighter integration with Liferay by providing SSO in the new storefront portlet.


Hi,

When will a be the struts 2 portlet available?

trevor

It's been available for a while for supported customers. Contact us if you want a copy.

ripp

I finally notice (after hitting my head to wall) that mine problems with portlets are same what described in this thread.
Quote from: trevor on May 28, 2013, 04:31:52 pm
It's been available for a while for supported customers. Contact us if you want a copy.

When its available for all CE users?
QuoteYou can run the struts 2 app in an iFrame portlet.

I could start develoments with IFrame portlet (or with vaadin/BrowserFrame)...but this option need least two tomcat instance(one for LR and one for KK), right? And there could be problems with integrating...

ps. Sorry about bad english

ming

Sorry to hear about you hitting your head against the wall.   Hopefully no serious damage  :'(

I'm not certain but I think this will be available in the next major release (KonaKart v7.0.0.n) which should be out around July/August I expect.

I don't think you would need a 2nd tomcat if you wanted to run the storefront in a frame...  Our Admin App runs another webapp (the birtviewer on the Status page) from the same Tomcat in a frame..   (I don't know if there are restrictions in a Liferay tomcat however).

BTW..  Your English is perfectly-understandable!