Raasi Potluri wrote:
I'm just a beginner and I have installed Tomcat5.0 and
try to run a simple servlet. I have copied the
compiled servlet on the webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping in the
web.xml file. I'm trying to call my HelloClientServlet
from
: dear friend i'm in a big trouble
http://localhost:3030/servlet/HelloClientServlet
Looks like you are depending on the invoker servlet to
instanciate your
servlet. The invoker servlet is no longer active by default.
You will need to map your servlet in web.xml.
Again, your servlets need
I'm just a beginner and I have installed Tomcat5.0 and
try to run a simple servlet. I have copied the
compiled servlet on the webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping in the
web.xml file. I'm trying to call my HelloClientServlet
from
First, is your servlet in a package?
Non-packaged servlets will not work.
Did you map your servlet in web.xml?
What is the URL you are using to call the servlet?
You don't need to set a classpath environment variable
Tomcat sets it's own.
Did you install a full j2sdk or just a jre?
Tomcat 5.0
http://localhost:3030/servlet/HelloClientServlet
Looks like you are depending on the invoker servlet to instanciate your
servlet. The invoker servlet is no longer active by default.
You will need to map your servlet in web.xml.
Again, your servlets need to be packaged.
On Thu, 2004-11-04
Hello Ben many thanks for your reply,
well, My servlet is a non-packaged one, I will change
it. I'm worried, if it is a packeged one how to call
it from the url? and how to configure the the web.xml?
Yes I have mapped my servlet in the web.xml file. this
is the bit I have added in the web.xml
Hello Ben many thanks for your reply,
well, My servlet is a non-packaged one, I will change
it. I'm worried, if it is a packeged one how to call
it from the url? and how to configure the the web.xml?
In the servlet class node, fully qualify your servlet class
Example:
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
servlet-nameHelloClientServlet/servlet-name
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
servlet-nameHelloClientServlet/servlet-name
On Thu, 2004-11-04 at 22:53, Raasi Potluri wrote:
Hello Ben I have not packaged the servlet but just
changed the servlet mapping node, to
servlet
servlet-nameHelloClientServlet/servlet-name
servlet-classHelloClientServlet/servlet-class
/servlet
servlet-mapping
Hello Ben, I know why all my working servlets have
stopped working all of a sudden, something is wrong,
could be I have mis placed some of the files in Tomcat
installation directory, because when I type
http://localhost:3030
it is use to give me a congratulations page, now it
says following
11 matches
Mail list logo