2014-12-05 10 views
0

저는 SpringMVC와 Tomcat을 사용하여 풀 스택 웹 애플리케이션을 작성하고 있습니다. 프로그램을 실행하면 오류 메시지가 나타나지 않고 로그에 아무 것도 나타나지 않습니다. 하지만 우편 배달부에서 "요청한 리소스를 사용할 수 없습니다."라는 메시지가 표시됩니다.tomcat 7 : 요청한 리소스를 사용할 수 없습니다.

<web-app xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation=" 
     http://java.sun.com/xml/ns/javaee 
     http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
    version="3.0"> 

<context-param> 
    <param-name>contextConfigLocation</param-name> 
    <param-value>classpath:spring/business-config.xml</param-value> 
</context-param> 

<listener> 
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
</listener> 

<servlet> 
    <servlet-name>mvc-dispatcher</servlet-name> 
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
</servlet> 

<servlet-mapping> 
    <servlet-name>mvc-dispatcher</servlet-name> 
    <url-pattern>/</url-pattern> 
</servlet-mapping> 

</web-app> 

내 MVC-디스패처-servlet.xml에

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:mvc="http://www.springframework.org/schema/mvc" 
    xmlns:context="http://www.springframework.org/schema/context" 
    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.xsd 
    http://www.springframework.org/schema/mvc 
    http://www.springframework.org/schema/mvc/spring-mvc.xsd 
    http://www.springframework.org/schema/context 
    http://www.springframework.org/schema/context/spring-context.xsd"> 

<mvc:annotation-driven /> 

<bean id="JspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> 
    <property name="prefix" value="/WEB-INF/jsp/"/> 
    <property name="suffix" value=".jsp"/> 
</bean> 

</beans> 

이 원인이 될 수있는 무엇을 어떤 아이디어 : 여기 내 web.xml에있어?

+0

을 그냥 궁금해서하는 경우 : 당신이 풀 "을 의미합니까 무엇 스택 "웹 응용 프로그램? –

+0

스프링의 Model-View-Controller 스택을 최대한 활용한다는 의미입니다. –

+0

: 단지 당신이 사용하는 용어의 의미가 아닙니다. 또한 유감스럽게도이 질문에 만족할만한 대답을 얻지 못할 가능성이 있습니다. 왜이 두 가지 XML 파일을 보면서이 문제가 발생하는지 판단하기가 어렵 기 때문입니다. Spring MVC/Tomcat 프로젝트를 훨씬 쉽고 오류가 적은 프로젝트로 설정하기 때문에 Spring Boot를 사용하여 프로젝트를 설정하도록 제안 할 수 있습니다. –

답변

0

이클립스로 작업> 프로젝트를 시도 청소 ... 그리고 바로 "서버"보기에서 톰캣 서버를 클릭하고 "깨끗한 ..."

+0

그래, 시도했지만 여전히 같은 오류 메시지가 나타납니다. –

관련 문제