Hello
It was my first MVC application in which I am tring to invoke my controller. My request is mapped correctly with the controller though handleRequest gets called multile times and finally I get the exception "java.lang.OutOfMemoryError: Java heap space" .
Following are my details of configuration file (jca-mvc.xml) . (I have declared both configuration file and application specific *-servlet.xml separately)
<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/comp/**">componentController</prop>
</props>
</property>
</bean>
And my application specific file *-servlet.xml is as follows
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<import resource="jca-mvc.xml" />
</beans>
I have decleared handleRequest as follows
@RequestMapping(method = { RequestMethod.GET, RequestMethod.POST })
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
and my controller is having @controller annotation.
the URL which I am hitting is
http://localhost:8080/Mvc/app1/comp/welcome.jsp


Reply With Quote