4 Replies Latest reply on Mar 11, 2003 5:21 PM by toadskin

    Your going to kill me!  I can't fix my mapping configuration

    kaboom

      Before everyone jumps all over me. I read all the posts and docs and still can't figure out my problem and it's probably a small one at that. I still get the following error when trying to access:

      http://localhost:8080/examples

      Here's exactly what i've done:

      I've installed JBoss on my Win2k machine at:
      C:\jboss-3.0.6_tomcat-4.1.18

      Set my environmental and system vars to:
      CLASSPATH: C:\j2sdk1.4.0_02\lib\tools.jar;C:\jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\common\lib\servlet.jar;

      I also set up an environmental var as follows:
      TOMCAT_HOME: C:\jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x

      Then I started up JBoss just fine. No errors.
      Then I downloaded the examples.war and the application.xml file (previously posted in the forum).
      I put the war file in:
      C:\jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\webapps\examples\examples.war

      I put the application.xml in:
      C:\jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\webapps\examples\META-INF\application.xml

      Then I tried to access the examples at:
      http://localhost:8080/examples

      That's when I get the following error:
      MAPPING configuration error for request URI /examples

      The Tomcat error page says:
      HTTP Status 500 - No Context configured to process this request
      ----------------------------------------------------------
      type Status report

      message No Context configured to process this request

      description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.


      I hope someone can help me out and other people new to JBoss at the same time.

      Thanks,
      KABOOM

        • 1. Re: Your going to kill me!  I can't fix my mapping configura
          joelvogt

          Ok, first probably not a good idea to have servlet.jar on your classpath.

          Second, the tomcat/webapps directory won't give you any luck. If you've got an examples.war file, then drop it into jboss/server/default/deploy and if it is a valid war file it will deploy.

          Anything your want to have work with jboss goes int he deploy directory.

          • 2. Re: Your going to kill me!  I can't fix my mapping configura
            kaboom

            I'm not really a programmer. I'm more of a pseudo-system admin person who was asked to do this for our test server while the real admin person is away.

            I'm a little lost with this classpath stuff. What should go in the classpath?

            • 3. Re: Your going to kill me!  I can't fix my mapping configura
              joelvogt

              If your not sure what to have on your classpath, then best to have nothing. Set JAVA_HOME to be your jdk directory, and that should pretty much do it. JBoss will work out it's classpath from what is deployed when you start it up.
              The important thing is to make sure JBoss starts without errors, and then put your war file in JBoss's deploy directory. If it's a valid application it will deploy and be accessible.

              • 4. Re: Your going to kill me!  I can't fix my mapping configura
                toadskin

                I am a little puzzled over the placement of the warfile. JBoss handles the deployment for you so why not drop the warfile in /jboss/server/default/deploy ? The war should be stand-alone so you should not need any jars. If you've got third-party stuff toss it in /jboss/server/default/lib where it will load at boot time.