eclipse ee开发servlet时,不自动生成web.xml中的<servlet>元素但是却能运行?解决思路

   阅读
eclipse ee开发servlet时,不自动生成web.xml中的<servlet>元素但是却能运行?
servlet开发完成,在server中能够运行。

但是会出现两个问题:
1. 控制台显示:
CSS code
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ch06' did not find a matching property.


在配置servers时,设置属性为Publish module contexts to separate XML files。将Context专门分开,但是还是出现了警告,没搞懂??

2. 在web应用程序目录/WEB-INF/web.xml中并没有自动生成servlet相关元素,内容依然是:
XML code
<?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_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>ch06</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>
</web-app>


eclipse ee 没有自动在其中进行配置,那会在什么地方配置??(workspace/servers/web.xml中也没有相关元素)

------解决方案--------------------
额 你是不是建的servlet呀
------解决方案--------------------
<display-name>ch06</display-name>
把这行删掉试试。
------解决方案--------------------
有这种事?
你没有配置servlet的访问路径,哪你是怎么访问这个servlet的?
------解决方案--------------------
你的访问地址是什么 ?你确认你访问的是servlet么, 你访问了一个jsp页面吧. 我不信这事也有,应该是你哪里搞错了.再仔细看看.
阅读