一个J2EE菜鸟遇到滴一个问题,向各位大神求解
web.xml的代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" >
<servlet>
<servlet-name>mainServlet</servlet-name>
<servlet-class>servlet.MainServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>addServlet</servlet-name>
<servlet-class>servlet.AddServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>registerServlet</servlet-name>
<servlet-class>servlet.RegisterServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>mainServlet</servlet-name>
<url-pattern>/mainServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>addServlet</servlet-name>
<url-pattern>/addServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>registerServlet</servlet-name>
<url-pattern>/registerServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
错误提示是这样滴:
2012-10-15 18:10:46 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: D:\myeclipse\bin;D:\tomcat 6.0\bin
2012-10-15 18:10:46 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-10-15 18:10:46 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1335 ms
2012-10-15 18:10:46 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-10-15 18:10:46 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.35
2012-10-15 18:10:46 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2012-10-15 18:10:47 org.apache.jasper.EmbeddedServletOptions <init>
警告: Warning: Invalid value for the initParam xpoweredBy. Will use the default value of "false"
2012-10-15 18:10:47 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2012-10-15 18:10:47 org.apache.jasper.EmbeddedServletOptions <init>
警告: Warning: Invalid value for the initParam xpoweredBy. Will use the default value of "false"
2012-10-15 18:10:47 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory JSPExample
2012-10-15 18:10:47 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\tomcat 6.0\webapps\JSPExample\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2012-10-15 18:10:48 org.apache.jasper.EmbeddedServletOptions <init>
警告: Warning: Invalid value for the initParam xpoweredBy. Will use the default value of "false"
2012-10-15 18:10:48 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory myapp
2012-10-15 18:10:48 org.apache.tomcat.util.digester.Digester fatalError
严重: Parse Fatal Error at line 3 column 7: White spaces are required after keyword PUBLIC