Support for deployment to an external server

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

Support for deployment to an external server

Postby stsch77 » Fri Mar 20, 2009 3:37 am

Does GWT Designer support the deployment to an external server like JBoss? If not, is such a feature planned for the future?
stsch77
 
Posts: 19
Joined: Fri Feb 27, 2009 10:31 am

Re: Support for deployment to an external server

Postby Eric Clayberg » Fri Mar 20, 2009 11:41 am

stsch77 wrote:Does GWT Designer support the deployment to an external server like JBoss?

No.

stsch77 wrote:If not, is such a feature planned for the future?

We might consider that at some point.

There are on-line descriptions of how to do this with JBoss and with other servers.

In the GWT Designer launch configuration, you can specify the "-noserver" option, if you want to target some other server.
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: Support for deployment to an external server

Postby stsch77 » Sat Mar 21, 2009 12:33 am

Eric Clayberg wrote:We might consider that at some point.


I think this could be a big plus for GWT Designer.

Eric Clayberg wrote:In the GWT Designer launch configuration, you can specify the "-noserver" option, if you want to target some other server.


Yep, but you still have to bring your GWT resources to the external server somehow. It would already be helpful if GWT Designer had such a simple feature as automatically packaging your GWT resources into a war-file (including automatic configuration of web.xml for your RPC servlets) as described in the documentation. What do you think?
stsch77
 
Posts: 19
Joined: Fri Feb 27, 2009 10:31 am

Re: Support for deployment to an external server

Postby Eric Clayberg » Sun Mar 22, 2009 7:01 am

stsch77 wrote:It would already be helpful if GWT Designer had such a simple feature as automatically packaging your GWT resources into a war-file

GWT Designer does have an option to create a WAR file:

http://download.instantiations.com/Desi ... yment.html
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: Support for deployment to an external server

Postby stsch77 » Sun Mar 22, 2009 7:30 am

stsch77 wrote:GWT Designer does have an option to create a WAR file.


Cool. This might be very helpful. Although I am getting an exception when I run this feature:

Buildfile: F:\javasrc\gwtejb\src\de\stsch\gwtejb\build.xml
gwt-compile:
[delete] Deleting directory F:\javasrc\gwtejb\@dot
[java] Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestMatch()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker$CheckingVisitor.findClass(LongFromJSNIChecker.java:195)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker$CheckingVisitor.getMethod(LongFromJSNIChecker.java:223)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker$CheckingVisitor.checkMethodRef(LongFromJSNIChecker.java:100)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker$CheckingVisitor.checkRefs(LongFromJSNIChecker.java:140)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker$CheckingVisitor.endVisit(LongFromJSNIChecker.java:63)
[java] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:242)
[java] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1239)
[java] at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker.check(LongFromJSNIChecker.java:307)
[java] at com.google.gwt.dev.javac.LongFromJSNIChecker.check(LongFromJSNIChecker.java:297)
[java] at com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits(CompilationUnitInvalidator.java:138)
[java] at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:123)
[java] at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
[java] at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)

BUILD FAILED

Any idea what is going wrong here and how to solve it?
stsch77
 
Posts: 19
Joined: Fri Feb 27, 2009 10:31 am

Re: Support for deployment to an external server

Postby Eric Clayberg » Sun Mar 22, 2009 7:54 am

Seeing as that is all GWT and Eclipse code being referenced, it looks like either a installation/configuration issue or some incompatibility between the version of Eclipse and the version of GWT you are using.

It would help to know more about your configuration.
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: Support for deployment to an external server

Postby stsch77 » Sun Mar 22, 2009 10:04 am

Eric Clayberg wrote:It would help to know more about your configuration.


I am using the most recent version of Eclipse (Eclipse IDE for Java EE Developers 3.4.2 - Ganymede) and GWT (1.5.3) on Windows Vista Ulitmate (32 Bit).

Update: Everything seems to work fine when I start with a "GWT Java Project" from scratch. What I did before is converting a "Dynamic Web Project" into a "GWT Project". Maybe that caused some problems.

Yep, this function is already quite helpful. Would have saved a lot of time for me if I had discovered this before ;-)
stsch77
 
Posts: 19
Joined: Fri Feb 27, 2009 10:31 am

Re: Support for deployment to an external server

Postby Eric Clayberg » Tue Mar 24, 2009 1:57 pm

One thing to look at is which jars are on your path.

The exception you had looks like some kind of conflict between two diffrent version of the JDT.
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 2 guests