new in 2.4? "GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory"

4,426 views
Skip to first unread message

cri

unread,
Sep 19, 2011, 11:57:07 AM9/19/11
to Google Web Toolkit
I'm seeing this error in eclipse problems:

GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib
directory

Does anyone know whether this is new in GWT 2.4? I don't recall seeing
it before.

I'm using gwt-maven-plugin and my pom file has gwt-servlet as a
dependency. If I put this jar in my WEB-INF/lib directory, I end up
with two jars in my war file: gwt-servlet.jar and gwt-
servlet.jar-2.x.x.

Any advice from anyone? Thanks

Chuck

brent...@gmail.com

unread,
Oct 6, 2011, 3:12:12 PM10/6/11
to Google Web Toolkit
I've noticed this issue as well. I don't understand why eclipse GWT
SDK just doesn't include the gwt-servlet.jar file there instead of
needing to copy it over to WEB-INF/lib. The only way I get around
this now is to make sure that my war/WEB-INF/lib directory doesn't
have any jar files in it when I build my maven project. And the only
way I can get eclipse to copy the jar file over to where it wants it
is to open the Google->GWT settings dialog and then close it...


Anyone else have a fix or workaround?



On Sep 19, 11:57 am, cri <chuck.irvine...@gmail.com> wrote:
> I'm seeing this error in eclipse problems:
>
>      GWT SDK JARgwt-servlet.jaris missing in the WEB-INF/lib

Dominique L.

unread,
Nov 21, 2011, 9:04:54 AM11/21/11
to Google Web Toolkit
Try this:

Select the warning/error, right click and choose "Quick fix" -> "Do
not use the WAR directory for YourProject launching and deploying
(this disables management of WEB-INF).". Click "Finish".

That will create a file ".settings/
com.google.gdt.eclipse.core.prefs" :
#Mon Nov 21 14:32:10 CET 2011
eclipse.preferences.version=1
warSrcDirIsOutput=false

Dominique.

Glyndwr Bartlett

unread,
Aug 18, 2014, 2:24:14 AM8/18/14
to google-we...@googlegroups.com, chuck.i...@gmail.com
Thanks Dominique :-)
Reply all
Reply to author
Forward
0 new messages