Tuesday, July 18, 2017

Re: Upgrading to GWT 2.8.1

Tried to remove <scope>provided</scope> - no result. 

Tried to switch to servlet-api version 3.0.1 - got an error: 
Module setup completed in 32400 ms
java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener
at org.eclipse.jetty.server.session.SessionHandler.<clinit>(SessionHandler.java:54)
at org.eclipse.jetty.servlet.ServletContextHandler.newSessionHandler(ServletContextHandler.java:241)
at org.eclipse.jetty.servlet.ServletContextHandler.getSessionHandler(ServletContextHandler.java:334)
at org.eclipse.jetty.servlet.ServletContextHandler.relinkHandlers(ServletContextHandler.java:180)
at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:157)
at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:117)
at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:105)
at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:129)
at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:162)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
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.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:810)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
at com.google.gwt.dev.DevMode.main(DevMode.java:432)
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionIdListener
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)
... 23 more
Disconnected from the target VM, address: '127.0.0.1:57494', transport: 'socket'

I am wondering if compiling logs should contain: 
Jul 18, 2017 3:43:34 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:52528
Jul 18, 2017 3:43:34 PM com.google.appengine.tools.development.AbstractBackendServers$ServerWrapper startup
INFO: server: 0.operation is running on port 52528
Jul 18, 2017 3:43:36 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x

Does it mean that it still use jetty 6 version and not 9? 


On Monday, July 17, 2017 at 2:39:09 PM UTC-5, Renat Kabirov wrote:
I have a problem upgrading to GWT 2.8.1 from 2.7.0. 

Changed version of gwt in pom. Checked dependencies, updated them. Changed servlet-api version to 3.1.0. 

When I try to run application code server has an error: 

HTTP ERROR: 500

Problem accessing /. Reason:

    java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;


Powered by Jetty://

From what I got, I understand that Code server trying to use wrong version of servlet-api. I see in my classpath servlet-api version 2.3, but I removed all other servlet-api versions in every dependency has it. 

I would glad to look in your recommendations. 

--
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+unsubscribe@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.

No comments:

Post a Comment