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-api: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 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'
>
> On Mon, Jul 17, 2017 at 3:51 PM, Michael Joyner <[email protected] 
> <javascript:>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to