The moose likes Servlets and the fly likes Configure to include servlet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Configure to include servlet problem" Watch "Configure to include servlet problem" New topic

Configure to include servlet problem

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
hi I just started using java web service and is having problem running servlets.
I configure my web.xml file to look like this
<?xml version="1.0"?>
<web-app version="2.4" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<!-- General description of the PM Application -->
This is the Java application

I put the servlet in dir

I try to invoke the servlet frm a form ie
<FORM method="post" action="/MercProServlet">
but it return resource not available
my jsp is in D:\jwstutorial13\examples\web\scrmypm\build
Using jsp with beans seems to be working fine.
What am I doing wrong? Help.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
This is more like servlet related problem, moving this thread to the Servlets Forum where you may get some help.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036

Never never never try to use a class not in a defined package in serious servlets or JSP work. The JVM may be trying to load it from the "current directory" - something you have no control over. Define a package, put the compiled class in the right place according to the package.

I agree. Here's the link:
subject: Configure to include servlet problem
It's not a secret anymore!