1 Reply Latest reply on Sep 18, 2002 10:30 PM by joelvogt

    Deployment Mapping Error (No Context)

    mkithany

      Hi JBosses,

      I created the context in server.xml file and added a following CONTEXT:


      Also, my Directory structure is as follows:
      /kithany
      /kithany/META-INF/application.xml
      /kithany/WEB-INF/web.xml
      /kithany/foo.jsp
      /kithany/index.html
      /kithany/kithany.war

      I have my application.xml file as follows:
      ---------------------------------------------------------
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <display-name>KITHANY</display-name>


      <web-uri>kithany.war</web-uri>
      <context-root>/kithany</context-root>



      ---------------------------------------------------------

      And, my web.xml file is as:
      ---------------------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app>
      <session-config>
      <session-timeout>
      30
      </session-timeout>
      </session-config>
      <welcome-file-list>
      <welcome-file>
      index.jsp
      </welcome-file>
      <welcome-file>
      index.html
      </welcome-file>
      <welcome-file>
      index.htm
      </welcome-file>
      </welcome-file-list>
      </web-app>
      ---------------------------------------------------------

      I then create WAR file as follows:
      ---------------------------------------------------------
      #pwd
      #/kithany
      #jar -cvfM kithany.war .
      ---------------------------------------------------------

      Which I then, put it into /jboss/server/default/deploy and then start my JBOSS(Tomcat/Catalina) Server and then on browser, I type following:
      http://MY_IP_ADDR_ESS:8080/kithany
      http://MY_IP_ADDR_ESS:8080/kithany/index.html


      but it gives still gives following message.
      Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request

      Experts, could you please guide me on to this.

      THANKS!

      Manoj G. Kithany
      manojkithany108@hotmail.com

        • 1. Re: Deployment Mapping Error (No Context)
          joelvogt

          You will not need to put any context in server.xml as jboss will not read
          this file anyway. The problem with your context seems to be linked to your
          error

          java.lang.NoClassDefFoundError: org/apache/naming/TransactionRef

          This is either a classpath conflict or you have put jars in your lib
          directory which are conflicting with required ones. You should probably
          check both, making sure that you only have the minimum required. For example
          a classpath of tools.jar in your jre and that is about it.