GWT and Spring Integration - is a restricted class | MyThinkPond

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

“ 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.


Venkatt Guhesan avatar
About Venkatt Guhesan
Enterprise Software Architect currently working at DataDirect Networks developing a highly scalable monitoring solution called DDN Insight. My passions include all things Open Source including Linux (CentOS, Red Hat, Gentoo, Open Stack, Docker & Ubuntu), embedded ARM processors and microcontrollers (Arduino, UDOO, Cubieboard, BeagleBoard, OnionIO, TI's Zigbee). Coming from an Electrical and Computer Engineering background, working in developing and designing enterprise - distributed, highly scalable software requires a unique set of software skills with a good understanding of the hardware. This makes his work challenging and interesting. In his free time, he spends his time with his family and two children. He also enjoys researching on topics including - world ancient history and yoga. Visit the 'About' section for more details.
comments powered by Disqus