开发者

Cannot Get GWT-RPC Working Properly

开发者 https://www.devze.com 2023-01-11 23:33 出处:网络
I\'m trying to get some server side stuff going for my GWT project. As a test I tried to add in a com.sun.jmx.snmp.SnmpOid object which isn\'t supported by GWT run-time into my GreetingServiceImpl.jav

I'm trying to get some server side stuff going for my GWT project. As a test I tried to add in a com.sun.jmx.snmp.SnmpOid object which isn't supported by GWT run-time into my GreetingServiceImpl.java (a file that gets generated with every GWT project)开发者_如何学Go, but it's still saying that it's not supported.

I did the RPC GWT tutorial and when I copied the same code into that projects GreetingServiceImpl it worked fine.

I feel that I'm missing a reference or a line in an XML file. I've compared both projects thoroughly but couldn't find any discrepancies.

Any help would be appreciated.

Exact Error: com.sun.jmx.snmp.SnmpOid is not supported by Google App Engine's Java runtime environment


Please check the source path in your .gwt.xml file. It should say something like:

<source path='client' />
<source path='shared' />

Make sure, that your GreetingServiceImpl isn't in the source path.

If that's not the problem, please provide the exact error message you get.

Update

The error message you provided now, indicates that the class isn't supported by AppEngine - that's not the same as "not supported by GWT". If you don't need AppEngine, remove AppEngine support from your project (Project > Properties > Google > AppEngine > Use App Engine).

0

精彩评论

暂无评论...
验证码 换一张
取 消