I'm new to Spring.
I worked through the sections of this
tutorial that cover web flow. My ultimate goal is to use Spring to implement new features in a legacy
servlet webapp and then gradually replace the existing code making the servlet webapp into a Spring webabb.
So, to that end, I decided to go through the web flow part of the tutorial again, changing names to make my own first "hello world" screen with Spring within the development copy of the legacy servlet application.
My problem is that when I put the servlet mappings for Spring into my web.xml, I get 404s trying to get to my landing page.
[*]I'm using WebLogic 9.2
[*]I converted the directory tree of my webapp to mimic the layout that Spring webapps use
[*]I copied spring.jar and spring-mvc.jar into my WEB-INF/lib
[*]My application is "abc", it is depllyed abc.war, weblogic.xml has this tag: <wls:context-root>nsd</wls:context-root>
I made a simplified version of my web.xml, with just one legacy servlet in it ( for the landing page ) and Spring. It works with the Spring stuff commented out, but not otherwise.
Here it is, my WEB-INF/web.xml for the "abc" webapp
This is my WEB-INF/abc-servlet.xml
Here is the code for my elementary controller:
Again, my problem isn't with the controller or the view (
jsp)...yet. Right now, when I include the Spring servlet mappings in my web.xml, I can't get to my landing page, I get a 404. When I yank the Spring servlet mappings, that problem goes away.
I'm a raw beginner with Spring, so I am not sure where to look.
Thanks in advance for any clues