I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
plugin. I create a new maven project with gwt-maven-plugin archetype,
but I'm not able to communicate client side with server side. I've
read the same problem is happened other people but no solution.
I'm trying to debug the sample application with gwt:debug goal and
then "Run remote java application" in "Debug configuration". I don't
know if I am doing anything wrong. Any idea?
Thank you and sorry for my English.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Not at all, see:
http://mojo.codehaus.org/gwt-maven-plugin/
--
Best Regards
Piotr Jaroszyński
like this
<profile>
<id>compileJS</id>
<properties>
<compileStyle>OBFUSCATED</compileStyle>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>JavaToJavaScript</id>
<phase>generate-resources</phase>
<configuration>
<tasks unless="skipCompileJS">
<property name="classpath" refid="maven.compile.classpath" /
>
<property name="web.dir" value="src/main/webapp" />
<echo message="classpath : ${classpath}" /
>
<delete quiet="true">
<fileset dir="${web.dir}/${gwt.module.name}" includes="**/
*.*" />
</delete>
<delete quiet="true" dir="${project.build.directory}/$
{project.build.finalName}/sprinta" />
<!--<delete quiet="true">
<fileset dir="${web.dir}/
sprinta" includes="**/*.*"/>
</delete>-->
<java classname="com.google.gwt.dev.Compiler" fork="true"
failonerror="true">
<classpath>
<path refid="maven.compile.classpath" />
<pathelement location="src/main/java" />
</classpath>
<arg value="-localWorkers" />
<arg value="2" />
<arg value="-war" />
<arg value="${web.dir}" />
<arg value="-style" />
<!--<arg value="DETAILED" />-->
<!-- -->arg value="PRETTY" /-->
<arg value="${compileStyle}" />
<arg value="${gwt.module.name}" />
<jvmarg value="-XstartOnFirstThread" />
<jvmarg value="-Xss1024k" />
<jvmarg value="-Xmx512M" />
</java>
<delete quiet="true">
<fileset dir="${web.dir}/
sprinta" includes="**/*.*" />
</delete>
<copy todir="${web.dir}/sprinta">
<fileset dir="${web.dir}/${gwt.module.name}">
<include name="**/*" />
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
On Mar 18, 8:45 pm, Piotr Jaroszyński <p.jaroszyn...@gmail.com> wrote:
Sincerely
Zhu, Guojun
On Mar 18, 3:45 pm, Piotr Jaroszyński <p.jaroszyn...@gmail.com> wrote:
Michael
On 21 mar, 03:03, zggame <zgg...@gmail.com> wrote:
> I am fairly new to maven. I might miss something in their
> description. Do you just need to change
> <gwt.version>1.6.4</gwt.version> to 2.0? thanks.
>
> Sincerely
> Zhu, Guojun
>
> On Mar 18, 3:45 pm, Piotr Jaroszyñski <p.jaroszyn...@gmail.com> wrote:
>
>
>
> > On 18 March 2010 19:28, Sergio <s3rgio...@gmail.com> wrote:
>
> > > So, I have to use GWT 1.6.4 to develop my GWT project with maven?
>
> > Not at all, see:http://mojo.codehaus.org/gwt-maven-plugin/
>
> > --
> > Best Regards
> > Piotr Jaroszyñski
--
Will Temperley
On Mar 23, 3:37 pm, Keith Platfoot <kplatf...@google.com> wrote:
> Hi Bert,
>
> I converted the GWT starter app into a Maven project (see attachment), which
> might serve as a good starting point for you. It uses GWT 2.0.3,
> gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1. I've also
> included an Eclipse project and launch configuration. To import the
> project:
>
> - Ensure you have Eclipse for Java EE installed
> - Create a server adapter for the project (right-click in Servers via and
> select New). I used Tomcat, which runs on port 8080 (this needs to be
> reflected in the Web Application launch configuration)
> - Create an M2_REPO classpath variable pointing to your Maven repository
> (Preferences > Java > Build Path).
> - Because the project references the GWT jars from the Maven repo instead
> of a standard GWT SDK installation, you'll probably get a spurious error on
> the project which you can suppress via Preferences > Google >
> Errors/Warnings > Project structure and SDKs > Missing SDK.
>
> Keith
>
> On Wed, Mar 17, 2010 at 11:06 AM, Bert <roexb...@gmail.com> wrote:
> > I'm also very interested in setting up a Project like this.
> > Any sample code from anyone?
>
> > On Mar 17, 1:44 am, zggame <zgg...@gmail.com> wrote:
> > > I think the latest gwt-maven-plugin is gwt 1.6.4. Not 2.0.3
>
> > > On Mar 15, 3:30 pm, Sergio <s3rgio...@gmail.com> wrote:
>
> > > > Hello everybody, I'm beginning with GWT development and I have a
> > > > problem.
>
> > > > I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
> > > > plugin. I create a new maven project with gwt-maven-plugin archetype,
> > > > but I'm not able to communicate client side with server side. I've
> > > > read the same problem is happened other people but no solution.
>
> > > > I'm trying to debug the sample application with gwt:debug goal and
> > > > then "Run remote java application" in "Debug configuration". I don't
> > > > know if I am doing anything wrong. Any idea?
>
> > > > Thank you and sorry for my English.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
> MavenAppRpc.zip
> 21KViewDownload
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
Trying to follow the instructions I cannot find a URL field in the GWT
tab & I'm not asked for the war directory
1. and on the GWT tab change the URL field to point to your server
(e.g. http://localhost:8080/WebApp).
2. Run/Debug your new launch configuration. The first time you do
this, you'll have to select the location of the WAR directory that WTP
is publishing to (this is configurable, but by default it is
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/
wtpwebapps/<project>).
I've installed a fresh tomcat 6.0 which does run the hosted mode
correctly without
executing the steps that I could not perform before.
If I use the mvn clean package goal, I can also run the generated war
in my tomcat 5.5.
Is it known that hosted mode does not work for tomcat 5.5?
And in my hosted mode I saw that the GWT contents do not get loaded.
I only get the static text to display, not the GWT textbox/Button.
If I run a packaged version of the war in my tomcat, I do see the GWT
textbox/Button and I'm able
to perform the RPC call.
Anyone familiar with this? Am I Missing some set-up for running the
hosted mode?
On 23 mrt, 16:37, Keith Platfoot <kplatf...@google.com> wrote:
> Hi Bert,
>
> I converted the GWT starter app into a Maven project (see attachment), which
> might serve as a good starting point for you. It uses GWT 2.0.3,
> gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1. I've also
> included an Eclipse project and launch configuration. To import the
> project:
>
> - Ensure you have Eclipse for Java EE installed
> - Create a server adapter for the project (right-click in Servers via and
> select New). I used Tomcat, which runs on port 8080 (this needs to be
> reflected in the Web Application launch configuration)
> - Create an M2_REPO classpath variable pointing to your Maven repository
> (Preferences > Java > Build Path).
> - Because the project references the GWT jars from the Maven repo instead
> of a standard GWT SDK installation, you'll probably get a spurious error on
> the project which you can suppress via Preferences > Google >
> Errors/Warnings > Project structure and SDKs > Missing SDK.
>
> Keith
>
> On Wed, Mar 17, 2010 at 11:06 AM, Bert <roexb...@gmail.com> wrote:
> > I'm also very interested in setting up a Project like this.
> > Any sample code from anyone?
>
> > On Mar 17, 1:44 am, zggame <zgg...@gmail.com> wrote:
> > > I think the latest gwt-maven-plugin is gwt 1.6.4. Not 2.0.3
>
> > > On Mar 15, 3:30 pm, Sergio <s3rgio...@gmail.com> wrote:
>
> > > > Hello everybody, I'm beginning with GWT development and I have a
> > > > problem.
>
> > > > I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
> > > > plugin. I create a new maven project with gwt-maven-plugin archetype,
> > > > but I'm not able to communicate client side with server side. I've
> > > > read the same problem is happened other people but no solution.
>
> > > > I'm trying to debug the sample application with gwt:debug goal and
> > > > then "Run remote java application" in "Debug configuration". I don't
> > > > know if I am doing anything wrong. Any idea?
>
> > > > Thank you and sorry for my English.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
> MavenAppRpc.zip
> 21KWeergevenDownloaden
You refer to using the src/main/webapp to being the base of your
hosted mode, but how do you make the code compile GWT to that folder
and how do you add the dependencies (libs) to the meta-inf lib folder?
The reason for me being unable to use the GWT items/code is because
it's not
in the src/main/webapp folder...
Sorry for the noobie question, I understand that mvn package does al
this in the target folder, but how do you force the project to create/
update this
for the src/main/webapp folder which will serve as war directory used
by the hosted mode?
Regards
Bert
On Mar 25, 9:49 pm, Bert <roexb...@gmail.com> wrote:
> Keith,
>
> Trying to follow the instructions I cannot find a URL field in theGWT
> tab & I'm not asked for the war directory
>
> 1. and on theGWTtab change the URL field to point to your server
> (e.g.http://localhost:8080/WebApp).
> 2. Run/Debug your new launch configuration. The first time you do
> this, you'll have to select the location of the WAR directory that WTP
> is publishing to (this is configurable, but by default it is
> <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/
> wtpwebapps/<project>).
>
> I've installed a fresh tomcat 6.0 which does run the hosted mode
> correctly without
> executing the steps that I could not perform before.
>
> If I use the mvn clean package goal, I can also run the generated war
> in my tomcat 5.5.
>
> Is it known that hosted mode does not work for tomcat 5.5?
>
> And in my hosted mode I saw that theGWTcontents do not get loaded.
> I only get the static text to display, not theGWTtextbox/Button.
>
> If I run a packaged version of the war in my tomcat, I do see theGWT
> textbox/Button and I'm able
> to perform the RPC call.
>
> Anyone familiar with this? Am I Missing some set-up for running the
> hosted mode?
>
> On 23 mrt, 16:37, Keith Platfoot <kplatf...@google.com> wrote:
>
> > Hi Bert,
>
> > I converted theGWTstarter app into aMavenproject (see attachment), which
> > might serve as a good starting point for you. It usesGWT2.0.3,
> >gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1. I've also
> > included an Eclipse project and launch configuration. To import the
> > project:
>
> > - Ensure you have Eclipse for Java EE installed
> > - Create a server adapter for the project (right-click in Servers via and
> > select New). I used Tomcat, which runs on port 8080 (this needs to be
> > reflected in the Web Application launch configuration)
> > - Create an M2_REPO classpath variable pointing to yourMavenrepository
> > (Preferences > Java > Build Path).
> > - Because the project references theGWTjars from theMavenrepo instead
> > of a standardGWTSDK installation, you'll probably get a spurious error on
> > the project which you can suppress via Preferences > Google >
> > Errors/Warnings > Project structure and SDKs > Missing SDK.
>
> > Keith
>
> > On Wed, Mar 17, 2010 at 11:06 AM, Bert <roexb...@gmail.com> wrote:
> > > I'm also very interested in setting up a Project like this.
> > > Any sample code from anyone?
>
> > > On Mar 17, 1:44 am, zggame <zgg...@gmail.com> wrote:
> > > > I think the latestgwt-maven-plugin isgwt1.6.4. Not2.0.3
>
> > > > On Mar 15, 3:30 pm, Sergio <s3rgio...@gmail.com> wrote:
>
> > > > > Hello everybody, I'm beginning withGWTdevelopment and I have a
> > > > > problem.
>
> > > > > I've already configured Eclipse 3.5 withgwtplugin and m2eclipse
> > > > > plugin. I create a newmavenproject withgwt-maven-plugin archetype,
> > > > > but I'm not able to communicate client side with server side. I've
> > > > > read the same problem is happened other people but no solution.
>
> > > > > I'm trying to debug the sample application withgwt:debug goal and
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
<build>
<!-- Package also the java sources-->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
<include>**/*.gwt.xml</include>
<!-- Used for UIBinder -->
<include>**/*.ui.xml</include>
<include>**/*.css</include>
<include>**/*.png</include>
<include>**/*.gif</include>
</includes>
</resource>
<resource>
<directory>target/generated-sources/gwt</directory>
<includes>
<include>**/*.java</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
<plugins>
<!--GWT Tests-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>${project.build.sourceDirectory}</additionalClasspathElement>
<additionalClasspathElement>${project.build.testSourceDirectory}</additionalClasspathElement>
</additionalClasspathElements>
<useManifestOnlyJar>false</useManifestOnlyJar>
<forkMode>once</forkMode>
<reportFormat>xml</reportFormat>
<systemProperties>
<property>
<name>gwt.args</name>
<value>-out target/www</value>
</property>
<property>
<name>java.awt.headless</name>
<value>true</value>
</property>
<property>
<name>java.awt.headless</name>
<value>true</value>
</property>
</systemProperties>
<argLine>-Xmx512m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/generated-sources/gwt</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
--
I tried updating the google plugin to version 1.3.2 but after the
update,
not all of the features in the plugin were enabled for me.
I've spend a lot of time trying to get a sample project working
without success.
After using a clean eclipse with a clean google plugin installation
(make sure you use version 1.3.2 of the plugin).
The sample app ran without any problem.
On 22 mrt, 21:46, Keith Platfoot <kplatf...@google.com> wrote:
> Hi Sergio,
>
> Just wanted to mention that we've just released the 1.3.1 version of the
> Google Plugin for Eclipse, which has much better interoperability with
> GWT+Maven projects. We even have a new FAQ dedicated to this scenario:
>
> http://code.google.com/eclipse/docs/faq.html#gwt_with_maven
>
> As of 1.3, it is easy to debug your Maven project's GWT code with a regular
> Web Application launch configuration. If you're using Eclipse for Java EE,
> you can also get automatic refresh when your source code or static resources
> (HTML, CSS, etc.) change. Unlike previous versions of the Eclipse plugin,
> you can now customize your project's configured WAR directory (e.g. set it
> to 'src/main/webapp') and specify that it should be used as input-only (per
> Maven convention).
>
> Keith
>
> On Mon, Mar 15, 2010 at 4:30 PM, Sergio <s3rgio...@gmail.com> wrote:
> > Hello everybody, I'm beginning with GWT development and I have a
> > problem.
>
> > I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
> > plugin. I create a new maven project with gwt-maven-plugin archetype,
> > but I'm not able to communicate client side with server side. I've
> > read the same problem is happened other people but no solution.
>
> > I'm trying to debug the sample application with gwt:debug goal and
> > then "Run remote java application" in "Debug configuration". I don't
> > know if I am doing anything wrong. Any idea?
>
> > Thank you and sorry for my English.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
http://github.com/davisford/gwt-demo
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977