Spring roo 和 gwt

发布于 2024-12-10 00:29:47 字数 1931 浏览 0 评论 0原文

我正在尝试 GWT 和 Roo。我使用 Roo 逆向设计了一个数据库,并启用并搭建了 GWT。在搭建脚手架期间,我收到了一些警告:

需要将字段 >'getMedias' 在类型 ca.cbc.msb.console.Category 中使用的类型 java.util.Set 的路径添加到模块的 gwt.xml 文件中才能使用在代理中。 类型 java.util.Set 的路径(由字段 >'getSponsors' 在类型 ca.cbc.msb.console.Category 中使用)需要添加到模块的 gwt.xml 文件中,以便在代理中使用.

然后我运行该应用程序并尝试浏览它时出现以下错误

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Deferred binding failed for 'ca.cbc.msb.console.client.scaffold.ioc.DesktopInjector' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at ca.cbc.msb.console.client.scaffold.ioc.DesktopInjectorWrapper.getInjector(DesktopInjectorWrapper.java:8)
at ca.cbc.msb.console.client.scaffold.Scaffold.onModuleLoad(Scaffold.java:17)
... 9 more
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
... 12 more

有人知道这里发生了什么吗?

I am experimenting with GWT and Roo. I reversed engineered a database with Roo and enabled and scaffolded GWT. During the scaffolding I got couple of these warning:

The path to type java.util.Set which is used in type ca.cbc.msb.console.Category by the field >'getMedias' needs to be added to the module's gwt.xml file in order to be used in a Proxy.
The path to type java.util.Set which is used in type ca.cbc.msb.console.Category by the field >'getSponsors' needs to be added to the module's gwt.xml file in order to be used in a Proxy.

Then I run the app and got the following error trying to browse it

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: Deferred binding failed for 'ca.cbc.msb.console.client.scaffold.ioc.DesktopInjector' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at ca.cbc.msb.console.client.scaffold.ioc.DesktopInjectorWrapper.getInjector(DesktopInjectorWrapper.java:8)
at ca.cbc.msb.console.client.scaffold.Scaffold.onModuleLoad(Scaffold.java:17)
... 9 more
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
... 12 more

Does anybody know what is going on here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Saygoodbye 2024-12-17 00:29:47

我假设您使用的是 Roo 1.2.0.M1
默认情况下,GWT 仅查找 ~.client 和 ~.shared 包。您可以尝试编辑 .gwt.xml 以包含带有源标记的包,但我没有这样做。我必须重新开始我的项目并做
数据库逆向工程师--package ~.client.domain虽然我可能应该使用~.shared.domain。

然后

web gwt setup              
web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request

我实际上不得不运行几次。 Roo 似乎没有按照正确的顺序创建东西,并且在中途出错

I'm assuming you're using Roo 1.2.0.M1
By default GWT only looks in ~.client and ~.shared packages. You can try to edit your .gwt.xml to include your packages with the source tag, but I didn't have any luck doing that. I had to start my project over and do
database reverse engineer --package ~.client.domain although I probably should have used ~.shared.domain.

then

web gwt setup              
web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request

I actually had to run that one a couple times. Roo doesn't seem to be creating things in the proper order and errors halfway through

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文