Re: GWT 2.8.2 and Jetty Embedded - com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
Thank you Thomas. This is super helpful. Chris On Tuesday, February 27, 2018 at 7:18:12 AM UTC-5, Thomas Broyer wrote: > > See https://github.com/tbroyer/gwt-maven-archetypes > You'll have to update things a bit of course as these generate WARs that > you run in development with the jetty-maven-plugin; for instance, using an > embedded server would require a dependency:unpack{,-dependencies} and/or > using the maven-assembly-plugin instead of using a war overlay. > > On Monday, February 26, 2018 at 8:53:57 PM UTC+1, Chris wrote: >> >> Thanks Thomas, can you point me to any examples of GWT projects split >> into multiple maven modules? >> I'll head that route. >> >> Thanks again. >> Chris >> >> >> On Monday, February 26, 2018 at 2:03:29 PM UTC-5, Thomas Broyer wrote: >>> >>> apache-jsp brings Eclipse JDT, which causes the conflict. >>> >>> As you're using Mojo's plugin for GWT,you can configure it to put GWT >>> dependencies first in the classpath; that should fix the conflict. >>> >>> But you really should split this project into two or three modules, with >>> separate dependency trees for client and server code. That would >>> automatically clean all such conflicts. >>> >>> -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT 2.8.2 and Jetty Embedded - com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
See https://github.com/tbroyer/gwt-maven-archetypes You'll have to update things a bit of course as these generate WARs that you run in development with the jetty-maven-plugin; for instance, using an embedded server would require a dependency:unpack{,-dependencies} and/or using the maven-assembly-plugin instead of using a war overlay. On Monday, February 26, 2018 at 8:53:57 PM UTC+1, Chris wrote: > > Thanks Thomas, can you point me to any examples of GWT projects split into > multiple maven modules? > I'll head that route. > > Thanks again. > Chris > > > On Monday, February 26, 2018 at 2:03:29 PM UTC-5, Thomas Broyer wrote: >> >> apache-jsp brings Eclipse JDT, which causes the conflict. >> >> As you're using Mojo's plugin for GWT,you can configure it to put GWT >> dependencies first in the classpath; that should fix the conflict. >> >> But you really should split this project into two or three modules, with >> separate dependency trees for client and server code. That would >> automatically clean all such conflicts. >> >> -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT 2.8.2 and Jetty Embedded - com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
Thanks Thomas, can you point me to any examples of GWT projects split into multiple maven modules? I'll head that route. Thanks again. Chris On Monday, February 26, 2018 at 2:03:29 PM UTC-5, Thomas Broyer wrote: > > apache-jsp brings Eclipse JDT, which causes the conflict. > > As you're using Mojo's plugin for GWT,you can configure it to put GWT > dependencies first in the classpath; that should fix the conflict. > > But you really should split this project into two or three modules, with > separate dependency trees for client and server code. That would > automatically clean all such conflicts. > > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT 2.8.2 and Jetty Embedded - com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
apache-jsp brings Eclipse JDT, which causes the conflict. As you're using Mojo's plugin for GWT,you can configure it to put GWT dependencies first in the classpath; that should fix the conflict. But you really should split this project into two or three modules, with separate dependency trees for client and server code. That would automatically clean all such conflicts. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT 2.8.2 and Jetty Embedded - com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
I've got a real simple scaled down GWT application (to illustrate the issue) with Jetty Embedded Server (9.4.7.v20170914), it can be downloaded here: This works fine when running under 2.7.0. Unfortunately, when I upgrade to 2.8.2, I'm getting an error during the GWT compilation stage. See below. Any suggestions in how I can fix this? It seems like there is a conflict between Jetty deps and GWT 2.8.2 deps and I probably need some kind of exclude, but I'm not super familiar with maven enough to tell it how to exclude what it needs so this compiles. The simple application be be downloaded from: https://www.dropbox.com/s/1myj5o3dpq9bzxt/gwt_jetty.zip?dl=0 Really appreciate any help in this. Thanks, Chris Here is the GWTC output: *--- *gwt-maven-plugin:2.8.2:compile *(default)* @ my-app* ---* [*INFO*] Compiling module com.mycompany.app.MyWebApp [*INFO*] [ERROR] An internal compiler exception occurred [*INFO*] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST [*INFO*] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3997) [*INFO*] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1569) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.MessageSend.traverse(MessageSend.java:1021) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.Assignment.traverse(Assignment.java:260) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java:136) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse(IfStatement.java:281) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:347) [*INFO*] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1379) [*INFO*] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3933) [*INFO*] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3971) Here is what my dependency tree looks like this: mvn dependency:tree -Dverbose=true [*INFO*] Scanning for projects... [*WARNING*] [*WARNING*] Some problems were encountered while building the effective model for com.mycompany.app:my-app:jar:1.0-SNAPSHOT [*WARNING*] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 173, column 21 [*WARNING*] [*WARNING*] It is highly recommended to fix these problems because they threaten the stability of your build. [*WARNING*] [*WARNING*] For this reason, future Maven versions might no longer support building such malformed projects. [*WARNING*] [*INFO*] [*INFO*] ** [*INFO*] *Building Maven Archetype for GWT 1.0-SNAPSHOT* [*INFO*] ** [*INFO*] [*INFO*] *--- *maven-dependency-plugin:2.8:tree *(default-cli)* @ my-app* ---* [*INFO*] com.mycompany.app:my-app:jar:1.0-SNAPSHOT [*INFO*] +- junit:junit:jar:4.11:test [*INFO*] | \- org.hamcrest:hamcrest-core:jar:1.3:test [*INFO*] +- org.eclipse.jetty:jetty-server:jar:9.4.7.v20170914:compile [*INFO*] | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile [*INFO*] | +- org.eclipse.jetty:jetty-http:jar:9.2.14.v20151106:compile (version managed from 9.4.7.v20170914) [*INFO*] | | \- (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:compile - omitted for conflict with 9.4.7.v20170914) [*INFO*] | \- org.eclipse.jetty:jetty-io:jar:9.2.14.v20151106:compile (version managed from 9.4.7.v20170914) [*INFO*] | \- (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:compile - omitted for duplicate) [*INFO*] +- org.eclipse.jetty:jetty-annotations:jar:9.4.7.v20170914:compile [*INFO*] | +- org.eclipse.jetty:jetty-plus:jar:9.2.14.v20151106:compile (version managed from 9.4.7.v20170914) [*INFO*] | | +- (org.eclipse.jetty:jetty-webapp:jar:9.2.14.v20151106:compile - version managed from 9.4.7.v20170914; omitted for duplicate) [*INFO*] | | \- org.eclipse.jetty:jetty-jndi:jar:9.2.14.v20151106:compile [*INFO*] | | \- (org.eclipse.jetty:jetty-util:jar:9.2.14.v20151106:compile - omitted for duplicate) [*INFO*] | +- (org.eclipse.jetty:jetty-webapp:jar:9.2.14.v20151106:compile - version managed from 9.4.7.v20170914; omitted for conflict with 9.4.7.v20170914) [*INFO*] | +- javax.annotation:javax.annotation-api:jar:1.2:compile [*INFO*] | +- org.ow2.asm:asm:jar:5.0.3:compile (version managed from 5.1) [*INFO*] | \- org.ow2.asm:asm-commons:jar:5.0.3:compile (version managed from 5.1) [*INFO*] | \- org.ow2.asm:asm-tree:jar:5.0.3:compile [*INFO*] |\- (org.ow2.asm:asm:jar:5.0.3:compile - version managed from 5.1; omitted for duplicate) [*INFO*] +- org.eclipse.jetty:jetty-webapp:jar:9.4.7.v20170914:compile [*INFO*] | +- org.eclipse.jetty:jetty-xml:jar:9.2.14.v20151106:compile (version managed from 9.4.7.v20170914) [*INFO*] | | \-