struts1.3 小例子在TOMCAT6.5 运行启动服务器后停在  “Initializing Spring root WebApplicationContext “ 不动,很久很久才能启动完毕请求哪位高手指点指点跪求~谢谢

解决方案 »

  1.   

    http://c20031776.blog.163.com/blog/static/684716252011111103237301/
      

  2.   

    你说的是struts1 但是显示的错误却是spring,查看你的web.xml中是否配置spring
      

  3.   

    1楼那位的建议我已试过,将oro.jar文件删掉,而且struts头文件改成1.2的了 ,但是还没用
    2楼那位的建议我已检查过, web.xml中没有配置spring相关配置  
    3楼那位,我先贴出 ,请各位高手再帮忙找找原因,谢谢
    而且有一点特别奇怪,我在其它电脑上安装myeclipse6.5 或 8.5以上版本都能运行web.xml中的配置
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
    xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      
      
      <servlet>
       <servlet-name>ac</servlet-name>
       <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
       <servlet-name>ac</servlet-name>
       <url-pattern>*.do</url-pattern>
      </servlet-mapping>
    </web-app>struts-config.xml中的配置
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
              "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    <struts-config>
    <action-mappings>
    <action path="/login" type="com.bjsxt.struts.action.LoginAction"></action>
    </action-mappings></struts-config>
      

  4.   

    看看tomcat里面是不是还有其他的项目在啊,有的话删掉他,还有work文件夹一起删掉
      

  5.   

    在myEclipse里,你找找有没有绿色树叶图标的文件~~~
      

  6.   

    回楼上:
          (1)web.xml配置贴全了
           (2)整个工作没有配置任何spring相关配置
           (3)tomcat只装载了一个项目
            4 楼上那位说的绿色树叶的图片我还真么见过,请问在哪能找到,请详细说明,谢谢向各位高手求助!