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

GWT 2.x in onepagecheckout

Started by lrkwz, January 09, 2010, 12:07:38 am

Previous topic - Next topic

lrkwz

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

lrkwz

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)

lrkwz

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!