2 Replies Latest reply on Mar 29, 2005 11:46 AM by feldgen

    Redirecting root-context to servlet including servlet-contex

    feldgen

      Hi,

      I have JBoss-3.0.6 with Jetty and run some servlets.
      I want to ged rid of the context-listing provided if the machine is addressed without path (e.g. https://192.168.1.1:8443).
      I tried to register one of the servlets with root-context but then the style-sheets and pics corresponding to the servlets context are not found anymore.
      What can I do in this case? How exactly do I redirect the above URL to say https://192.168.1.1:8443/myServlet (I could not really figure out where to put a index.html for usage with root-context)?
      If redirecting is the wrong method with https how can I have the stylesheets and pictures be found if my Servlet is registered in root-context?

      Thnx in advance,

      Lutz Feldgen

        • 1. Re: Redirecting root-context to servlet including servlet-co
          feldgen

          I just had another strange behaviour:

          If I remove the registering of the default-servlet with mapping to "/" in webdefault.xml of jbossweb.sar the stylesheets and pictures for my other servlets will not be found when addressed correctly with the servlet-path...
          Any suggestions?

          Thnx,

          Lutz Feldgen

          • 2. Re: Redirecting root-context to servlet including servlet-co
            feldgen

            Ok, I managed it with some workaround...

            Due to JBoss being an application-server and not a web-server I created a dummy web-application-archive with all needed files except a real servlet and registered it with the welcome-file index.html to the "/"-context.
            The index.html has the meta-equiv-tag to refresh to my desired default-url...

            If there is any way to do this more easily with configuration any hint is appreciated.

            Lutz Feldgen