|
From: Matt R. <li...@ra...> - 2004-04-30 09:45:23
|
I found that adding /WEB-INF/action-servlet.xml to my contextConfigLocation <context-param> solved my issue. Aren't listeners supposed to load before servlets? If not, I guess I'll have to use the Servlet. I'm on Tomcat 5.0.19. Thanks, Matt > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] > On Behalf Of Rob Moore > Sent: Tuesday, April 27, 2004 2:09 PM > To: spr...@li... > Subject: [Springframework-developer] Re: [Commons Validator] > Error on Startup > > > Hey, Matt, > > I ran into something similar -- perhaps it is the issue you > are facing. > If you are running in a container that doesn't follow the Servlet 2.4 > initialization order you will not be able to use the > ContextLoaderListener. Instead, you'll need to use the > ContextLoaderServlet and ensure that it loads before the > DispatcherServlet. When I came across this it was manifested > by a failed > dependency -- that is, the reference I expected to be > available wasn't > in the context so configuration failed. > > HTH, > > Rob > > Matt Raible wrote: > > I figured out what the issue is - but don't know how to fix > it. If I > > put the validatorFactory into my "applicationContext.xml", then > > everything works as expected. But if I put it into > > "action-servlet.xml", then it doesn't work. It would be nice if it > > were able to be in both places. If it can't be, it should > probably be > > documented and explained. > > > > Matt > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at > ThinkGeek For a limited time only, get FREE Ground shipping > on all orders of $35 or more. Hurry up and shop folks, this > offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=> 12297 > > _______________________________________________ > > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |