Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 41803 invoked from network); 9 Dec 2006 01:42:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2006 01:42:01 -0000 Received: (qmail 13693 invoked by uid 500); 9 Dec 2006 01:42:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 13683 invoked by uid 500); 9 Dec 2006 01:42:06 -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 13672 invoked by uid 99); 9 Dec 2006 01:42:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 17:42:06 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of vjoshi@etouch.net designates 216.31.249.101 as permitted sender) Received: from [216.31.249.101] (HELO etouch.net) (216.31.249.101) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 17:41:55 -0800 Received: from [192.168.0.227] (HELO Vinita) by etouch.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 34372630 for user@geronimo.apache.org; Fri, 08 Dec 2006 17:41:27 -0800 From: "Vinita Joshi" To: Subject: Issue when deploying web application built using Maven 2 on Geronimo Date: Fri, 8 Dec 2006 17:39:01 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0049_01C71AEF.BF4A6C20" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AccbMs1Jmv7pIOfGSuaXTYxk1sTtaQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Message-ID: X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------=_NextPart_000_0049_01C71AEF.BF4A6C20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am a new Geronimo user. When trying to deploy the web application which is built using Maven 2.0 onto Geronimo 1.1, I get the error about parsing application.xml. This file is being generated by Maven. I am not sure what is the issue here? Any help is appreciated. Thanks, Vinita My applications's pom.xml file is as follows - 4.0.0 com.paybytouch.trueme wellington war 1.0-SNAPSHOT wellington Maven Webapp http://maven.apache.org junit junit 3.8.1 test wellington Application.xml (generated by Maven) : wellington I am getting the following error when the war file is installed on Geronimo using server console. Could not parse application.xml org.apache.geronimo.common.DeploymentException: Could not parse application.xml at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBui lder.java:316) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARCo nfigBuilder.java:263) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e5 6ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker .java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java: 122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:81 7) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvo ker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMetho dInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$895aa8 3f.getDeploymentPlan() at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:232) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(< generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker .java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java: 122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:85 2) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(A bstractDeployCommand.java:106) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distribute Command.java:60) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/j2ee' before the end of the content in element application@http://java.sun.com/xml/ns/j2ee] Descriptor: wellington at org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversion Utils.java:605) at org.apache.geronimo.schema.SchemaConversionUtils.convertToApplicationSchema( SchemaConversionUtils.java:105) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBui lder.java:314) ... 21 more ------=_NextPart_000_0049_01C71AEF.BF4A6C20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am a new Geronimo user. When trying to deploy the = web application which is built using Maven 2.0 onto Geronimo 1.1, I get the = error about parsing application.xml. This file is being generated by Maven. I = am not sure what is the issue here? Any help is = appreciated.

 

Thanks,

 

Vinita

 

My applications’s pom.xml file is as follows = –

 

<project xmlns=3D"http://maven.apache.org/POM/4.0.0" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"

  = xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  = <modelVersion>4.0.0</modelVersion>

  = <groupId>com.paybytouch.trueme</groupId>

  = <artifactId>wellington</artifactId><= /p>

  = <packaging>war</packaging>

  = <version>1.0-SNAPSHOT</version>

  <name>wellington Maven = Webapp</name>

  = <url>http://maven.apache.org</url>

  = <dependencies>

    = <dependency>

      = <groupId>junit</groupId>

      = <artifactId>junit</artifactId>

      = <version>3.8.1</version>

      = <scope>test</scope>

    = </dependency>

  = </dependencies>

  <build>

    = <finalName>wellington</finalName>

  </build>

</project>

 

Application.xml (generated by Maven) = :

 

<?xml version=3D"1.0" encoding=3D"UTF-8"?>

<!DOCTYPE application = PUBLIC

         =    "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"

         =    = "http://java.sun.com/dtd/application_1_3.dtd">

<application>

  = <display-name>wellington</display-name>

</application>

 

 

I am getting the following error when the war file is installed on Geronimo using server console.

Could not parse =
application.xml
org.apache.geronimo.common.DeploymentException: Could not =
parse application.xml
        at =
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfig=
Builder.java:316)
        at =
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EA=
RConfigBuilder.java:263)
        at =
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$3=
8e56ec6.invoke(<generated>)
        at =
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at =
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo=
ker.java:38)
        at =
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja=
va:122)
        at =
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java=
:817)
        at =
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at =
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationI=
nvoker.java:35)
        at =
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe=
thodInterceptor.java:96)
        at =
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$895=
aa83f.getDeploymentPlan(<generated>)
=
        at =
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:232)
        at =
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
        at =
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invok=
e(<generated>)
        at =
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at =
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo=
ker.java:38)
        at =
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja=
va:122)
        at =
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java=
:852)
        at =
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)=
        at =
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeplo=
y(AbstractDeployCommand.java:106)
        at =
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distrib=
uteCommand.java:60)
        at =
java.lang.Thread.run(Thread.java:595)
=
Caused by: org.apache.xmlbeans.XmlException: Invalid =
deployment descriptor: [error: cvc-complex-type.2.4c: Expected element =
'module@http://java.sun.com/xml/ns/j2ee' before the end of the content =
in element =
application@http://java.sun.com/xml/ns/j2ee]
Descriptor: <application =
xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2eehttp://java.sun=
.com/xml/ns/j2ee/application_1_4.xsd" version=3D"1.4" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
xmlns=3D"http://java.sun.com/xml/ns/j2ee">=
  =
<display-name>wellington</display-name>
</application>
        at =
org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConvers=
ionUtils.java:605)
        at =
org.apache.geronimo.schema.SchemaConversionUtils.convertToApplicationSche=
ma(SchemaConversionUtils.java:105)
        at =
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfig=
Builder.java:314)
        ... 21 =
more

 

 

------=_NextPart_000_0049_01C71AEF.BF4A6C20--