Please use the search in the forum, this question has just been answered (it's even in the first page of the discussions list)
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d672bd0bcd9fc917# Hope that helps, Salvador On Apr 24, 3:38 pm, mabebe <[email protected]> wrote: > Hi i am having difficulty integrating spring with gwt. Below is my > code for my serviceImpl class...and where i think the error is > > @Override > public void init() throws ServletException { > super.init(); > ServletContext sc = this.getServletContext(); > > WebApplicationContext ctx = > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this > returns a null pointer exception exception > reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade"); > } > > i have the following in my webapp web.xml file... > > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value> > > classpath:org/personalsite/config/applicationContext.xml > </param-value> > </context-param> > > <listener> > <listener-class> > org.springframework.web.context.ContextLoaderListener > </listener-class> > </listener> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
