From user-return-14790-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Tue May 04 06:23:34 2010 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 10220 invoked from network); 4 May 2010 06:23:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 06:23:34 -0000 Received: (qmail 81185 invoked by uid 500); 4 May 2010 06:23:33 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 81164 invoked by uid 500); 4 May 2010 06:23:33 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 81157 invoked by uid 99); 4 May 2010 06:23:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 06:23:33 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.62] (HELO smtp107.prem.mail.sp1.yahoo.com) (98.136.44.62) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 May 2010 06:23:28 +0000 Received: (qmail 64732 invoked from network); 4 May 2010 06:23:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:Mime-Version:Content-Type:Subject:Date:In-Reply-To:To:References:Message-Id:X-Mailer; b=lS4qfgoj7a5aY9aKnrV6GsPRLJTGKdxNbE4Ib0yk4lpJjZjhdsa7GWmZUm+7btRWg1asYQe57Zfp4kLvzK6VzBNzQ5tIoWwEC8Vcl7tcGbB3NhCE63PyqdeDkFL0jjs3s8PuUjoHJpYiuBAcYTN8NQVPqSeuTrnmbe1G45Wwaw8= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp107.prem.mail.sp1.yahoo.com with SMTP; 03 May 2010 23:23:06 -0700 PDT X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: p9XZYB4VM1kqqPQUiQdDuX0v4M6XJFkLHf3jQyqUr8MxM3ovTAqcHP880EAsJzhEUN2TqZhIe.hGEkbpxLIpfMmDDbYMTK9_9.0bMi48IdeQWeYQZQLVgXAFahCdhnbXv8N5AZeAjVW93l8Cz.6nO8YB3jhrJ2s7gfYglfaVWoI9KkiClHUgrrgIBRihPmH8ikvaLD2zqmQopfU98ZXAO5RRCg.IFKlzMH52ilLACBE_KwChIszIn.dQdfyq2D9Jg15s3XHIJbIPNAUfhIt8i5XvLgyaVycTQMtHm2oI2ds8xEeSsHkiQ_j_KtGoYvZX6J5G62lAKBXd.pE- X-Yahoo-Newman-Property: ymail-3 From: David Jencks Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/alternative; boundary=Apple-Mail-18-441726512 Subject: Re: deploying grails to geromino xml problem for web app in Date: Mon, 3 May 2010 23:23:06 -0700 In-Reply-To: <1272952593412-775201.post@n3.nabble.com> To: user@geronimo.apache.org References: <1272952593412-775201.post@n3.nabble.com> Message-Id: X-Mailer: Apple Mail (2.1077) --Apple-Mail-18-441726512 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1"> is wrong. I like to use an xml editor that shows me stupid syntax typos like this = -- I certainly type them frequently. I use IDEA community edition which = is free. thanks david jencks On May 3, 2010, at 10:56 PM, Tapas Mishra wrote: >=20 > I am a newbie to xml,geromino and grails > when I am trying to deploy my war application > I am getting following error. >=20 >=20 > 2010-05-03 23:42:49,082 ERROR [DeployTool] Error:=20 > org.apache.geronimo.common.DeploymentException: Unable to deploy > a12-0.1.war: xml problem for web app . > Invalid deployment descriptor: errors: >=20 > error: Can't have mixed content >=20 > error: cvc-complex-type.2.3: Element > 'environment@http://geronimo.apache.org/xml/ns/deployment-1.2' with > element-only content type cannot have text content. >=20 > Descriptor: > xmlns:jet=3D"http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2"> > xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/web-1.1" > xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment-1.1" > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.1" > xmlns:security=3D"http://geronimo.apache.org/xml/ns/security-1.1"> > > xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1"> > > geronimo > a12 > 1.1 > war > > > /a12 > >=20 >=20 > at > = org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.= java:45) > at > = org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(Command= Distribute.java:149) > at > = org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistri= bute.java:125) > at > = org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168)= > at > = org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainCon= figurationBootstrapper.java:45) > at = org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) > at = org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) >=20 >=20 >=20 >=20 > Content of my geronimo-web.xml file are=20 >=20 > > >=20 > xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/web-1.1" > xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment-1.1" > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.1" > xmlns:security=3D"http://geronimo.apache.org/xml/ns/security-1.1"> > >=20 > xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1"> > geronimo > a12 > 1.1war > > > /a12 >=20 > >=20 > What is wrong in above xml or if it is right then what is the cause of = the > error? > --=20 > View this message in context: = http://apache-geronimo.328035.n3.nabble.com/deploying-grails-to-geromino-x= ml-problem-for-web-app-in-tp775201p775201.html > Sent from the Users mailing list archive at Nabble.com. --Apple-Mail-18-441726512 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii http://geronimo.= apache.org/xml/ns/deployment-1.1">

is = wrong.

I like to use an xml editor that shows = me stupid syntax typos like this -- I certainly type them frequently. =  I use IDEA community edition which is = free.

thanks
david = jencks
On May 3, 2010, at 10:56 PM, Tapas Mishra = wrote:


I am a newbie to xml,geromino and grails
when = I am trying to deploy my war application
I am getting following = error.


2010-05-03 23:42:49,082 ERROR [DeployTool] Error: =
org.apache.geronimo.common.DeploymentException: Unable to = deploy
a12-0.1.war: xml problem for web app .
Invalid = deployment descriptor: errors:

error: Can't have mixed = content

error: cvc-complex-type.2.3: = Element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.2' = with
element-only content type cannot have text = content.

Descriptor:
<xml-fragment xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.2"
xmlns:jet=3D"http://ger= onimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2">
=  xmlns=3D"http://geronimo.ap= ache.org/xml/ns/j2ee/web-1.1"
  xmlns:sys=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1"
  xmlns:naming=3D"http://geronimo.apac= he.org/xml/ns/naming-1.1"
  xmlns:security=3D"http://geronimo.ap= ache.org/xml/ns/security-1.1">
=  <dep:environment>
   xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1">
=    <dep:moduleId>
=      <dep:groupId>geronimo</dep:groupId&= gt;
=      <dep:artifactId>a12</dep:artifactId= >
=      <dep:version>1.1</dep:version> =      <dep:type>war</dep:type>
=    </dep:moduleId>
=  </dep:environment>
=  <jet:context-root>/a12</jet:context-root>
</xml-fr= agment>


= at
org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(C= ommandDeploy.java:45)
= at
org.apache.geronimo.deployment.cli.CommandDistribute.executeO= nline(CommandDistribute.java:149)
= at
org.apache.geronimo.deployment.cli.CommandDistribute.execute(= CommandDistribute.java:125)
= at
org.apache.geronimo.deployment.cli.DeployTool.execute(DeployT= ool.java:168)
= = at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper= .main(MainConfigurationBootstrapper.java:45)
at = org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at = org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
=



Content of my geronimo-web.xml file are

<?xml = version=3D"1.0" encoding=3D"UTF-8"?>
<web-app xmlns=3D"http://geronimo.ap= ache.org/xml/ns/j2ee/web-1.1">

  xmlns=3D"http://geronimo.ap= ache.org/xml/ns/j2ee/web-1.1"
  xmlns:sys=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1"
  xmlns:naming=3D"http://geronimo.apac= he.org/xml/ns/naming-1.1"
  xmlns:security=3D"http://geronimo.ap= ache.org/xml/ns/security-1.1">
<environment>

=   xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1">
=   <moduleId><groupId>geronimo</groupId>
=   <artifactId>a12</artifactId>
=   <version>1.1</version><type>war</type>=
  </moduleId>
</environment>
= <context-root>/a12</context-root>

</web-app>
<= br>What is wrong in above xml or if it is right then what is the cause = of the
error?
--
View this message in context: http://apache-gero= nimo.328035.n3.nabble.com/deploying-grails-to-geromino-xml-problem-for-web= -app-in-tp775201p775201.html
Sent from the Users mailing list = archive at Nabble.com.
= --Apple-Mail-18-441726512--