Gwt Vaadin InvientChart widgetset错误

Gwt Vaadin InvientChart widgetset错误,gwt,vaadin,Gwt,Vaadin,有人能给我解释一下如何开始使用InventChart插件吗?我做过这样的事情: 做一个新的瓦丁项目 将jar添加到WebContent/WEB-INF/lib 将jquery.js和highchart.js添加到WebContent/js文件夹 创建一个扩展ApplicationServlet的类,并将url添加到上述js文件中 更改web.xml中的servlet类 创建一个InventPie类链接 运行项目并编译widgetset 我得到了这个错误: 未能加载widgetset:/cha

有人能给我解释一下如何开始使用InventChart插件吗?我做过这样的事情:

  • 做一个新的瓦丁项目
  • 将jar添加到WebContent/WEB-INF/lib
  • 将jquery.js和highchart.js添加到WebContent/js文件夹
  • 创建一个扩展ApplicationServlet的类,并将url添加到上述js文件中
  • 更改web.xml中的servlet类
  • 创建一个InventPie类链接
  • 运行项目并编译widgetset
我得到了这个错误:

未能加载widgetset:/chartProject/VAADIN/widgetset/com.example.chartProject.widgetset.ChartProjectWidgetset/com.example.chartProject.widgetset.ChartProjectWidgetset.nocache.js?1368453503030

我使用的是InventCharts 0.8.6、Vaadin 6.8.5、gwt dev 2.3.0、gwt user 2.3.0

我错过什么了吗?有人能告诉我使用这个插件的正确顺序吗。谢谢

编辑:这是我编译后的widgetset.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">

<module>
    <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />

    <!--
     Uncomment the following to compile the widgetset for one browser only.
     This can reduce the GWT compilation time significantly when debugging.
     The line should be commented out before deployment to production
     environments.

     Multiple browsers can be specified for GWT 1.7 as a comma separated
     list. The supported user agents at the moment of writing were:
     ie6,ie8,gecko,gecko1_8,safari,opera

     The value gecko1_8 is used for Firefox 3 and later and safari is used for
     webkit based browsers including Google Chrome.
    -->
    <!-- <set-property name="user.agent" value="gecko1_8"/> -->

</module>


它应该按照您描述的方式工作。奇怪的是加载URL失败的/chartProject/part。我认为它应该直接是/VAADIN/,因为它是相对于应用程序位置的。该错误是在您启动vaadin应用程序时显示,还是仅在您希望显示图表时显示?该错误在我启动应用程序时显示。当我尝试使用eclipse工具栏(或ctrl 6)进行编译时,它会给我另一个错误编译widgetset:java.io.IOException-无法运行程序“C:\program Files(x86)\eclipse-jee-juno-win32\eclipse\bin\java.exe”(在目录“C:\program Files(x86)\workspace\chartProject”中):CreateProcess error=2,系统找不到指定的文件。我在vaadin库中找到了nocache.js。奇怪的是,为什么我的应用程序请求VAADIN/widgetset/com.example.chartt.widgetset.CharttWidgetset/com.example.chartt.widgetset.nocache.js而不是VAADIN\widgetset\com.VAADIN.terminal.gwt.DefaultWidgetSet\com.VAADIN.terminal.gwt.DefaultWidgetSet.nocache.js我有什么配置错误吗?widgetset没有编译没错,这是你的问题。您必须确保它正确编译,然后它将生成所需的js文件。谢谢。如何确保它正确编译?