5 Replies Latest reply on May 5, 2006 8:35 AM by Gorkinson Perez Perez

    JBoss 3.2.3 and Root Directory ¿?

    Gorkinson Perez Perez Newbie

      Hi,

      i have Jboss 3.2.3 and i dont know what is the Root directory.

      When a user access to http://MyIP:8080/index.html , where i have to put the index.html file ???


      In 3.2.6 version, i put it in \jboss-3.2.6\server\default\deploy\jbossweb-tomcat50.sar\ROOT.war , but the version 3.2.3 doesnt have it ...


      Thank you for your help.

      (Por cierto... hablo también hablo español)

        • 1. Re: JBoss 3.2.3 and Root Directory ¿?
          Ales Justin Master

          What's the most likely Tomcat stuff in deploy directory in 3.2.3 version?

          • 2. Re: JBoss 3.2.3 and Root Directory ¿?
            Gorkinson Perez Perez Newbie

            Well... finally its solved ...

            there is a directory called "jbossweb-tomcat41.sar".

            I modified the current jboss-service.xml in deploy/jbossweb-tomcat41.sar/META-INF , and I change:



            for



            And I added a ROOT.war in deploy.

            Now it works ...


            But I have a new Problem ... xD


            I want to catch the typical errors(400, 401, 500, JavaExceptions...).
            I added to /jbossweb-tomcat41.sar/web.xml the lines:

            <error-page>
            <error-code>502</error-code>
            /GestionErrores.jsp?error=502
            </error-page>
            and it work ok.

            But the problem is the error 401.

            I catch it with:
            <error-page>
            <error-code>502</error-code>
            /GestionErrores.jsp?error=502
            </error-page>

            I have an aplicatión that needs autentication.

            With out 401 catching the aplication works OK (the user see a typical autenticatino window whith user and pass).
            but if i catch the 401 error, the aplication doesnt work ...

            If i put
            <error-page>
            <error-code>502</error-code>
            /GestionErrores.jsp?error=502
            </error-page>
            in web.xml , the aplication doesnt work.


            Well.... thanks for your reply ...

            • 3. Re: JBoss 3.2.3 and Root Directory ¿?
              Gorkinson Perez Perez Newbie

              .. i changed in jboss-service.xml

              DefaultContext cookies="true" crossContext="true" override="true"

              for

              Context path="" docBase="deploy/ROOT.war/" cookies="true" crossContext="true"


              now, the root directory is deploy/ROOT.war
              .....

              • 4. Re: JBoss 3.2.3 and Root Directory ¿?
                Gorkinson Perez Perez Newbie

                i repeat the message .. there was to much errors ...

                • 5. Re: JBoss 3.2.3 and Root Directory ¿?
                  Gorkinson Perez Perez Newbie

                  Well... finally its solved ...

                  there is a directory called "jbossweb-tomcat41.sar".

                  I modified the current jboss-service.xml in deploy/jbossweb-tomcat41.sar/META-INF , and I change:

                  DefaultContext cookies="true" crossContext="true" override="true"

                  for

                  Context path="" docBase="deploy/ROOT.war/" cookies="true" crossContext="true"

                  And I added a ROOT.war in deploy.

                  Now it works ...


                  But I have a new Problem ... xD


                  I want to catch the typical errors(400, 401, 500, JavaExceptions...).
                  I added to /jbossweb-tomcat41.sar/web.xml the lines:

                  <error-page>
                  <error-code>NumError</error-code>
                  /ErrorPage.jsp?error=NumError
                  </error-page>
                  and it work ok.

                  But the problem is the error 401.

                  I catch it with:
                  <error-page>
                  <error-code>401</error-code>
                  /PageError.jsp?error=401
                  </error-page>

                  I have an aplicatión that needs autentication.

                  With out 401 catching the aplication works OK (the user see a typical autenticatino window whith user and pass).
                  but if i catch the 401 error, the aplication doesnt work ...

                  If i put
                  <error-page>
                  <error-code>401</error-code>
                  /PageError.jsp?error=401
                  </error-page>
                  in web.xml , the aplication doesnt work.


                  Well.... thanks for your reply ...