Error with javax.servlet.http.HttpServletReponse contening in Gwt-user 1.4.61

82 views
Skip to first unread message

sebastie...@gmail.com

unread,
Jul 1, 2008, 9:03:13 AM7/1/08
to Google Web Toolkit
Hi all,
I develop a GWT project with Maven 2 and the GWT-Maven plugin.
When I compile my GWT project, I get an error about
javax.servlet.http.HttpServletResponse

C:\...\BLGRHGwt\src\main\java\fr\bl\server\core\office
\FileResource.java:[70,44] cannot find symbol
symbol : method getContentType()
location: interface javax.servlet.http.HttpServletResponse

I know that "javax.servlet.http.HttpServletResponse" is embedded into
gwt-user.jar.
I retrieve gwt-user 1.4.61 and gwt-servlet 1.4.61 from Gwt maven
repository : http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/

If I delete these jar files from my local repository, when Maven
downloads the files, it makes a checksum failed from them.

Is there someone who uses GWT with Maven ?
Is there someone who meet the same issue ?


sebastie...@gmail.com

unread,
Jul 1, 2008, 9:38:21 AM7/1/08
to Google Web Toolkit
It's fix !
I just had a problem this a wrong character in my class file.

But the problem with the checksum failed is still running

On 1 juil, 15:03, "sebastien.pey...@gmail.com"

olivier nouguier

unread,
Jul 2, 2008, 2:32:44 AM7/2/08
to Google-We...@googlegroups.com
Hi,
GWT and maven works fine !

Don't you put an old version of servlet api ( < 2.4) on your classpath.
getContentType is "since version 2.4" of servlet-api ( which is embed in  gwt-user.jar )
--
"Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible"
- proverbe indien Cri

sebastie...@gmail.com

unread,
Jul 3, 2008, 2:58:33 AM7/3/08
to Google Web Toolkit
Hi and thanks you,
You are right. I have got a Servlet API 2.3 in my classpath.
It is a transitive dependence I didn't see.

Now it's OK.

On 2 juil, 08:32, "olivier nouguier" <olivier.nougu...@gmail.com>
wrote:
> Hi,
> GWT and maven works fine !
>
> Don't you put an old version of servlet api ( < 2.4) on your classpath.
> getContentType is "since version 2.4" of servlet-api ( which is embed in
> gwt-user.jar )
>
> On Tue, Jul 1, 2008 at 3:03 PM, sebastien.pey...@gmail.com <
Reply all
Reply to author
Forward
0 new messages