Pessoal estou com um probleminha em rodar um servlet coisinha besta so um OiMundo mesmo
mas o caso é que sempre da erro alguem poderia me ajudar
segue o codigo
Servlet: [/u]
[code]package com.br.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class OiMundo extends HttpServlet{
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<body>");
out.println("<primeira servlet>");
out.println("</body>");
out.println("</html>");
}
}[/code]
web.xml:[u]
[code]<?xml version="1.0" encoding="UTF-8"?>
ExerciciosCaelum
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
Console quando o Tomcat sobe:[u]
[code]Jan 31, 2012 10:54:35 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;C:\glassfish3\jdk7\bin;%CATALINA%/BIN;C:\eclipse-jee-indigo-SR1-win32\eclipse;;.
Jan 31, 2012 10:54:35 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:ExerciciosCaelum’ did not find a matching property.
Jan 31, 2012 10:54:35 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler [“http-bio-8080”]
Jan 31, 2012 10:54:35 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler [“ajp-bio-8009”]
Jan 31, 2012 10:54:35 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 357 ms
Jan 31, 2012 10:54:35 PM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Jan 31, 2012 10:54:35 PM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.25
Jan 31, 2012 10:54:35 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler [“http-bio-8080”]
Jan 31, 2012 10:54:35 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler [“ajp-bio-8009”]
Jan 31, 2012 10:54:35 PM org.apache.catalina.startup.Catalina start
Informações: Server startup in 230 ms
[/code]