【发布时间】:2011-10-07 05:09:31
【问题描述】:
我将 GWT 2.4 与 gquery-dnd-bundle 1.0.4 一起使用,以便可以使用拖放节点构建树。我遇到了一个烦人的错误(http://code.google.com/p/gwtquery-plugins/issues/detail?id=6)。它的要点是我需要保证在我的 WEB-INF/lib 目录中的 gwt-servlet.jar 文件之前,类加载器在运行时加载文件“gquery-dnd-bundle-1.0.4.jar”。
我如何保证这一点?
如果有用的话,我正在将 Eclipse Indigo 与 GWT Web 应用程序项目一起使用。
这是我看到的确切错误
[ERROR] [draganddroptree] - Errors in 'jar:file:/C:/Documents%20and%20Settings/E18538/workspace/DragAndDropTree/war/WEB-INF/lib/gquery-dnd-bundle-1.0.4.jar!/gwtquery/plugins/droppable/client/gwt/DragAndDropCellTree.java'
[ERROR] [draganddroptree] - Line 24: The type com.google.gwt.user.cellview.client.CellTreeNodeView is not visible
[ERROR] [draganddroptree] - Line 86: CellTreeNodeView cannot be resolved to a type
[ERROR] [draganddroptree] - Line 87: The constructor DragAndDropCellTreeNodeView<T>(DragAndDropCellTree, CellTreeNodeView<?>, TreeViewModel.NodeInfo<T>, Element, T) refers to the missing type CellTreeNodeView
[ERROR] [draganddroptree] - Unable to load module entry point class com.cme.draganddroptree.client.DragAndDropTree (see associated exception for details)
[ERROR] [draganddroptree] - Failed to load module 'draganddroptree' from user agent 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1' at localhost:4490
【问题讨论】: