Hrmmm does gwtp have a separate support mailing list? It really is a server side issue, we don't use GWTP here at this time.
My guess that code server somehow using servlet-api of 2.3, because after compiling we have in target code libs servlet-api 2.3 which is not used by any kind of dependency. Servlet-api 2.3 starts downloading before output of checkstyle plugin. I tried to remove this plugin, but nothing changes.
About gwt-rpc, yes we are using couple dependencies from there:<dependency> <groupId>com.gwtplatform</groupId> <artifactId>gwtp-dispatch-rpc-client</artifactId> <version>${gwtp.version}</version> <scope>provided</scope></dependency><dependency><groupId>com.gwtplatform</groupId><artifactId>gwtp-dispatch-rpc-server-guice</artifactId><version>${gwtp.version}</version></dependency><dependency> <groupId>com.gwtplatform</groupId> <artifactId>gwtp-dispatch-rpc-shared</artifactId> <version>${gwtp.version}</version> <scope>compile</scope></dependency>
where gwtp.version is 1.6, so they are latest.
On Wed, Jul 19, 2017 at 8:37 AM, Michael Joyner <michael@newsrx.com> wrote:
At this point I'm at a bit of a loss I'm afraid. The issue is really happening as a servlet error based on what I'm seeing and not really as a GWT client front end issue. Are you using GWT-RPC? If yes, is the gwt rpc jar in the final war? Are any other required jars making it into your war (such as the rs-api jar)?
On 07/18/2017 04:46 PM, Renat Kabirov wrote:
Yes, we do, we have javax.ws.rs:javax.ws.rs-api 2.0.1 in our dependencies.--
On Tuesday, July 18, 2017 at 3:03:13 PM UTC-5, Michael Joyner wrote:I just noticed one of our projects has as dependencies:
providedCompile 'javax.servlet:javax.servlet-a
pi:3.0.1'
compile 'javax.ws.rs:javax.ws.rs-api:2.0.1'
Do you have the second one?
On 07/18/2017 01:36 PM, Michael Joyner wrote:
We use Gradle here and not Maven, so I'm stuck at this point. I do know that when we previously tried 3.1.0 we had all sorts of issues with the Tomcat version we were using at the time. You might need to include an additional dependency for use by your servlet container. Jetty?
On 07/18/2017 11:33 AM, Renat Kabirov wrote:
Hi Michael Joyner,
Just changed version to 3.0.1 - I see error during building:
Module setup completed in 32400 msjava.lang.NoClassDefFoundError: javax/servlet/http/HttpSession IdListener at org.eclipse.jetty.server.session.SessionHandler.<clinit>( SessionHandler.java:54) at org.eclipse.jetty.servlet.ServletContextHandler.newSessionHa ndler(ServletContextHandler. java:241) at org.eclipse.jetty.servlet.ServletContextHandler.getSessionHa ndler(ServletContextHandler. java:334) at org.eclipse.jetty.servlet.ServletContextHandler.relinkHandle rs(ServletContextHandler.java: 180) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(Servl etContextHandler.java:157) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(Servl etContextHandler.java:117) at org.eclipse.jetty.servlet.ServletContextHandler.<init>(Servl etContextHandler.java:105) at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java :129) at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.ja va:162) at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.jav a:104) at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.jav a:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(Supe rDevListener.java:112) at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevList ener.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.HttpSession IdListener 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 moreDisconnected from the target VM, address: '127.0.0.1:57494', transport: 'socket'
On Mon, Jul 17, 2017 at 3:51 PM, Michael Joyner <mic...@newsrx.com> wrote:
try putting servlet to 3.0.1 and not 3.1.0 and see if that helps.
On 07/17/2017 03:13 PM, 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-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit .
For more options, visit https://groups.google.com/d/optout .
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