3 Replies Latest reply on Aug 23, 2003 9:21 AM by jonlee

    How to get rid of Jetty listing all webapps when accessing d

    alwyn

      Hi,

      I'm using 3.2.1 with Jetty.

      None of our war's map to the default context (and we don't want any to). What we get is that when accessing the root context, Jetty gives a list of all available applications.

      How can I stop this from being displayed?

        • 1. Re: How to get rid of Jetty listing all webapps when accessi
          yurix

          Hi. I don't know is it really what you need. but you can try it anyway.
          Edit file jboss-service.xml, which is located in $JBOSS_HOME/server/default/deploy/jbossweb-jetty.sar/META-INF by additing something like this:

          /
          C:\jboss\webroot\
          C:/jboss/server/default/deploy/jbossweb-jetty.sar/webdefault.xml

          Check that you point right you webdefault.xml.
          It will create default web context for in directory which is specified in second block. That directory should include WEB-INF dir with some empty web.xml - it might works without WEB-INF i never try :=)
          Then put index.html and redirect webflow to some else like error page. Obs! jsp is not supported !
          Good luck!

          • 2. Getting JSPs to work
            trajano

            Has anyone figured out how to get JSPs to work with the addWebApplication call in jboss-service.xml for Jetty?

            • 3. Re: Getting JSPs to work
              jonlee

              You'd have to experiment with the following remedy as I have only examined possible configuration with an external context. I'll probably get around to a full tech note in the next couple of days but it doesn't seem too flexible.

              http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=