正在练习一个网页系统,有用到struts2,但是配置好struts2之后,启动tomcat就遇到了问题~
我的web.xml文件如下:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
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_2_5.xsd">
<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>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
struts2.xml文件如下:<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<!-- Action所在包定义 -->
<package name="JBW" extends="struts-default">
<!-- 通过Action类处理才导航的的Action定义 -->
<action name="Login" class="action.LoginAction">
<result name="input">/login.jsp</result>
            <result name="aLogin">/adminMain.jsp</result>
            <result name="dLogin">/directorMain.jsp</result>
            <result name="tLogin">/teacherMain.jsp</result>
            <result name="sLogin">/studentMain.jsp</result>
</action>
</package>
</struts>导入的包
然后我在启动tomcat后,停在这里就不动了
然后会跳出一个JavaCharStream类,显示如下:琢磨了很久还是没有找到解决方法,希望有人能帮忙一下~谢谢~
StrutsTomcatJava编码