Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details.:

728 views
Skip to first unread message

Sudar

unread,
Jun 8, 2012, 11:04:44 PM6/8/12
to Google Web Toolkit, sudarsana...@citi.com
Hi I'm new to GWT; I have started to learn GWT and doing POC's one by
one. i was able to do RPC call;

Now I'm trying to do Database operation and integrated GWT with spring
and hibernate; when I'm trying to start a server, getting the
following error; Can you pls assist me?


[WARN] Nested in
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tmgUserScreenService' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot
resolve reference to bean 'ctTradeRecordGmiDAO' while setting bean
property 'ctTradeRecordGmiDAO'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'ctTradeRecordGmiDAO' defined in
ServletContext resource [/WEB-INF/appCtxDaos.xml]: Cannot resolve
reference to bean 'cvHibernateSessionFactory' while setting bean
property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'cvHibernateSessionFactory' defined in
ServletContext resource [/WEB-INF/appCtxDaos.xml]: Invocation of init
method failed; nested exception is java.lang.NoClassDefFoundError:
java.net.Socket is a restricted class. Please see the Google App
Engine developer's guide for more details.:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google App Engine developer's guide for more details.

Thomas Broyer

unread,
Jun 9, 2012, 11:39:53 AM6/9/12
to google-we...@googlegroups.com, sudarsana...@citi.com
If you don't use AppEngine, then disable the AppEngine nature on your project (right-click on the project -> Preferences -> Google -> App Engine).
 
Reply all
Reply to author
Forward
0 new messages