情况是这样的,在开发环境上所有程序没有异常
然后部署到linux服务器上后,某些跳转action开始跳黄页,错误页面(非500)你懂的
Log中错误异常如下(太长了,删剪版)
10-10-15 15:00:45 ERROR dispatcher.Dispatcher(Line:512) [http-9999-4] - Could not find action or result
No result defined for action com.b2b2c.arro.action.LoginAction and result  - action - file:/home/appadmin/B2B2C/webapps/B2B2C/WEB-INF/classes/struts.xml:36:50
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:350)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)

解决方案 »

  1.   

    应该是配置错误。
    也就是说,没有一个对应视图去对应com.b2b2c.arro.action.LoginAction
    你把你的struts2的配置文件发下吧。
      

  2.   

    struts.xml 里看看 路径什么 的配置写对没
      

  3.   

    这个问题就是你的action没有指向指定的结果(jsp页面不正确)!或者说你的action不存在
      

  4.   

    如果开发环境没有问题,配置照说问题不大。可能是应用服务器用的jar与工程用的jar包冲突了。
      

  5.   

    No result defined for action com.b2b2c.arro.action.LoginAction and result  - action - file:/home/appadmin/B2B2C/webapps/B2B2C/WEB-INF/classes/struts.xml:36:50
    检查下上struts.xml文件 
    贴出来看下
      

  6.   

    <?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.multipart.maxSize" value="1073741824"/>
        <package name="B2B2C" extends="struts-default" namespace="">  
    </struts>namespace="/" 的时候黄页
    现在namespace="" 原先黄页的好的,但是其他地方又出现黄页了
      

  7.   

    <?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.multipart.maxSize" value="1073741824"/>
        <package name="B2B2C" extends="struts-default" namespace="">  
    </struts>namespace="\" 的时候黄页
    现在namespace="" 原先黄页的好的,但是其他地方又出现黄页了
      

  8.   

    No result defined for action com.b2b2c.arro.action.LoginAction and result  - action - file:/home/appadmin/B2B2C/webapps/B2B2C/WEB-INF/classes/struts.xml:36:50ACTION RETURN 的目标 在STRUTS.XML里面没找到的错误。
    你看下你XML里面这个action com.b2b2c.arro.action.LoginAction的跳转配置。问题肯定在这里。
    然后检查一下这个ACTION里面所有方法的RETURN是否和XML里面<param name="root">result</param> name="root"的值一致。 
      

  9.   

    <param name="root">result</param> 
    这个NAME是你自己的。我贴的是我的
      

  10.   

    路径问题,或者是jar包冲突。
      

  11.   

    原因已经解决,TOMCAT正式环境work没删导致缓存
      

  12.   

    话说clean、 清缓存、 重启、 一步也不能少,解决各种疑难杂症