解决方案:elipse一直loading descriptor for...

1,问题描述:

  打开eclipse,一直在loading descriptor for...,eclipse假死,什么操作都做不了

2,环境描述:

  Java Compiler:1.8

  Jdk :1.8

  

 

3,解决方式:

    使project facets的Dynamic Web Module和web.xml头信息的版本一致,Dynamic Web Module用的3.1,所以应该保持web.xml的也为3.1.(假死时,web.xml为2.3)

    注意,因为eclipse此时处于假死状态,不能在eclipse中直接修改web.xml。所以终止eclipse进程后,到目录中去修改web.xml。

    3.1版本的web.xml:

  

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee" 
    xmlns:web="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee">    
    
    <display-name>Archetype Created Web Application</display-name>    
    
</web-app>

 

posted @ 2015-08-05 16:13  星空中的启明星  阅读(5469)  评论(0编辑  收藏  举报