I haven't consulted the 1.3 dtd but.... geronimo converts earlier plans to 1.4 plans, and as the error message clearly states you need at least one <module> element in an application. This makes some sense..... otherwise there is nothing to deploy.

Are you sure you have your maven projects set up correctly? Normally if you include modules they get mentioned in the generated application.xml.

thanks
david jencks

On Dec 8, 2006, at 5:39 PM, Vinita Joshi wrote:

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="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="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>

  <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="1.0" encoding="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 (EARConfigBuilder.java:316) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan (EARConfigBuilder.java:263) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$ $FastClassByCGLIB$$38e56ec6.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:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke (RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept (ProxyMethodInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$ $EnhancerByCGLIB$$895aa83f.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.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:852) at org.apache.geronimo.kernel.basic.BasicKernel.invoke (BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDe ploy(AbstractDeployCommand.java:106) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run (DistributeCommand.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 '[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee' before the end of the content in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee] Descriptor: <application xsi:schemaLocation="http://java.sun.com/ xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/j2ee";>
  <display-name>wellington</display-name>
</application>
at org.apache.geronimo.schema.SchemaConversionUtils.validateDD (SchemaConversionUtils.java:605) at org.apache.geronimo.schema.SchemaConversionUtils.convertToApplicationS chema(SchemaConversionUtils.java:105) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan (EARConfigBuilder.java:314)
        ... 21 more






Reply via email to