1 Reply Latest reply on May 5, 2011 7:22 AM by jaikiran pai

    Web application issue with JBoss AS 6

    Roshan Pradeep Newbie

      Hi

       

      I am not sure this is the correct discussion forum to ask my question.

       

      In my web application, the follwong filter mapping entries are mention in web.xml file.

       

      <filter>

              <filter-name>HttpFilter</filter-name>

              <filter-class>test.spring.http.security.HttpFilter</filter-class>

      </filter>

       

      <filter-mapping>

              <filter-name>HttpFilter</filter-name>

              <url-pattern>/http/*</url-pattern>

      </filter-mapping>

       

      So, when I try to access the following URL

       

                http://localhost:8080/http/invoke.http?&username=xdmin&password=1234&mappingid=dailytest

       

      I am getting the below error:

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[default]] (http-0.0.0.0-8080-8) Servlet.service() for servlet default threw exception: java.io.FileNotFoundException: The requested resource (/http/) is not available

              at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:655) [:6.0.0.Final]

              at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:342) [:6.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]

              at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:229) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) [:3.0.5.RELEASE]

              at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) [:3.0.5.RELEASE]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:130) [:1.0.2]

              at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) [:1.0.2]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at test.spring.http.security.HttpFilter.doFilter(HttpFilter.java:93) [:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_18]

       

       

      According to the org.apache.catalina.servlets.DefaultServlet.serveResource() method;

       

           String requestUri = (String)request.getAttribute("javax.servlet.include.request_uri");

       

            if (requestUri == null) {

              requestUri = request.getRequestURI();

            }

            else

            {

              throw new FileNotFoundException(sm.getString("defaultServlet.missingResource", RequestUtil.filter(requestUri)));

            }

       

      Why requestUri is not null??

       

      I am using JBoss AS 6 final and please help me to get this solved.

       

      Thanks.