• Welcome to KonaKart Community Forum. Please login or sign up.
 
February 29, 2024, 02:44:27 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Manu

16
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 !
17
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  ???
18
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.



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


20
Configuration of KonaKart / Changing Product Type
October 14, 2011, 04:51:27 pm
Hi everyone.

My problem is simple : I'd like to create new types of products (using the products_type field). For exemple, I'd like to add a new product type "No shippable product".

In release notes you said "Made the product type search droplist (Admin App Products Panel) configurable using the Hidden Product Types configuration variable." but I can't find this famous "Hidden Product Types configuration variable". Is it in a configuration file or something ?

Thx in advance
21
Hi !

KonaKart is now running into Liferay, and i have created a new portlet with links.
I want to "refresh" the konakart portlet on the good page.



I see that 2degrees website URL are like this :
https://www.2degreesmobile.co.nz/shop?p_p_id=konakart_portlet_WAR_konakart_portlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_konakart_portlet_WAR_konakart_portlet__spage=%2FSelectProd.do&_konakart_portlet_WAR_konakart_portlet__sorig=%2FSelectCat.do%3FcatId%3D21&productId=141

So, I create the links in my portlet like this :

<a href="<liferay:actionURL portletName="konakart_WAR_konakart" portletMode="view">
<liferay:param name="_spage" value="/SelectCat.do?catId=22"/>
<liferay:param name="catId" value="22"/>
<liferay:param name="_sorig" value="/SelectCat.do?catId=22"/>
</liferay:actionURL>">
Tools</a>


But when I click on my link, the portlet stay on the Welcome.do page.

How tell to the portlet to call the specific action (here SelectCat.do) ? And to get parameters like catId, do i have to modify the SelectCategoryAction or it must work with the original version ?

22
Ok , it works ! Thanks !  ;)
23
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 ?

24
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 !
25
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
26
Oui en effet en regardant bien la valeur dans le PATH était pas la bonne,
J'avais C:\WINDOWS\Program Files au lieu de C:\Program Files directement.

J'arrive à taper Javac directement dans la console. Par contre j'ai toujours l'erreur quand j'exécute le ant.

Je cherche encore ...
27
And Fyi, i've tried  Javac on a test file .java and itw works

and java -version :

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
28
Hi all,

I try to add an  « About Us » page on my Konakart Installation. [KonaKart V5.2.0.0 (6216)]

So, I've edited the struts-config.xml file :


<action path="/AboutUs" type="com.konakart.actions.AboutUsAction">
<forward name="AboutUs" path="/CatalogAboutUsPage.do"/>
</action>


and


<action path="/CatalogAboutUsPage" forward="catalog.aboutus.page"/>


I have edited the tiles-def.xml file :

<definition name="catalog.aboutus.page" extends="main.layout">
<put name="body" value="/WEB-INF/jsp/AboutUs.jsp"/>
</definition>


And I've created my AboutUsAction in /custom/appn/src/com/konakart/actions directory :


package com.konakart.actions;

public class AboutUsAction extends BaseAction {

    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
    {
        KKAppEng kkAppEng;
try {
kkAppEng = this.getKKAppEng(request, response);
        kkAppEng.nav.set(getCatMessage(request, "header.aboutus"), request);
} catch (Exception e) {
            return mapping.findForward(super.handleException(request, e));
}

return mapping.findForward("AboutUs");
    }
}


But when I click on my link
<html:link page="/AboutUs.do"> <bean:message key="information.tile.aboutus"/> </html:link>

I get that error :

[ERROR] RequestProcessor - No action instance for path /AboutUs could be created <java.lang.ClassNotFoundException: com.konakart.actions.AboutUsAction>java.lang.ClassNotFoundException: com.konakart.actions.AboutUsAction



I think it's because the AboutUsAction.class file is not in the konakart_custom.jar  in WEB-INF/lib (Is it ?)

So I tried to run ant in custom dir to "update" the .jar (Is it the good way ?) but I get this error :


Buildfile: build.xml

clean_torque_classes:

clean_portlet_war:
     [echo] Cleanup portlet WARs...
     [echo] Cleanup portlet WAR staging area...

clean_admin_portlet_war:
     [echo] Cleanup admin portlet WARs...
     [echo] Cleanup admin portlet WAR staging area...

clean_wars:
     [echo] Cleanup WARs...
     [echo] Cleanup EARs...

clean:
     [echo] Cleanup...

generate_torque_java:

create_torque_classes:

make_manifest_file:
     [echo] Create the MANIFEST.MF file for all jars

compile:
     [echo] Compile the customisable application code
    [mkdir] Created dir: C:\Program Files\KonaKart\custom\appn\classes
    [javac] Compiling 137 source files to C:\Program Files\KonaKart\custom\appn\classes

BUILD FAILED
C:\Program Files\KonaKart\custom\build.xml:257: Error running C:\Program Files\Java\jdk1.6.0_26\bin\javac.exe compiler

Total time: 0 seconds


I look on the Internet but I didn't find an answer.

Currently my JAVA_HOME is : C:\Program Files\Java\jdk1.6.0_26
And my PATH is C:\WINDOWS\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\system32;C:\WINDOWS;[...]

(I didn't modify the build.xml file) I don't know how to have more information about this error.

Does anybody has an idea ?  :-[

Thanks,
Manu

(Sorry for my english but I'm French  :-X )