Spring Java Config vs Jboss 7

前端 未结 8 1611
故里飘歌
故里飘歌 2020-11-28 14:41

I`m trying to run a simple application with spring java based configuration on jboss, but no success. This application works fine both on jetty and tomcat. The jboss log loo

8条回答
  •  眼角桃花
    2020-11-28 15:13

    I am using JBoss EAP 6.4. I was going through the thread.

    I would like to add that after changing mapping for dispatchServlet from "/" to "/* ". The JSP in your project might not process correctly. I suspect that since "/* " have more precedence over "/*.jsp ", therefore, JSPServlet might not be getting request to process the JSP and JSP will not be processed correctly. In my case, source of JSP is coming on browser as text.

    I have resolved this issue by defining JSP as servlet in web.xml as mentioned below. After that things worked fine for me :)

    
        index.jsp
    
    
    
        LoginServlet
        /login.jsp
    
    
    
        IndexServlet
        /index.jsp
    
    
    
        LoginServlet
        /login.jsp
    
    
    
        IndexServlet
        /index.jsp
    
    

    I spent lot of time on this, might help someone :))

提交回复
热议问题