zoukankan      html  css  js  c++  java
  • atitit.404错误的排查流程总结


    atitit.404错误的排查流程总结

    #----------jsp  head  errorPage=""
    del zeu ok le.

    #------resin 服务器配置问题。俩个应用配置到了同样的的文件夹..
    paip.404err two app cfg  one same dir


    /  cant access

    /app1   only can access ..



    envi ..resin4..


    作者: 老哇的爪子Attilax 艾龙,  EMAIL:1466519819@qq.com
    来源:http://blog.csdn.net/attilax

    #------404 urlrewrite 伪静态调用失败
    使用了urlrewrite伪静态但是,没有找到规则对应。。查看日志可以解决..



     
    #-----------1.应用没有启动sucess...  查看log或者web服务器管理控制台....

     C:\resin-4.0.36\resin.exe --server homiSearchServerServerID console
     C:\resin-4.0.36\resin.exe --server homiSearchServerServerID console
     
     查看log....
     logz上能看到个所有的mvc url路线..使用npp过滤寻找..一哈就砍出来兰..
     
     #-----要是使用了struts...struts中断了流程...查看struts配置..
     
    #----2.spring mvc @Controller问题
    //todo o40 must ctrl... if compent  cant be find..   ioc  contl==comp but mvc not equi..
    @Controller
    public class visitorBlockService {



    #-----3.spring mvc  导入 ModelAndView 错误

    import org.springframework.web.portlet.ModelAndView;



    不应该引入这个ModelAndView 应该引入:

    import org.springframework.web.servlet.ModelAndView;


    #-----可能filter wirte err...
    spr.jsp



    yaosi dis chain.doFilter  ,and no forward...then  empty...output...

      if(requestURI.endsWith("spr.jsp")){
             //  resume to access    chain.doFilter(request, response);
                core.log("-- endsWith spr.jsp stop the chainfileter");
                RequestDispatcher requestDispatcher = request.getRequestDispatcher("spr.jsp");
                requestDispatcher.forward(request, response);//这两句怎么解释啊?
                //   ((HttpServletResponse)response).flushBuffer()
                return;
            }
            
    #-------使用了域名配置方式,但是使用ip访问
    resin4.0.22会这个问题..
            

    参考
    .spring mvc 404错误的解决
    spring mvc ModelAndView 404 异常 - VC MFC.htm
  • 相关阅读:
    python关于字典嵌套字典,列表嵌套字典根据值进行排序
    Linux安装pycharm并添加图标到桌面
    python_requests ~爬虫~小视频~~~
    Python如何实现doc文件转换为docx文件?
    python同时取每个列表的第一个元素
    python根据字典的值进行排序:
    lambda 函数的用法
    python的拷贝方式以及深拷贝,浅拷贝详解
    python实现快速排序
    python不使用系统库中的排序方法判断一个数组是否是有序数组
  • 原文地址:https://www.cnblogs.com/attilax/p/15199207.html
Copyright © 2011-2022 走看看