|
系统:FC4自带TOMCAT
症状:
将类Hello。class放于classes目录,做servlet map,显示正常工作。
将Hello.java头部加入package test;,重编,放入classes/test目录下,做MAP,
<servlet>
<servlet-name>test.Hello</servlet-name>
<servlet-class>test.Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>test.Hello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
显示:
HTTP Status 404 - Servlet test.Hello is not available
type Status report
message Servlet test.Hello is not available
description The requested resource (Servlet test.Hello is not available) is not available.
Apache Tomcat/5.0
怎么回事呢? |
|