为什么在web.xml文件中配置了servlet后,tomcat就无法启动了?不配置就可以启动.
<servlet><description></description><display-name>RegisterAction</display-name><servl...
<servlet>
<description></description>
<display-name>RegisterAction</display-name>
<servlet-name>RegisterAction</servlet-name>
<servlet-class>com.struts.action.RegisterAction</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RegisterAction</servlet-name>
<url-pattern>/RegisterAction</url-pattern>
</servlet-mapping>
启动不报错,只是: Server Tomcat v7.0 Server at localhost failed to start. 展开
<description></description>
<display-name>RegisterAction</display-name>
<servlet-name>RegisterAction</servlet-name>
<servlet-class>com.struts.action.RegisterAction</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RegisterAction</servlet-name>
<url-pattern>/RegisterAction</url-pattern>
</servlet-mapping>
启动不报错,只是: Server Tomcat v7.0 Server at localhost failed to start. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询