eclipse 中使用servlet 显示404错误
我做了个很简单的servlet
web.xml 配置
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>homework</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>func.RegisterMeg</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/register/</url-pattern>
</servlet-mapping>
</web-app>
tomcat报错
type Status report
message Servlet register is not available
2011-11-28 17:17:08 org.apache.catalina.core.AprLifecycleListener init
信息: 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\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;c:/program files/java/jdk1.5.0_05/jre/bin/client;c:/program files/java/jdk1.5.0_05/jre/bin;c:/program files/java/jdk1.5.0_05/jre/lib/i386;c:\oracle\product\10.2.0\client_1\bin;C:\Program Files\Autodesk\Maya8.5\bin;c:\program files\java\jdk1.5.0_05\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Autodesk Shared\;C:\MATLAB701\bin\win32;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jdk1.5.0_05\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;.
2011-11-28 17:17:08 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:homework' did not find a matching property.
2011-11-28 17:17:08 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
2011-11-28 17:17:08 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
2011-11-28 17:17:08 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 494 ms
2011-11-28 17:17:08 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2011-11-28 17:17:08 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.20
2011-11-28 17:17:09 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(H:\jsp\worksapce\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\homework\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2011-11-28 17:17:09 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2011-11-28 17:17:09 org.apache.c