2 Replies Latest reply on Jun 18, 2003 10:25 AM by hgarrett

    Disable Jetty Welcome page..!?


      Hi everyone.
      I am using JBoss 3.2.2RC1 and i'm not using
      <context-root> neither <virtual-host> .
      I have more than one war file and each refers to
      a particular project.

      Project1.war, Project2.war, Project3.war...etc..

      This way i can access my project1.war with this:

      As it is expected when i put
      http://(IP):8080 i see 'Jetty Welcome page' with
      all addresses of the war files deployed by JBoss Server.

      Can i disable it?

      Can i put there an error page or anything else?

      Thanx anyway.

        • 1. Re: Disable Jetty Welcome page..!?

          Assuming you are using the embedded Jetty, just override it with your own root context. For example, put a ROOT.war sub-directory in the JBoss deploy directory.

          Ensure you have the necessary structure for a WAR in ROOT.war.

          In the ROOT.war/WEB-INF/jboss-web.xml:
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">

          Add a web.xml with the configurations you want for this context.

          Now you can put an index.html with the content you want to be seen. Just put your static content as would for a normal WAR in ROOT.war.

          Hope that helps.

          • 2. Re: Disable Jetty Welcome page..!?

            Yes it works JonLee !

            Thanx again! ;)