2 Replies Latest reply on May 19, 2004 1:37 PM by George Berish

    Local JBoss http 500 Error.  Web Host JBoss no Problem

    George Berish Novice

      Can anyone point me in the right direction. I have a very simple servlet packaged in an .ear file.

      It deploys perfectly on a JBoss 3.2.3 server run by my web host. But when I try the same package on the local JBoss 3.2.3 server I just installed, I get a 500 error on my local Jboss 3.2.3. i.e.

      "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."


      The .ear package is simple:

      smallWebAppTest.ear
       META-INF/application.xml
       smallTest.war
       classes/SmallWebAppServlet.class
       lib/
       web.xml

      The Servlet Code is:
      import java.io.*;
      import javax.servlet.*;
      import javax.servlet.http.*;
      
      public class SmallWebAppServlet extends HttpServlet {
       public void doGet
       ( HttpServletRequest request, HttpServletResponse response)
       throws IOException, ServletException {
       response.setContentType("text/html");
       PrintWriter out = response.getWriter();
       out.println("<html>");
       out.println("<body>");
       out.println("<head>");
       out.println("<title>Hello World!</title>");
       out.println("</head>");
       out.println("<body>");
       out.println("<h1>Yep. The SmallWebAppServlet Worked.</h1>");
       out.println("</body>");
       out.println("</html>");
       }

      The application.xml file cods is:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
      <application>
       <display-name>Small Web App Test</display-name>
       <module id="1">
       <web><web-uri>smallTest.war</web-uri></web>
       </module>
      </application>

      The web.xml code is
      <?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>
       <servlet>
       <servlet-name>Web App Test</servlet-name>
       <servlet-class>SmallWebAppServlet</servlet-class>
       </servlet>
      </web-app>
      


      Thanx
      George