KonaKart Community Forum

Installation / Configuration => Using KonaKart as a Portlet => Topic started by: Manu on October 12, 2011, 09:32:49 am

Title: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 12, 2011, 09:32:49 am
Hi all,

I've made the konakart.war file and deployed it into Liferay 6.0.

But in my new page 'products' created on Liferay, when i add KonaKart, i get an error message : "KonaKart is temporarly unavailable" (I access to this page with http://localhost:8080/web/guest/products)

If i try yo access to http://localhost:8080/konakart/Welcome.do, the website runs correctly.

In my Liferay log file i get this error :
08:25:27,448 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:799)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:373)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:50)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.invoke(LiferayRequestDispatcher.java:169)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:98)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:85)
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)


Do you have an idea about this issue ?  ???

Thanks,
Manu
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: ryan on October 12, 2011, 09:57:57 am
No. I ran it yesterday on Liferay 6.0.6 and it worked fine. Did you make the WAR on our standard demo app or customize it before making the WAR? Did you add the flags -DnoAXIS=true -DLR606=true ?
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 12, 2011, 10:21:13 am
Hi, thanks for your reply !

Where can I add these flags ?

I've made some little customizations but i don't think it's the reason of the prroblem. If i still get the error with the flags i will try with a new installation of KonaKart to be sure !
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: kate on October 12, 2011, 10:27:43 am
You add them to the ANT command line when making the WAR
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 12, 2011, 10:48:39 am
I get an ClassCast Exception when the war is deploying :

org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:277)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:174)
at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:280)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:563)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:174)
at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:280)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:563)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:174)
at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:280)

at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:174)
at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:280)

at org.apache.axis.AxisEngine.init(AxisEngine.java:174)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at com.liferay.util.axis.AxisServlet.doInit(AxisServlet.java:174)
at com.liferay.util.axis.AxisServlet$InitThread.run(AxisServlet.java:280)



I have to remove the server-config.wsdd file into konakart.war/WEB-INF ?

Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: ryan on October 12, 2011, 11:20:10 am
Try reading the documentation (LiferayPortletInstallation.pdf) under konakart\doc .
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 12, 2011, 01:02:16 pm
Ok , it works ! Thanks !  ;)
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 19, 2011, 10:14:52 am
I've tried with a new installation of KonaKart (EE v5.7) and a new installation of Liferay (6.0 SP2 EE Build 6012 July 27, 2011)

KonaKart runs on its own Tomcat.

I do
.\bin\ant make_liferay_portlet_war -DnoAXIS=true
or
.\bin\ant make_liferay_portlet_war -DnoAXIS=true -DLR=606

But when i put the custom/portlet_war/konakart.war archive into deploy folder, i get the message error 'KonaKart is temporarly unavailable' in Liferay and the log file contains the same stack trace than in my first post

09:00:50,372 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:799)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:373)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:50)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.invoke(LiferayRequestDispatcher.java:169)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:98)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:85)
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)



The only solution is to run
.\bin\ant make_wars
and copy custom/war/konakart.war into liferay deploy folder
With that .war file KonaKart runs into Liferay.


What is the difference between using make_wars and make_liferay_portlet_war ?


Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: kate on October 19, 2011, 10:28:53 am
QuoteWhat is the difference between using make_wars and make_liferay_portlet_war ?


If you look at the ANT build file you'll see big differences.  make_wars makes wars from your standard webapps under tomcat (in the default KonaKart installation) whereas make_liferay_portlet_war makes a WAR specifically for Liferay.

Hence I'm rather surprised by your observations however if you got that to work that's great.  :)
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 19, 2011, 10:45:31 am
Yes, i see that there are some xml files added for liferay but my question is not the good.

I would like to know the difference between running the custom/portlet_war/konakart.war  and  custom/war/konakart.war in Liferay ? ( All functionalities are available ? .... )
Do they have the same "behaviour".

I don't understand why the custom/war/konakart.war runs but not custom/portlet_war/konakart.war which is specifically for Liferay.



Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: kate on October 19, 2011, 04:48:47 pm

No functionality is stripped from any of the WARs that are produced.   We do need to change a few things for different platforms to get them to work which is why there are special ANT targets plus special options.  You can see exactly what's done for each target by referring to the ANT build file.

QuoteI don't understand why the custom/war/konakart.war runs


It shouldn't run successfully in liferay.  Is it possible that you didn't deploy the one you thought you deployed?
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 20, 2011, 02:07:22 pm
Currently the deployed WAR is the one created by make_wars command because it doesn't contain xml files for Liferay and in Liferay its category is Undefined

With make_liferay_portlet_war command, the deployed WAR is in the category Sample in Liferay. So it's sure that if the good war i deployed.

I still investigate  ???
Title: Re: KonaKart is temporarily unavailable. [Liferay 6.0]
Post by: Manu on October 21, 2011, 02:42:13 pm
Fyi, i've made a new try with Liferay 6.0.6 Community Edition and all works fine with the custom/portlet_war/konakart.war

It seems there is a problem with the Liferay version 6.0 SP2 EE Build 6012 July 27, 2011  ???

I'll continue with 6.0.6 !

Thanks for your patience !