I am not sure if this is the correct way to do this for hosted mode,
but i had to place
<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>
in the mywebapp\tomcat\webapps\root\war\web-inf\web.xml file
On Apr 24, 2:18 pm, mabebe <[email protected]> wrote:
> Thanks...
>
> On Apr 24, 10:49 am, "Alejandro D. Garin" <[email protected]> wrote:
>
> > Hi,
>
> > Try moving your applicationContext.xml to WEB-INF/applicationContext.xml
>
> > On Fri, Apr 24, 2009 at 10:38 AM, 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
-~----------~----~----~----~------~----~------~--~---