GWT的问题2.4 [英] Problems with GWT 2.4

查看:128
本文介绍了GWT的问题2.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译了svn的标签为gwt2.4rc的版本。现在有一个
的图书馆比我上一次更多。任何
指令在哪些库上需要什么?我只用
标准库(servlet,servlet-deps,用户)来试用它,但是当发出requestfactory调用时,我得到了
跟踪错误:



java.lang.NoSuchMethodError:
com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava / lang /
Object; Ljava / lang / String; Ljava / lang / Object ;)

我试图声明requestfactory-client和requestfactory-server
作为依赖关系,但我没有帮助。我正在使用maven来管理
我的依赖项。
我会回到2.4测试版,但我需要稍后介绍
的拖放功能。
有没有人有一个想法可能是错的?或任何提示如何我可以
深入这个?我花了很多时间试图弄清楚
但没有任何成功:(
我需要提供更多信息吗?



问候,
arne

解决方案

你确定你在war / WEB- INF / lib?另外,请确保您覆盖gwt-maven-plugin的SDK: http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html 这就是说:使用Maven时,你不应该使用gwt-b


  • servlet-deps,而是引用org.json:json和javax.validation:validation-api

  • 如果仅在服务器端使用RequestFactory,则可以使用requestfactory-server而不是gwt-servlet。 (没有GWT-RPC,没有SafeHtml,没有RegExp等); requestfactory-client用于Java客户端(如Android),而不是e case here。


I compiled the version in svn tagged as gwt2.4rc. Now there are a couple of more libraries than I had the last time. Are the any instructions on which library is needed for what? I tried it with only the standard libraries (servlet, servlet-deps, user) but I get the following error when a requestfactory call is made:

java.lang.NoSuchMethodError: com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava/lang/ Object;Ljava/lang/String;Ljava/lang/Object;)

I tried declaring the requestfactory-client and requestfactory-server jars as dependencies, but i doesn't help. I am using maven to manage my dependencies. I would go back to 2.4 beta, but I need the drag&drop features that were introduced later. Does anybody has an idea what could be wrong? or any hints how i can dig deeper into this? I spend a lot of time trying to figure this out but without any success :( Do I need to provide more information?

Regards, arne

解决方案

Are you sure you deployed the 2.4-rc1 gwt-servlet.jar in your war/WEB-INF/lib ? Also, make sure you override the SDK for the gwt-maven-plugin: http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html

That being said:

  • when using Maven, you shouldn't use gwt-servlet-deps but instead reference org.json:json and javax.validation:validation-api
  • requestfactory-server can be used instead of gwt-servlet if you only use RequestFactory on the server-side (no GWT-RPC, no SafeHtml, no RegExp, etc.); requestfactory-client is to be used for Java clients (such as Android), not the case here.

这篇关于GWT的问题2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆