存档中的部署描述符文件WEB-INF / web.xml中的无效部署描述符 [英] Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive

查看:477
本文介绍了存档中的部署描述符文件WEB-INF / web.xml中的无效部署描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GlassFish服务器的Java项目工作。项目中没有错误,但是当我试图运行它时,它显示此错误_

i am working on Java project ,which is using GlassFish server.there is no error in project but when i tried to run it ,it is showing this error_

SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive [web]. 
Line 9 Column 22 -- cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.
SEVERE: DPL8005: Deployment Descriptor parsing failure : cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.
SEVERE: Exception while deploying the app
java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
    at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:79)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:612)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.
    at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304)
    at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:225)
    at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:614)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:366)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:238)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:247)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:208)
    at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:148)

什么出错了,是否有人面对这个问题?

whats went wrong, is anybody face this issue ?

Discriptor
<context-param>
    <param-name>tiles-definitions</param-name>
    <param-value>/WEB-INF/tiles.xml</param-value>
    <description> Tiles configuration definition files and a listener need to be defined. the
        listener will initialize JspTilesViewHandlerImpl with tiles definitions. 
    </description>
</context-param>


推荐答案

根据javaee 描述标记应该是第一个标记而不是最后一个标记

according to javaee the description tag should be the first tag not the last one

这篇关于存档中的部署描述符文件WEB-INF / web.xml中的无效部署描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆