Originally reported on Google Code with ID 3439
Found in GWT Release:
1.6.0
Detailed description:
The 1.6.0 and 1.6.1 versions of gwt-user.jar contain the
source code for the javax.servlet package.
The problem is the source code has a newer timestamp than the class files.
This causes the javax.servlet classes to be recompiled by maven and placed
in the war's WEB-INF/classes directory.
These classes then conflict with the provided servlet-api.jar found in most
application servers.
Can someone fix the deployed jars to either:
1) include class files having a later timestamp than the source files
or
2) contain no javax source code.
The source code might not be required, since the jars for version 1.5.3
didn't include any javax.servlet sources.
(this description was adapted from Will's post explaining the problem in
the gwt group)
Workaround if you have one:
(I use linux)
What worked for me was to update all the timestamps in the jar's
javax.servlet package to the same date as the GWT 1.5.3's classes
timestamps. I then deployed them to my local maven repository, under a new
version "1.6.1-patched".
Script to change timestamps :
---------------------
#!/bin/bash
#
PATH_TO_GWT_USER_JAR=$1
mkdir work
cd work
cp -v $PATH_TO_GWT_USER_JAR .
jar xf gwt-user-1.6.1.jar javax/servlet
touch -mt 200408280906 javax/servlet/*
touch -mt 200408280906 javax/servlet/**/*
jar uf gwt-user-1.6.1.jar javax/servlet/
-------------------------------
You need to tell the script what jar it should modify:
patchGwtJavaxServlet.sh
/home/username/.m2/repository/com/google/gwt/gwt-user/1.6.1/gwt-user-1.6.1.jar
You will then have a /work directory containing gwt-user-1.6.1.jar with
corrected timestamps. You then need to put it on your local repository or
company repository following the standard maven practice, and to update
your pom.xml to use this patched jar.
Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e0486a1de1f58c06/00bfe80aac3408e6
Reported by neveue on 2009-03-04 12:40:26
Originally reported on Google Code with ID 3439
Reported by
neveueon 2009-03-04 12:40:26