자바를자바
120
2019-12-03 12:56:46 작성 2019-12-03 13:11:04 수정됨
1
58

타일즈 리턴 페이지 not found에 문의 드립니다.


아래의 컨트롤러를 보시면 return이 없는데도 test11.do페이지를 찾습니다. 

혹시 리턴값이 없을 때 해당 화면 페이지를 못찾게 할 수는 없을까요 ?! 

 컨트롤러 소스입니다. 

	@RequestMapping(value = "empty/test11.do", method = RequestMethod.GET)
	public void s(ItkeyUtilsMap itkeyUtilsMap, HttpServletRequest req) throws Exception {
		
	}


혹시 컨트롤러에서 return 설정을 안했을 때 해당 페이지 화면을  안 찾게 할 수 있을까요 ? 

타일즈 설정은 아래와 같습니다. 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
	   "-//Apache Software Foundation//DTD Tiles Configuration 3.0//EN"
	   "http://tiles.apache.org/dtds/tiles-config_3_0.dtd">


<tiles-definitions>
	<definition name = "default" template="/WEB-INF/views/common/layout/template.jsp">
		<put-attribute name = "title" value="hi!Itistitle" />
		<put-attribute name = "header" value="/WEB-INF/views/common/layout/header.jsp" />
		<put-attribute name = "nav"	value="/WEB-INF/views/common/layout/nav.jsp"/> 
		<put-attribute name = "body" />
		<put-attribute name = "footer" value="/WEB-INF/views/common/layout/footer.jsp" />
			
	</definition>
	
	<definition name="*" extends="default">
		<put-attribute name="body" value="/WEB-INF/views/{1}.jsp" />
	</definition>
	
	<definition name="empty" template="/WEB-INF/views/common/layout/empty.jsp">
		<put-attribute name="content"/>
	</definition>
	
	<definition name="empty/*" extends="empty">
		<put-attribute name="content" value="/WEB-INF/views/{1}.jsp" />
	</definition>
	
	
</tiles-definitions>



	


스프링에서의 설정입니다. 

	<!--Tiles -->
	<beans:bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
		<beans:property name="viewClass" value="org.springframework.web.servlet.view.tiles3.TilesView" />
		<beans:property name="order" value="1" />
	</beans:bean>
	
	<beans:bean id = "tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
		<beans:property name = "definitions">
			<beans:value>/WEB-INF/tiles/tiles.xml</beans:value>
		</beans:property>
		
	</beans:bean>
	
	<!--Resolves views for rendering by @Controllers to .jspresources in the /WEB-INF/views directory -->
	<beans:bean class ="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name= "prefix" value="/WEB-INF/views/" />
		<beans:property name= "suffix" value=".jsp" />
		<beans:property name= "order"  value="2" />
	</beans:bean>




오류내역


12월 03, 2019 12:54:28 오후 org.apache.catalina.core.ApplicationDispatcher invoke

심각: Servlet.service() for servlet [jsp] threw exception

javax.servlet.ServletException: File [&#47;WEB-INF&#47;views&#47;test11.jsp] not found

at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:408)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:375)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:591)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:527)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:868)

at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:679)

at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:673)

at org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:123)

at org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)

at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)

at org.apache.tiles.request.render.ChainedDelegateRenderer.render(ChainedDelegateRenderer.java:68)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)

at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:188)

at org.apache.tiles.template.InsertAttributeModel.execute(InsertAttributeModel.java:132)

at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:299)

at org.apache.jsp.WEB_002dINF.views.common.layout.empty_jsp._jspx_meth_tiles_005finsertAttribute_005f0(empty_jsp.java:150)

at org.apache.jsp.WEB_002dINF.views.common.layout.empty_jsp._jspService(empty_jsp.java:118)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)

at org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)

at org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)

at org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)

at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:221)

at org.apache.tiles.renderer.DefinitionRenderer.render(DefinitionRenderer.java:59)

at org.springframework.web.servlet.view.tiles3.TilesView.renderMergedOutputModel(TilesView.java:132)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1282)

at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Unknown Source)


12월 03, 2019 12:54:28 오후 org.apache.catalina.core.ApplicationDispatcher invoke

심각: Servlet.service() for servlet [jsp] threw exception

java.io.IOException: java.io.IOException: JSPException including path '/WEB-INF/views/test11.jsp'.

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:504)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)

at org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)

at org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)

at org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)

at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)

at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:221)

at org.apache.tiles.renderer.DefinitionRenderer.render(DefinitionRenderer.java:59)

at org.springframework.web.servlet.view.tiles3.TilesView.renderMergedOutputModel(TilesView.java:132)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1282)

at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Unknown Source)

0
0
  • 답변 1

  • 태양만세
    6
    2019-12-03 14:23:23

    @ResponseBody 붙여보시고 컨트롤러에 매핑 잘 돼있나도 콘솔 찍어보세요

    0
  • 로그인을 하시면 답변을 등록할 수 있습니다.