javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260105]Failed to create DDBeanRoot for application
可能是web.xml出错了,检查并修改程序的web.xml。我的程序出现该问题的原因是web.xml中多了下面红色部分的东西,删除红色部分,一切OK!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?,
error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*,
login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>
本文介绍了一种常见的部署异常——InvalidModuleException,并提供了解决方案。该问题是由于web.xml文件中存在多余的内容导致的,通过删除这些多余的部分可以解决问题。
755

被折叠的 条评论
为什么被折叠?



