4 Replies Latest reply on Oct 11, 2007 2:53 PM by peterj

    404 page not working

    shanportal

      I have set the follwoing properties in the *-object.xml.

      <!-- Control policy config -->
       <property>
       <name>control.portal.access_denied</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.portal.unavailable</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.portal.not_found</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.portal.internal_error</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.portal.error</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.portal.resource_uri</name>
       <value>/WEB-INF/jsp/error/portal.jsp</value>
       </property>
       <property>
       <name>control.page.access_denied</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.page.unavailable</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.page.not_found</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.page.internal_error</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.page.error</name>
       <value>jsp</value>
       </property>
       <property>
       <name>control.page.resource_uri</name>
       <value>/WEB-INF/jsp/error/page.jsp</value>
       </property>
       </properties>
      


      When i was trying to access the non exsting page it is not showing the Page 404 Message. Instaed it shows the default page of my portal. Is there any setting i am missing so that i could get the 404 page get displayed.

      Any help is highly appriciated. Thanks in advance.



        • 1. Re: 404 page not working
          peterj

          All portal requests (i.e., anything in the context /portal) are filtered through the portal controller (probably not the correct term) which determines what to do with them. Asking for a non-existent page causes the portal controller to show the home page. I doubt you could get a 404 error returned.

          • 2. Re: 404 page not working
            shanportal

            Hi Peter

            You are right, I am not getting the 404 status code. Inturn I am getting a 200 status code. Is there any setting I need to do so that i could set the customised 404 page for my portal. you advise on this highly appriciated.

            Thanks a lot.
            Raj

            • 3. Re: 404 page not working
              shanportal

              Is it possible to move this thread to Jboss Portal from Tomcat, HTTPD, Servlets & JSP. Any help is also appriciated.

              Thanks
              Raj

              • 4. Re: 404 page not working
                peterj

                 

                Is there any setting I need to do so that i could set the customised 404 page for my portal.

                I thought I already answered this question.