Discussion Locked

Problem in running servlets in Win2000

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have installed Windows 2000 Professional as my
OS.I can compile a servlet properly,but when I want to execute it using the servletrunner utility
I'm getting servlet not found or some other error messages.What should I do to get the servlet executed?

1 reply

by compu_doc

The problem is not related to your OS. You need to set the servlet properties before you try running it. Properties are stored in a text file with a default name of servlet.properties.

The servletrunner utility has two properties for servlets:
servlet.name.code : The Full class name of the servlet.
servlet.name.initargs: The servlet's init params.

Also make sure that the servlet classes are a part of your classpath. The Classpath variable may not have been set when you installed Win2K.

Also see http://www.docs.cs.huji.ac.il/java/tutorialaug98/servlets/servletrunner/

Hope this helps, Ravi

This discussion is closed to new replies.