---
title: "weblogic发布程序时报错"
author: "angkorpeach"
date: "2009-06-23T14:41:33Z"
tags: ["EJB", "Security", "Web", "Weblogic", "XML"]
slug: "weblogic"
draft: false
lastmod: "2009-06-23T14:41:33Z"
id: 413524
url: "https://angkor.iteye.com/blog/413524"
---

javax.enterprise.deploy.spi.exceptions.InvalidModuleException: \[J2EE Deployment SPI:260105]Failed to create DDBeanRoot for application

 

可能是web.xml出错了，检查并修改程序的web.xml。我的程序出现该问题的原因是web.xml中多了下面红色部分的东西，删除红色部分，一切OK!

 

&lt;?xml version="1.0" encoding="UTF-8"?&gt;  
&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "[http://java.sun.com/dtd/web-app\_2\_3.dtd](http://java.sun.com/dtd/web-app_2_3.dtd)"&gt;  
**&lt;!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\*)&gt;**