getting a problem with an servlet execution
hi
i created an servlet under eclipse and i got an error message.
The archive: /CATALINA_HOME/bin/bootstrap.jar which is referenced by the classpath, does not exist.
i configure web.xml like that.
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN""http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> <servlet> <servlet-name>MaPremiereServlet</servlet-name> <servlet-class>fr.parcauto.servlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>MaPremiereServlet</servlet-name> <url-pattern>/premiere</url-pattern> </servlet-mapping></web-app>
besides when i lauch eclipse , my projects are located in the workspace so i added an new instruction at the end of file server.xml like that:
:
<!-- <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> --></Host></Engine> <Context path="/MonProjetWeb" reloadable="true" docBase="D:\workspace\MonProjetWeb" workDir="D:\workspace\MonProjetWeb\work"/>
I will show you my MaPremiereServlet class:
[code]
package fr.parcauto.servlet;import java.io.IOException; import java.io.*; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;public class MaPremiereServlet extends HttpServlet {protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head>"); out.println("<title> Ma premiere Servlet </title>"); out.println("</head>"); out.println("<body>"); out.println("<h1> Voici un test de ma servlet </h1>"); out.println("</body>"); out.println("</html>"); }}
[/Code]
i can't understand why i got that error . i placed the bootstrap.jar
in the library of my application. But the servlet don't work
Have you got any idea?
Thanks you
hanimichi

