jsp - How to solve 404 caused by Severe: PWC6117: File "null" not found in Controller? -


i have 2 login pages: , customer login page. when login redirects chat page map /am/chatpage , customer redirects /customer/chatpage. problem doesn't load jsp file.

here error in glassfish:

info:   show chatpage-------------------- severe:   pwc6117: file "null" not found 

note: login process handled spring web security in websecurityconfig.java

in login controller have @requestmapping() am chat page:

@requestmapping(value = "/am/chatpage", method = requestmethod.get)      public string chatpage(model model)      {          system.out.println("show chatpage--------------------");          model.addattribute("name","sample name");          model.addattribute("twitter","@sample");          return "amchatpage";      }

and customer chat page:

@requestmapping(value = "/customer/chatpage", method = requestmethod.get)      public string showcustchat(model model)      {          system.out.println("show customer chat----------------------");          return "customerchatpage";      }

below springwebappinitializer

    @override      public void onstartup(servletcontext sc) throws servletexception      {          annotationconfigwebapplicationcontext context = new annotationconfigwebapplicationcontext();          context.register(applicationcontextconfig.class);                    servletregistration.dynamic dispatcher = sc.addservlet("dispatcher", new dispatcherservlet(context));          dispatcher.setloadonstartup(1);          dispatcher.addmapping("/");      }

things i've done far:

  • i tried solution in pwc6117: file “null” not found using modelandview still doesn't load.
  • added dispatcher.addmapping("/am/"); or dispatcher.addmapping("/am/**"); in springwebappinitializer.

assumptions:

i have controller map /welcomepage , works fine , shows jsp. tried loading amchatpage.jsp , customerchatpage.jsp in controller , works fine. think error appears map pattern /am/** or /customer/**. can me fix problem?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -