6 Replies Latest reply on Jul 7, 2003 12:35 AM by Pranav Kapil

    error 404 no default context

    joker1103 Newbie

      Hi all and excuse me!
      I have windows 2000 professional and jdk 1.4.0.
      I have decompressed jboss.
      I start it running run.bat.
      But when I try:
      It responde with an error

      No Default Context
      There is no default context registered with this server.
      Contexts known to this server are:




      The links above may not work if a virtual host is configured

      I have tryed with jboss 3.0.6 and jboss 3.2.1 but I have every time the same error

      What I wrong? Need some special task for the installation?


        • 1. Re: error 404 no default context
          Harald Gliebe Novice

          There's nothing wrong, you simply don't have any web-app bound to the root context path. You can access the deployed web applications with the linkes on the page your getting.
          If you want to bind your webapp as default web-app, configure the context-root in WEB-INF/jboss-web.xml file of your war:

          <?xml version="1.0"?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">



          • 2. Re: error 404 no default context
            sys user Master

            Can you or someone elaborate pls.I have a similar error.
            HTTP Status 500 - No Context configured to process this request

            I get this error when I try

            I also have a example ejb deployed Interest.As suggested above I have jboss-web.xml as follows

            <?xml version="1.0" encoding="UTF-8"?>



            But when I try http://localhost:8080/interest I get same error as above

            In addition I see following error in the log

            13:24:03,149 INFO [Engine] StandardHost[localhost]: MAPPING configuration error
            for request URI /
            13:24:14,649 INFO [Engine] StandardHost[localhost]: MAPPING configuration error
            for request URI /interest

            I have some error displayed in log for Mbean as well.
            which I am not able to figure out.

            I thought using JBOSS will be piece of cake, heck it is not.I am completely frustrated.Can some one guide me....

            • 3. Re: error 404 no default context
              Harald Gliebe Novice


              do you get any error messages when you deploy the web application?

              What is http://localhost:8080/interest ?
              Do you have a Servlet mapped to this URL?

              Your jboss-web.xml seems correct, could you please also post your web.xml file.


              • 4. Re: error 404 no default context
                sys user Master

                Here is the web.xml file

                <?xml version="1.0" encoding="UTF-8"?>

                <!-- ### Servlets -->




                <!-- ### EJB References (java:comp/env/ejb) -->


                I get no context error when I deploy the web application

                • 5. Re: error 404 no default context
                  sys user Master

                  I also get error messages while trying to start JBOSS related to Mbeans.Not sure whether they are related.Do I need to do some setting with Mbeans ?Can you help pls ...

                  • 6. Re: error 404 no default context
                    Pranav Kapil Newbie

                    See...there is no application configured to the ROOT context in case of JBoss.
                    The error message is telling you the same thing, read it carefully. To check your JBoss installation try this http://localhost:8080/jmx-console, it will start the JMX Console for you.