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

KonaKart is temporarily unavailable. [Liferay 6.0]

Started by Manu, October 12, 2011, 09:32:49 am

Previous topic - Next topic

Manu

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

ryan

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 ?

Manu

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 !

kate

You add them to the ANT command line when making the WAR

Manu

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 ?


ryan

Try reading the documentation (LiferayPortletInstallation.pdf) under konakart\doc .

Manu


Manu

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 ?



kate

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.  :)

Manu

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.




kate


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?

Manu

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  ???

Manu

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 !