I am using a J2EE framework grails to develop an application. It is the first program that I created till now.So it is a helloworld program.It worked successfully. I could see it running http://localhost:8080/helloworld

Now I wanted this to be deployed to production server.Which is geronimo on Apache2.You can read about it here https://cwiki.apache.org/GMOxDOC22/ The problem came when I created a war file for the application.

I typed from the home directory of application grails war and with a few warnings I got the war in /target/

When I tried to deploy it on geronimo (it is for J2EE) I got errors.

/geronimo-jetty7-javaee5-2.2/bin# java -jar deployer.jar --user system --password manager deploy --inPlace /root/a12/web-app/
2010-05-06 04:32:13,150 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy web-app: xml problem for web app .
        Invalid deployment descriptor: errors:

error: cvc-complex-type.2.4a: Expected elements 'moduleId@http://geronimo.apache.org/xml/ns/deployment-1.2 dependencies@http://geronimo.apache.org/xml/ns/deployment-1.2 hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 non-overridable-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 private-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'groupId@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element environment@http://geronimo.apache.org/xml/ns/deployment-1.2

error: cvc-complex-type.2.4a: Expected elements 'moduleId@http://geronimo.apache.org/xml/ns/deployment-1.2 dependencies@http://geronimo.apache.org/xml/ns/deployment-1.2 hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 non-overridable-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 private-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'artifactId@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element environment@http://geronimo.apache.org/xml/ns/deployment-1.2

error: cvc-complex-type.2.4a: Expected elements 'moduleId@http://geronimo.apache.org/xml/ns/deployment-1.2 dependencies@http://geronimo.apache.org/xml/ns/deployment-1.2 hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 non-overridable-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 private-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'j2eeType@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element environment@http://geronimo.apache.org/xml/ns/deployment-1.2

error: cvc-complex-type.2.4a: Expected elements 'moduleId@http://geronimo.apache.org/xml/ns/deployment-1.2 dependencies@http://geronimo.apache.org/xml/ns/deployment-1.2 hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 non-overridable-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 private-classes@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'name@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element environment@http://geronimo.apache.org/xml/ns/deployment-1.2

Descriptor:
<xml-fragment xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:jet="http://geronimo.apache.org/xml/ns/j2ee/web/jetty-2.0.2">
  <sys:environment>
    <sys:groupId>org.apache.geronimo.samples</sys:groupId>
"error" 

asked 06 May '10, 10:33

tapas's gravatar image

tapas
1114
accept rate: 0%

closed 15 Jan '14, 15:34

rfelsburg's gravatar image

rfelsburg ♦
6061618

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 06 May '10, 10:33

Seen: 2,017 times

Last updated: 16 Jan '14, 15:19

powered by OSQA