users@glassfish.java.net

Re: Hello.war deploy

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Wed, 12 Sep 2007 10:05:05 -0400

These error messages came from the underlying XML parser that the
appserver code is calling. Seems your web.xml didn't conform to the
schema. If you are using web-app_2_4.xsd, can you make sure the schema
declaration in your web.xml looks like this?

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

glassfish_at_javadesktop.org wrote:

>Hi all,
> i have installed glassfish and everything seem work fine.
>Now, i would like to deply the hello.war web applications, so I have downloaded the hello.war file and put under ins_dir\domains\domain1\autodeploy\
>
>Now I get the followinf file hello.war_deployFailed.
>In the server.log file i get the following message:
>
>[#|2007-09-12T14:25:19.430+0200|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Thread-25;Deployment descriptor file WEB-INF/web.xml in archive [hello].;8;219;General Schema Error: Can't get back Schema document's root element :web-app_2_4.xsd.;_RequestID=b7a3ed3f-b280-4f98-ac9a-8ff29caae0b6;|"DPL8015: Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive [hello].
>Line 8 Column 219 -- General Schema Error: Can't get back Schema document's root element :web-app_2_4.xsd."|#]
>
>
>If i try to deply the hello.war by the Server Admin Console i alway get the following error message:
>
>Deploying application in domain failed; Error loading deployment descriptors for module [hello] Line 8 Column 219 -- Deployment descriptor file WEB-INF/web.xml in archive [hello]. General Schema Error: Can't get back Schema document's root element :web-app_2_4.xsd. Error loading deployment descriptors for module [hello] Line 8 Column 219 -- Deployment descriptor file WEB-INF/web.xml in archive [hello]. General Schema Error: Can't get back Schema document's root element :web-app_2_4.xsd.
>
>Could You help me to solve this problem?
>
>Thank you very much
>
>Regards
>[Message sent by forum member 'alex70' (alex70)]
>
>http://forums.java.net/jive/thread.jspa?messageID=235037
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>