Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

GWT spring integration

Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranches,

am trying to integrate gwt with springframwork i search the internet and i found the following link

it work great with me until i tried to run the application in the host mode so i can debug my entire tiers (server and client side) but unfortunately the GWT shell do not give me the ability to play with web.xml so i cant configure my spring context using the DispatcherServlet..

so do anyone have any idea on how to integrate spring with GWT or how can i update the generated web.xml in the host mode so the spring context will load ??

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Razi,
I am also new to GWT.
But i think the web.xml is not generated every time we compile.
I was using GWT 1.5.

I had modified the generated web.xml and it worked.
But I am not sure, if some specific change would cause it to be re-generted.
The generated web.xml only contains a single servlet definition/mapping.
So there is no need to generate it every time. I guess.

Let me know whether you have already solved it.
And are you using the solution form that link to integrate with spring.

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm new to GWT and I was trying to get a simple app that will use GWT+Spring+Maven. I was able to find a suitable example on the internet for GWT+Spring+Maven, that also work. THe issue is that when I'm trying to define new beans and inject them in the exsiting GWT ones, the DI doesn't work as expected. I am getting no errors though, just null values.

The example was taken from I had to tweak it a little bit to work properly. To that app I was trying to add a BO layer and a DAO layer.

Any suggestions how could I register&inject those beans (myObjectDAO and myObjectBO) into "quoteService"? "quoteService" bean is registered and injected properly in "quoteController". I do have the setters properly in place for the properties in the bean class, otherwise spring would complained.
Thank you.



Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic