A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Simple HelloServlet not working
Joined: Aug 02, 2006
Apr 03, 2007 03:41:00
I am reposting this because my previous post had too many replies, I think this was discouraging people.
I am using
, HelloServlet, prints a simple Hello
statement. I create a hello.war file with files
web.xml is as -
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" >
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
"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
Further, I have also tried putting my files in jboss/catalina/webapps
The structure is as
At the browser, I do
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
Joined: Aug 11, 2006
Apr 03, 2007 03:53:00
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.
Joined: Dec 11, 2004
Apr 03, 2007 04:03:00
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.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Simple HelloServlet not working
how to use the servlet in tomcat??
Can not install Tomcat4.0 into Window 95?
Anyone try to put java classes file into Tomcat ever?
where to put servlets? (searched 1st)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015