2012-10-15 2 views
0

)에 잘못된 배치 설명자가 있습니다. GlassFish server.there를 사용하는 Java 프로젝트에서 작업 중입니다. 프로젝트에 오류가 없지만 실행하려고하면이 작업이 표시됩니다. 오류 _배포 설명자 파일 WEB-INF/web.xml (아카이브

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) 

무엇이 잘못 되었나요?

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> 
+1

해야 하는가? –

+0

schema/dtd에 대해 web.xml의 유효성을 검사 해 보셨습니까? – shyam

+0

미안하지만, 그것이 어디에 있습니까? –

답변

7

javaee에 따라 description 태그는 첫 번째 태그하지 우리가 관련 배치 디스크립터를 볼 수있는 마지막

+0

Eclipse에서이 프로젝트를 사용했을 때 오류가 표시됩니다. this_ _ JRE를 해결하는 _Unable : mustang (표준 VM) _ 프로젝트에 갈 때> > properties >> libraries –

+0

이것은 같은 질문과 관련이 있습니까? – shyam

+0

예, NetBeans를 사용할 때 실행시 오류가 위와 같이 표시되고 이클립스에서 JRE를 해결할 수 없습니다 : mustang (표준 VM) –