Hello,

i installed Jserv with SuSE Linux 6 and after some Problems it
seem to run: The example works.
Now i wrote my own test-servlet:

********************************************************************
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class HelloWorldServlet extends HttpServlet 
{
  public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException
  {
     res.setContentType("text/html");
     PrintWriter out = new PrintWriter(res.getOutputStream());
     out.println("<html>");
     out.println("<head>");
     out.println("<title>Hello World Servlet</title>");
     out.println("</head>");
     out.println("<body>");
     out.println("<h1>Hello World Servlet</h1>");
     out.println("<p>Hello world.</p>");
     out.println("</body>");
     out.println("</html>");
     out.close();
  }

  public String getServletInfo() 
  {
    return "Hello World servlet";    
  }
}
********************************************************************

I named it "HelloWorldServlet.java" and compiled it with

        javac HelloWorldServlet.java

The first thing that make me wonder is, that i have to compile with
the option -classpath=...
I set all that classpathes to the environment-variabel CLASSPATH, but 
if i do not use -classpath..., the javac says, that javax.servlet....
are not found.... 

The next (after compiling with "-classpath" and getting no errors)
i modified the files jserv.properties and the test.properties.

Apache is in /usr/local/apache
For that test i create a subdir. named /usr/local/apache/test/servlets
were i put my test-servlet. (/usr/local/apache/test is my new root...)

I _thought_, i changed everything, but if i try to call the servlet,
the servlet is not found on the server...

Do i have to restart the servletrunner? If yes: How an with which
parameters?

Any other ideas?

Michael


-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to