eclipse maven 刷新报错
2015-11-04 09:26
489 查看
问题描述:
An internal error occurred during: "Loading descriptor for cmbc_wms.".
java.lang.NullPointerException
An internal error occurred during: "Loading descriptor for cmbc_wms.".
java.net.UnknownHostException: java.sun.com
原因:
The problem is not the taglib at all, it's just a bad error description by Eclipse.it is the project facet vs. web.xml dtd.. their versions must match!if the web.xml says:<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">but the project has a "Dynamic Web Module 2.5"then this error will occur.. change facet to 2.3 or web.xml to 2.5... in other words: they must match..
web.xml 里如下内容可能不匹配
<?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"
An internal error occurred during: "Loading descriptor for cmbc_wms.".
java.lang.NullPointerException
An internal error occurred during: "Loading descriptor for cmbc_wms.".
java.net.UnknownHostException: java.sun.com
原因:
The problem is not the taglib at all, it's just a bad error description by Eclipse.it is the project facet vs. web.xml dtd.. their versions must match!if the web.xml says:<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">but the project has a "Dynamic Web Module 2.5"then this error will occur.. change facet to 2.3 or web.xml to 2.5... in other words: they must match..
web.xml 里如下内容可能不匹配
<?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"
相关文章推荐
- Eclipse常用快捷键
- java 10 进制 转换为 2 进制, 利用递归
- java正则表达式基础
- 从”JAVA“而终 8:java循环判断语句讲解
- 编译器指令重排序 和 Java 内存模型
- SpringMVC和Struts2比较
- java代理 InvocationHandler接口实现
- Java中的静态方法调用静态成员变量
- 利用javaMail发送邮件
- 从JVM分析Java的类的加载和卸载机制
- java发送电子邮件email
- java学习笔记(三)—数组
- 离线使用tycho对eclipse RCP打包导出
- eclipse RCP界面从3.x切换到e4
- eclipse进度条从后台还原到前台
- 【java解惑】本地变量声明只能放在语句块中
- 【java解惑】类和实例的初始化循环问题
- 【java解惑】重载构造函数
- 【java解惑】递归异常与有限循环
- 【java解惑】java构造器的那些事儿