KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: lrkwz on January 09, 2010, 12:07:38 am

Title: GWT 2.x in onepagecheckout
Post by: lrkwz on January 09, 2010, 12:07:38 am
I've successfully moved gwt support from 1.5.x to 2.x.

1) Download gwt 2.x (http://code.google.com/intl/it/webtoolkit/download.html (http://code.google.com/intl/it/webtoolkit/download.html))
2) Remove lib/*
3) Copy jar files from the zip you downloaded into lib/
4) Modify build.xml replacing


<target name="run" description="Run it">
<java classname="com.google.gwt.dev.GWTShell"
      fork="true"
      maxmemory="256m"
      failonerror="true">
<arg value="-out" />
<arg value="./www/" />
<arg value="com.konakart.konakart/konakart.html" />
<classpath refid="run.path" />
</java>
</target>


with

<target name="run" description="Run it">
<java classname="com.google.gwt.dev.DevMode"
fork="true"
maxmemory="256m"
failonerror="true">
<arg value="-war" />
<arg value="./www/" />
<arg value="-startupUrl" />
<arg value="com.konakart.Konakart/Konakart.html" />
<arg value="com.konakart.Konakart" />
<classpath refid="run.path" />
</java>
</target>
Title: Re: GWT 2.x in onepagecheckout
Post by: lrkwz on January 09, 2010, 12:12:00 am
and now you can safely compile/debug in Windows AND Linux  without worrying with native dynamic libraries :)

PS:  have a look at Eclipse's GWT plugin (http://code.google.com/intl/it/eclipse/docs/download.html (http://code.google.com/intl/it/eclipse/docs/download.html))
Title: Re: GWT 2.x in onepagecheckout
Post by: lrkwz on January 09, 2010, 12:16:32 am
BTW: launching opc in DevMode (was HostedMode) I had a bad time looking for the cause of "Unable to find/load mapped servlet class server.KKGWTServiceImpl" error ... I switched off konakart and ... et voilĂ  DevMode works smooth and fine!