2 Replies Latest reply on Sep 1, 2015 1:06 PM by kloss_rafael

    No file extension in servlet path

    ambrish_kumar

      Hi Everyone,


      I am getting the following Exception in production environment,server is jboss.


      javax.servlet.ServletException: java.lang.IllegalArgumentException: no file extension in servlet path: /SpringDemo
           org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:126)
           org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
           org.ajax4jsf.Filter.doFilter(Filter.java:175)
           org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           org.j.............
      ........................



      But when I deploy the same EAR file on my local jboss server then no exception occurs.Could anyone tell me the reason.


      Any help would be appreciated.


      Thanks


      Ambrish




        • 1. Re: No file extension in servlet path
          niox.nikospara.yahoo.com

          Does this exception have a cause lower in the stack trace?

          • 2. Re: No file extension in servlet path
            kloss_rafael

            Hi,

             

            There is any suggestion for this problem ?

            I work in seam 2.2.0 project and i have same problem, look the stack:

             

            avax.servlet.ServletException: java.lang.IllegalArgumentException:  : /UploadFile

              org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:126)

              org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              br.com.rp.filter.URLFilter.doFilter(URLFilter.java:72)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:78)

              org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

            </pre><p><b>root cause</b></p><pre>java.lang.IllegalArgumentException: no file extension in servlet path: /UploadFile

              org.jboss.seam.mock.MockViewHandler.getActionURL(MockViewHandler.java:45)

              org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:74)

              org.jboss.seam.faces.FacesManager.redirect(FacesManager.java:168)

              org.jboss.seam.faces.Redirect.execute(Redirect.java:154)

              org.jboss.seam.exception.DebugPageHandler.handle(DebugPageHandler.java:32)

              org.jboss.seam.exception.Exceptions.handle(Exceptions.java:76)

              org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:114)

              org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              br.com.rp.filter.URLFilter.doFilter(URLFilter.java:72)

              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:78)

              org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

             

             

            Very Best