java - 当我在 Eclipse 中创建 Web 应用程序项目以使用 Provisioning API 创建用户帐户时,出现以下错误

标签 java gwt

[DEBUG] [createuser] - Validating newly compiled units
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/AppsForYourDomainClient.java'
        [ERROR] [createuser] - Line 324: No source code is available for type java.net.URL; did you forget to inherit a required module?
        [ERROR] [createuser] - Line 1059: The method exit(int) is undefined for the type System
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/AttributeHistogram.java'
        [ERROR] [createuser] - Line 340: No source code is available for type org.xml.sax.Attributes; did you forget to inherit a required module?
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/ConversionUtil.java'
        [ERROR] [createuser] - Line 239: No source code is available for type com.google.common.collect.Multimap<K,V>; did you forget to inherit a required module?
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/FeedURLFactory.java'
        [ERROR] [createuser] - Line 35: No source code is available for type java.net.URL; did you forget to inherit a required module?
        [ERROR] [createuser] - Line 75: No source code is available for type java.net.MalformedURLException; did you forget to inherit a required module?
        [ERROR] [createuser] - Line 117: No source code is available for type java.net.URLEncoder; did you forget to inherit a required module?
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/GmAttributes.java'
        [ERROR] [createuser] - Line 142: No source code is available for type org.xml.sax.Attributes; did you forget to inherit a required module?
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/GmDisapproved.java'
        [ERROR] [createuser] - Line 59: No source code is available for type org.xml.sax.Attributes; did you forget to inherit a required module?
    [ERROR] [createuser] - Errors in 'file:/D:/Neha_workspace/CreateUser/src/com/shared/api/gbase/client/GmPublishingPriority.java'
        [ERROR] [createuser] - Line 122: No source code is available for type org.xml.sax.Attributes; did you forget to inherit a required module?

最佳答案

您使用了 GWT 客户端不支持的类。您应该将它们移至服务器端(例如 GWT RPC servlet)并使用异步回调从客户端代码调用它们。 此处列出了可在 GWT 客户端使用的类: http://code.google.com/intl/pl-PL/webtoolkit/doc/2.2/RefJreEmulation.html .

关于java - 当我在 Eclipse 中创建 Web 应用程序项目以使用 Provisioning API 创建用户帐户时,出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5786460/

相关文章:

java - Mockito/GWT : mocked view's widgets are null

java - GWT 2.8.2编译器异常

java - 运行最大可用 "maximum heap size"的 java 应用程序

java - 如何从 java 客户端获取 protected Web 资源

java - GWT favicon.ico 返回错误!(GWT 和 Java)

eclipse - GWT 编译错误、图像和延迟绑定(bind)

java - 为什么添加新组件时 BorderLayout 会覆盖组件?

java - Openshift 应用程序部署成功但未更新

java - 树状图排序

java - 如何从 Windows 小工具进行 GWT RPC 调用?