It's not a secret anymore!
The moose likes Servlets and the fly likes Simple HelloServlet not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Simple HelloServlet not working

Nupur Gupta
Ranch Hand

Joined: Aug 02, 2006
Posts: 45
I am reposting this because my previous post had too many replies, I think this was discouraging people.

I am using JBoss. My servlet, HelloServlet, prints a simple Hello
statement. I create a hello.war file with files


web.xml is as -

<?xml version="1.0"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "" >


I place the hello.war in the jboss/server/default/deploy directory.
JBoss starts up fine saying that the war file has been deployed.
In my browser, I type
This works fine.

However when I do

I get
"Internal Server Error
The server encountered an internal error (Internal Server Error) that
prevented it from fulfilling this request"
..and so on

I have been following the SAMS Teach yourself EJB book.

Further, I have also tried putting my files in jboss/catalina/webapps
The structure is as


At the browser, I do
http://localhost:8080/helloapp/HelloServlet and get

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

Please help. Thanks, DG
Abhishek Makkar

Joined: Aug 11, 2006
Posts: 22
Try looking into DD (web.xml), you must be missing URL mapping of this servlet. It should conform to the address you are typing in the browser.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:

Please do not post the same question more than once.
If you got responses the first time, follow up on them.
Ignoring them and posting again is just a waste of everyone's time.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Simple HelloServlet not working
It's not a secret anymore!