시작 톰캣에 배포 할 때이 오류응용 프로그램이이 처음 스트럿츠 2 응용 프로그램입니다
"Application at context path `/HelloWorldStruts2` could not be started"
을 가지고 할 수 없습니다. 내 스트럿 응용 프로그램의
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>Struts 2</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
struts.xml
: 내 응용 프로그램의
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.devMode" value="true" />
<package name="helloworld" extends="struts-default">
<action name="hello"
class="com.tutorialspoint.struts2.HelloWorldAction"
method="execute">
<result name="success">/HelloWorld.jsp</result>
</action>
</package>
</struts>
무엇이 서버 로그에 있습니까? 어떤 라이브러리를 배포하고 있습니까? –
아마도 이전 필터를 사용할 것입니다. http://stackoverflow.com/a/17103563/1654265 –
아, 그리고 S2 버전은 무엇입니까? Andrea가 언급했듯이, 여전히 작동해야하지만 비추천 필터입니다. –