MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

GWT and Spring Integration – java.net.InetAddress is a restricted class

Posted by Venkatt Guhesan on September 12, 2010

When trying to integrate both Spring and GWT, one might encounter the following error in the Spring Eclipse IDE:

“java.net.InetAddress is a restricted class”. The problem happens when you try to use Spring configuration for your database. In my case, I was using Spring to update data back to a H2 database.

Well, here’s one way to deal with this issue. Disable the “Google App Engine”. Yes, based on my research, if you’re usingĀ  GWT, you can disable Google App Engine and still continue your development with GWT.

You can right click on your project and go into properties. Under [Google] -> [App Engine], you can “uncheck” – use Google App Engine. And rebuild the application and resume your debugging.

This allows you to use Spring beans to persist your data in a database.

Cheers.

Advertisements

One Response to “GWT and Spring Integration – java.net.InetAddress is a restricted class”

  1. While the Google Eclipse plugin supports developing for GWT, AppEngine, or both, they’re certainly not coupled. If you’re building a GWT application, there’s no need to have enabled AppEngine unless you plan on deploying it to AppEngine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: