myeclipse中启动tomcat服务器时窗口中出现这个,是红字。
Source not found for Properties$LineReader.readLine() line: not available
下边console窗口中出现到 Parsing configuration file [struts.xml]停住不动了,这是怎么回事?
我在学习struts2,只建了一个小web service,里边有一个Loginaction。struts包也加了,web.xml文件也配置了,struts.xml也写了,我觉得好像是解析struts.xml文件时出了问题,可不知道除了什么问题,请各位高手们帮帮忙吧,谢谢了。

解决方案 »

  1.   

    应该是struts.xml的配置有问题,你运行一下xml文件的校验器,看看他报是么错误
      

  2.   

    检查struts.xml看看,或者把struts.xml内容贴出来,大家给你看看。
      

  3.   

    <?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>    
        <!-- Action所在包定义 -->    
        <package name="struts2" extends="struts-default">    
            <action name="hello"   
                class="lxn.struts2.demo.HelloAction">    
                <result name="success">/hello.jsp</result>
                <result name="error">/index.jsp</result>          
            </action>    
        </package>  
    </struts>  
    这是struts.xml文件,少东西了吗?呵呵