Export As WAR

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Export As WAR

Postby ashouric » Sat Sep 30, 2006 9:22 pm

Dear All,

It would nice to have an automatic way of exporting the project as WAR, either by using Eclipse Export feature, or at least by having a generated ant build.

Many thanks.
ashouric
 
Posts: 75
Joined: Sat Sep 30, 2006 9:13 pm

Re: Export As WAR

Postby Eric Clayberg » Sun Oct 01, 2006 4:51 am

ashouric wrote:It would nice to have an automatic way of exporting the project as WAR, either by using Eclipse Export feature, or at least by having a generated ant build.

We are looking into doing this and other deployment options (either for the initial release or a subsequent update).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

several modules in project/package groups post

Postby ashinw » Wed Oct 04, 2006 5:21 pm

ashinw
 
Posts: 1
Joined: Thu Sep 28, 2006 12:41 pm

Re: several modules in project/package groups post

Postby Eric Clayberg » Thu Oct 05, 2006 5:24 pm

The latest GWT Designer build now includes a Deploy module command on the main toolbar (active when the module class is selected).

Image

Image

This command will generate a WAR file and copy it to whatever server path you specify. It also creates a reusable ANT script that you can use to regenerate and redeploy the WAR file.

Image

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Deploy problems

Postby tom_markel » Thu Oct 19, 2006 6:52 am

I had to create a /bin and /src directory before the deploy would work. also Why can't you just select the project and then do a deploy. I had to select either the client or server package and then I see the 'Deploy Module' option.
tom_markel
 
Posts: 18
Joined: Fri Oct 06, 2006 5:52 am

Another problem: server classes missing from the WAR

Postby tom_markel » Thu Oct 19, 2006 8:37 am

I am doing a deploy anddo not see my server classes (services) in the WAR
tom_markel
 
Posts: 18
Joined: Fri Oct 06, 2006 5:52 am

Re: Deploy problems

Postby Konstantin.Scheglov » Thu Oct 19, 2006 11:59 pm

tom_markel wrote:I had to create a /bin and /src directory before the deploy would work. also Why can't you just select the project and then do a deploy. I had to select either the client or server package and then I see the 'Deploy Module' option.


Now GWT Designer will export all source and binary folders, not just /src and /bin.
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: Another problem: server classes missing from the WAR

Postby Konstantin.Scheglov » Fri Oct 20, 2006 12:01 am

tom_markel wrote:I am doing a deploy anddo not see my server classes (services) in the WAR


If you've just added empty /src and /bin folders to disable error that they can not be found, this is source of this problem. GWT Designer just export only files from these folders.

In any case, see my previous error, your original problem solved. So, grab new build of GWT Designer and check it. :-)
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Export works but no additional files

Postby cwang » Sat Oct 21, 2006 3:37 pm

Hello,

I thought I'd mention that the export worked for me, however, my other jar files (external libraries) weren't exported.

It's simple enough to add it in the build file, but I thought I'd mention it since the normal export command in eclipse does include these.

Thanks,
Chris
cwang
 
Posts: 6
Joined: Sat Oct 21, 2006 3:34 pm

Re: Export works but no additional files

Postby Eric Clayberg » Sun Oct 22, 2006 6:20 pm

cwang wrote:I thought I'd mention that the export worked for me, however, my other jar files (external libraries) weren't exported.

It's simple enough to add it in the build file, but I thought I'd mention it since the normal export command in eclipse does include these.

Try this again with the latest GWT Designer build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Export works but no additional files

Postby cwang » Mon Oct 23, 2006 7:39 am

Eric Clayberg wrote:Try this again with the latest GWT Designer build.


This didn't seem to work for me. It appears that the paths are not being replaced correctly (an absolute/relative path issue).

For example, I've added a couple libraries at the location:
C:/Documents and Settings/Chris/workspace/cb/WEB-INF/lib/myJar.jar

but the build file in the target "war", copy todir, fileset tag has:

C:/Documents and Settings/Chris/workspace/Documents and Settings/Chris/workspace/cb/WEB-INF/lib/myJar.jar
cwang
 
Posts: 6
Joined: Sat Oct 21, 2006 3:34 pm

Re: Export works but no additional files

Postby Eric Clayberg » Tue Oct 24, 2006 4:27 am

Fixed, now we support jar files that are outside of the project.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

How to export connected projects?

Postby Serge » Mon Oct 30, 2006 12:00 pm

My GWT services need code from 2 other projects that I have in Eclipse. GWT deployment tool does not include the required projects into the war. I've tried listing them everywhere: in Java Build Path>Projects, >Libraries, >Order and Export, in Project References - nothing helps.
Serge (gymgoal.com)
Serge
 
Posts: 11
Joined: Fri Oct 27, 2006 10:31 am

Re: How to export connected projects?

Postby Eric Clayberg » Wed Nov 01, 2006 1:48 pm

Serge wrote:My GWT services need code from 2 other projects that I have in Eclipse. GWT deployment tool does not include the required projects into the war. I've tried listing them everywhere: in Java Build Path>Projects, >Libraries, >Order and Export, in Project References - nothing helps.

This should now work in the latest build.

Now we will also export all of the referenced projects as jar's in the same WAR.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests