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

I know it seems a servlet question, but since it works perfectly on the hosted JBoss, 
I assume I have an installation problem with my local server?

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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835442#3835442

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835442


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to