upgrade gwt 2.7 to gwt 2.8.1 not working

1,833 views
Skip to first unread message

Gal Lavie

unread,
May 10, 2017, 12:57:25 AM5/10/17
to GWT Users
Hi everyone
I develop application in gwt and google app engine.
until now i used with gwt 2.7 lib and google app engine 1.51 lib
i try to upgrade the gwt 2.7 to 2.8.1 lib
and i have 2 problems now 
i hope you can help me
1) when i try to run the project i get exception in devModeBase.class file in run method 
this is the log of run + exception:

Running CodeServer with parameters: [-noprecompile, -port, 65462, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /Users/gallavie/Documents/workspace/Darimpo/war, -logLevel, INFO, -style, OBFUSCATED, com.darimpo.Darimpo, com.darimpo.Darimpo]

Super Dev Mode starting up

   workDir: /var/folders/fj/8gtg078929j8hjtfzyy5srv40000gn/T/gwt-codeserver-8030568012575356208.tmp

2017-05-10 06:44:10.582:INFO::main: Logging initialized @3822ms

   Loading Java files in com.darimpo.Darimpo.

   Ignored 33 units with compilation errors in first pass.

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

   Module setup completed in 4961 ms

   Loading Java files in com.darimpo.Darimpo.

   Ignored 33 units with compilation errors in first pass.

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

   Module setup completed in 1273 ms

2017-05-10 06:44:15.046:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT

2017-05-10 06:44:15.164:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7a508fdc{/,null,AVAILABLE}

2017-05-10 06:44:15.301:INFO:oejs.ServerConnector:main: Started ServerConnector@4ca4b342{HTTP/1.1}{127.0.0.1:65462}

2017-05-10 06:44:15.313:INFO:oejs.Server:main: Started @8553ms


The code server is ready at http://127.0.0.1:65462/

Code server started in 6.828 s ms

2017-05-10 06:44:15.702:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT

2017-05-10 06:44:19.948:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.annotations.ServletContainerInitializersStarter@1e23623: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

at org.apache.jasper.servlet.TldScanner.scanJspConfig(TldScanner.java:148)

at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:97)

at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)

at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)

at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:65)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:274)

at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)

at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.server.Server.start(Server.java:387)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.Server.doStart(Server.java:354)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)

at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)

at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)

at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)

at com.google.gwt.dev.DevMode.main(DevMode.java:432)

2017-05-10 06:44:19.952:WARN:oejuc.AbstractLifeCycle:main: FAILED c.g.g.d.s.j.WebAppContextWithReload@eb55e46{/,file:/Users/gallavie/Documents/workspace/Darimpo/war/,STARTING}{/Users/gallavie/Documents/workspace/Darimpo/war}: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

at org.apache.jasper.servlet.TldScanner.scanJspConfig(TldScanner.java:148)

at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:97)

at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)

at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)

at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:65)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:274)

at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)

at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.server.Server.start(Server.java:387)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.Server.doStart(Server.java:354)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)

at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)

at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)

at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)

at com.google.gwt.dev.DevMode.main(DevMode.java:432)

2017-05-10 06:44:19.953:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.handler.RequestLogHandler@113f4cb9: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

at org.apache.jasper.servlet.TldScanner.scanJspConfig(TldScanner.java:148)

at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:97)

at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)

at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)

at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:65)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:274)

at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)

at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.server.Server.start(Server.java:387)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.Server.doStart(Server.java:354)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)

at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)

at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)

at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)

at com.google.gwt.dev.DevMode.main(DevMode.java:432)

2017-05-10 06:44:19.956:INFO:oejs.ServerConnector:main: Started ServerConnector@17c2393{HTTP/1.1}{127.0.0.1:49276}

2017-05-10 06:44:19.957:WARN:oejuc.AbstractLifeCycle:main: FAILED org.eclipse.jetty.server.Server@6e1f3bb9: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;

at org.apache.jasper.servlet.TldScanner.scanJspConfig(TldScanner.java:148)

at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:97)

at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)

at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)

at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:65)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:274)

at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)

at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:550)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

at org.eclipse.jetty.server.Server.start(Server.java:387)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

at org.eclipse.jetty.server.Server.doStart(Server.java:354)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:760)

at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636)

at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923)

at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)

at com.google.gwt.dev.DevMode.main(DevMode.java:432)




2) when i try to compile the project i get this exception 



   [ERROR] An internal compiler exception occurred

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)

at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:76)

at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)

at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)

at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)

at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)

at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:94)

at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)

at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)

at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)

at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)

at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)

at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1401)

at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:896)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)

at com.google.gwt.dev.Compiler.compile(Compiler.java:204)

at com.google.gwt.dev.Compiler.compile(Compiler.java:155)

at com.google.gwt.dev.Compiler.compile(Compiler.java:144)

at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)

at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)

at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)

at com.google.gwt.dev.Compiler.main(Compiler.java:125)

Caused by: java.lang.NoClassDefFoundError: com/google/gwt/core/ext/typeinfo/HasMetaData

at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.hasTag(JSWrapperGenerator.java:129)

at com.google.gwt.maps.jsio.rebind.TaskFactory$FlyweightPolicy.shouldBind(TaskFactory.java:155)

at com.google.gwt.maps.jsio.rebind.TaskFactory.extractMethods(TaskFactory.java:309)

at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:314)

at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)

at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)

at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)

at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)

at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)

at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:519)

at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:487)

at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.maybeHandleMagicMethodCall(UnifyAst.java:415)

at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:402)

at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)

at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

... 40 more

Caused by: java.lang.ClassNotFoundException: com.google.gwt.core.ext.typeinfo.HasMetaData

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 58 more

      [ERROR] at MapImpl.java(45): GWT.create(MapImpl.class)

         com.google.gwt.dev.jjs.ast.JMethodCall

      [ERROR] at MapImpl.java(45): (MapImpl) GWT.create(MapImpl.class)

         com.google.gwt.dev.jjs.ast.JCastOperation

      [ERROR] at MapImpl.java(45): final static MapImpl impl = (MapImpl) GWT.create(MapImpl.class)

         com.google.gwt.dev.jjs.ast.JDeclarationStatement

      [ERROR] at MapImpl.java(41): {

  final static MapImpl impl = (MapImpl) GWT.create(MapImpl.class);

}

         com.google.gwt.dev.jjs.ast.JBlock

      [ERROR] at MapImpl.java(41): {

  final static MapImpl impl = (MapImpl) GWT.create(MapImpl.class);

}

         com.google.gwt.dev.jjs.ast.JMethodBody

      [ERROR] at MapImpl.java(41): com.google.gwt.maps.client.impl.MapImpl.$clinit()V

         com.google.gwt.dev.jjs.ast.JMethod



thank you every one

Thomas Broyer

unread,
May 10, 2017, 5:35:50 AM5/10/17
to GWT Users
Check your classpath, you probably have Servlets API in version 2.x (2.4, 2.5). This method was added in Servlets 3.0 (https://docs.oracle.com/javaee/7/api/javax/servlet/ServletContext.html#getJspConfigDescriptor--), and Jetty 9.2.14.v20151106 (the version that GWT uses) actually needs Servlets 3.1.0 (https://search.maven.org/#artifactdetails%7Corg.eclipse.jetty%7Cjetty-project%7C9.2.14.v20151106%7Cjar)
(GWT 2.7.0 was using Jetty 8.1.12.v20130726, which BTW already needed Servlets 3.0 https://search.maven.org/#artifactdetails%7Corg.eclipse.jetty%7Cjetty-project%7C8.1.12.v20130726%7Cjar, but could have maybe worked OK with Servlets 2.5 – I doubt it, maybe you changed the order of JARs in your classpath when upgrading; GWT 2.7 used to bundle the Servlets API into gwt-dev, and this has changed in 2.8.1, when retrieved from the Central Repository)
As someone told you already on StackOverflow, HasMetaData has been removed from GWT 2.8, after being deprecated for more than 8 years! (https://github.com/gwtproject/gwt/commit/aa1113205c3c2494d29a8c74cb368fdb497249f8)
You need to either update your gwt-maps dependency (if possible, but it's been unmaintained for years too, I have no idea of its compatibility story) or switch to another Google Maps integration library (or write yours using JsInterop).

Gal Lavie

unread,
May 10, 2017, 3:02:44 PM5/10/17
to GWT Users
wwoowwww thank you 
this worked for me 
for the second problem i removed google map and this is worked for me (i did this in past and it not worked but now it work i do not know why but now it work)
for the first problem the solution is the order of libs. i go to the orders of libs and put the gwt before google app engine and it worked.

but now i have another problem when i run the code i get exception like this:
maybe you know why?

HTTP ERROR 403

Problem accessing /Darimpo.html. Reason:

    !Secure


Powered by Jetty://


thank you again

Gal Lavie

unread,
May 11, 2017, 12:37:49 AM5/11/17
to GWT Users
I found why this problem happens

HTTP ERROR 403

Problem accessing /Darimpo.html. Reason:

    !Secure


Powered by Jetty://

it happened because i used ssl in my web.xml like this

    <security-constraint>

        <web-resource-collection>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
when i remove this code my app worked 
but i need this code so what i can do?

Thomas Broyer

unread,
May 11, 2017, 5:23:58 AM5/11/17
to GWT Users


On Wednesday, May 10, 2017 at 9:02:44 PM UTC+2, Gal Lavie wrote:
wwoowwww thank you 
this worked for me 
for the second problem i removed google map and this is worked for me (i did this in past and it not worked but now it work i do not know why but now it work)
for the first problem the solution is the order of libs. i go to the orders of libs and put the gwt before google app engine and it worked.

Oh, I had missed the part where you said you're using App Engine.
Aren't you supposed to use the AppEngineLauncher with DevMode then? (AFAICT, it's no longer supported though, so you'll actually want to run the AppEngine server and then run DevMode in "no server" mode, or use CodeServer instead)
Message has been deleted

Gal Lavie

unread,
May 11, 2017, 7:43:14 AM5/11/17
to GWT Users
Hi 
thank you for replay
but i dont understand what i need to do 
so i live this for now and continue 
so i continue and i get another exception when i call to database 

org.datanucleus.exceptions.NucleusException: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/Users/gallavie/Documents/workspace/Darimpo/war/WEB-INF/lib/datanucleus-core-3.1.3.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/Users/gallavie/Documents/workspace/libs/appengine-java-sdk-1.9.51/lib/opt/user/datanucleus/v2/datanucleus-core-3.1.3.jar."

at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:541)

at org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:395)

at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensions(NonManagedPluginRegistry.java:219)

at org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensionPoints(NonManagedPluginRegistry.java:160)

at org.datanucleus.plugin.PluginManager.<init>(PluginManager.java:65)

at org.datanucleus.plugin.PluginManager.createPluginManager(PluginManager.java:427)

at org.datanucleus.NucleusContext.<init>(NucleusContext.java:224)

at org.datanucleus.NucleusContext.<init>(NucleusContext.java:204)

at org.datanucleus.NucleusContext.<init>(NucleusContext.java:182)

at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.<init>(JDOPersistenceManagerFactory.java:409)

at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:294)

at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:195)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)

at java.security.AccessController.doPrivileged(Native Method)

at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)

at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)

at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:844)

at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099)

at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919)

at com.darimpo.server.persist.PMF.<clinit>(PMF.java:9)

at com.darimpo.server.managers.BuildingsManager.getBuildingPlaces(BuildingsManager.java:654)

at com.darimpo.server.servlets.GreetingServiceImpl.pullBuildingPlaces(GreetingServiceImpl.java:378)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)

at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Thread.java:745)



this is my classpath

<?xml version="1.0" encoding="UTF-8"?>

<classpath>

<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">

<attributes>

<attribute name="optional" value="true"/>

<attribute name="maven.pomderived" value="true"/>

</attributes>

</classpathentry>

<classpathentry kind="src" output="target/test-classes" path="test">

<attributes>

<attribute name="optional" value="true"/>

<attribute name="maven.pomderived" value="true"/>

</attributes>

</classpathentry>

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">

<attributes>

<attribute name="maven.pomderived" value="true"/>

</attributes>

</classpathentry>

<classpathentry kind="con" path="com.gwtplugins.gwt.eclipse.core.GWT_CONTAINER"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/commons-fileupload-1.3.2.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/commons-io-2.5.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/dropbox-core-sdk-V2.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gagawa-1.0.1.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/GWT FX v0.5.0 MS 1.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gwt-charts-0.9.10.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gwt-visualization.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gwtbootstrap3-0.9.3.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gwtexporter-2.5.0-SNAPSHOT.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/gwtphonegap-3.5.0.1.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/jackson-annotations-2.7.0.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/jackson-core-2.7.0.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/jackson-databind-2.7.0.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/jxl.jar"/>

<classpathentry kind="lib" path="/Users/gallavie/Documents/workspace/Darimpo/jars/mgwt-2.0.0.jar"/>

<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">

<attributes>

<attribute name="maven.pomderived" value="true"/>

</attributes>

</classpathentry>

<classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>

<classpathentry kind="output" path="war/WEB-INF/classes"/>

</classpath>

Thad Humphries

unread,
Feb 1, 2019, 4:31:01 PM2/1/19
to GWT Users
Thanks! You answered this question over a year and a half ago, but I just hit this very problem while converting an app from 2.7.0 to 2.8.2. (Why now? With Oracle cutting off Java 8, we moved to Amazon Corretto, and found some old imaging stuff that would not work with OpenJDK. As long as I was correcting this and moving from Java 6 to OpenJDK 8--and with this weeks Canary problems in mind--I decided to bump GWT as well.)

Interesting what you say about Jetty in 2.7.0: I've never had a problem with Servlet spec 2.5 and GWT 2.7.0 (this app has used 2.5 for years). 

From my testing with Tomcat 8.5, I can still use servlet 2.5 or 3.0 in the web.xml header of the deployed app. Have you seen issues in deployment? I ask because we've one customer who runs WebLogic and their current version--12.1.3.0.0--only supports up to 3.0.

Thomas Broyer

unread,
Feb 2, 2019, 5:11:18 AM2/2/19
to GWT Users


On Friday, February 1, 2019 at 10:31:01 PM UTC+1, Thad Humphries wrote:
Thanks! You answered this question over a year and a half ago, but I just hit this very problem while converting an app from 2.7.0 to 2.8.2. (Why now? With Oracle cutting off Java 8, we moved to Amazon Corretto, and found some old imaging stuff that would not work with OpenJDK. As long as I was correcting this and moving from Java 6 to OpenJDK 8--and with this weeks Canary problems in mind--I decided to bump GWT as well.)

Interesting what you say about Jetty in 2.7.0: I've never had a problem with Servlet spec 2.5 and GWT 2.7.0 (this app has used 2.5 for years). 

From my testing with Tomcat 8.5, I can still use servlet 2.5 or 3.0 in the web.xml header of the deployed app. Have you seen issues in deployment? I ask because we've one customer who runs WebLogic and their current version--12.1.3.0.0--only supports up to 3.0.

This was a classpath issue, not a webapp one. You never package the servlet APIs in your WARs, and even if you did, the server would use its own version and ignore yours. So as long as you don't use newer APIs that the target server doesn't support, you're safe.
The problem is if you put an older API in the server's classpath (in the case of GWT, the devmode classpath), like if you shadowed/replaced WebLogic's own servlet API with another one.
Fwiw, separating client and server code into separate "modules" (separate classpaths: only including client-side dependencies in the devmode classpath, leaving server-side dependencies to the webapp's WEB-INF/lib), something I've been advocating for years, generally solves these conflicts.
Reply all
Reply to author
Forward
0 new messages