日期:2014-05-18  浏览次数:20690 次

高手救救我吧,我快疯了
我用的是tomcat5.0,我在E:\Tomcat   5.0\webapps见了一个文件夹123
server.xml是 <Context   path= "/123 "   docBase= "/123 "     debug= "0 "   reloadable= "true ">
</Context>
我在123这个文件夹里建立jsp文件能发布,但我发布servlet时老是出现
type   Status   report

message   /123/dispatcher

description   The   requested   resource   (/123/dispatcher)   is   not   available.
这是怎么回事,我的那个类在WEB-INF/classes/mypack/DispatcherServlet
我的web.xml
<?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>
<display-name>My   Web   Application</display-name>
<description>
 A   application   for   test.
</description>
<servlet>
<servlet-name> dispatcher </servlet-name>


<servlet-class> mypack.DispatcherServlet </servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name> dispatcher </servlet-name>
    <url-pattern> /dispatcher </url-pattern>
</servlet-mapping>
</web-app>
难到我写错了,但类编译时完全正确呀,为什么不能发不呀,我在浏览器上输的事http://localhost:8080/123/dispatcher
请教教我   把,能加qq的最好
谢谢了


------解决方案--------------------
LZ别着急 应该是文件配置的问题~~ 在tomcat中看看错误日志
------解决方案--------------------
你的web.xml的位置是否正确?放在了web-inf中了吗?

------解决方案--------------------
<Context path= "/123 " docBase= "/123 " debug= "0 " reloadable= "true ">
</Context>
改成
<Context path= "/123 " docBase= "E:\Tomcat 5.0\webapps " debug= "0 " reloadable= "true ">
</Context>

或者不做任何配置,让TOMCAT自动发布

------解决方案--------------------
有java加密防反编译最强办法,long@hzbhasp.com.cn QQ502623419
------解决方案--------------------
http://localhost:8080/dispatcher试试