geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject java deployment worked grails failed on geronimo
Date Fri, 07 May 2010 06:07:02 GMT
I was able to deploy a java war file which was not written by using
grails. A simple java program as given here I created some thing like
jar -cvf HelloWorld and then deployed using GUI
https://cwiki.apache.org/GMOxDOC22/deploying-and-undeploying-applications.html

It generated the deployment plan itself.The above was not a grails application.

I wrote a simple Helloworld application on grails by looking at the
documentation and created grails war I tried to deploy this but it did
not worked.


I got the following error

staging:~/geronimo-jetty7-javaee5-2.2/bin# ./deploy.sh  deploy
/root/a12/target/a12-0.1.war
Using GERONIMO_HOME:   /root/geronimo-jetty7-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /root/jdk1.6.0_20/jre
2010-05-07 00:23:01,586 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: 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>
   <sys:artifactId>a12</sys:artifactId>
   <sys:j2eeType>war</sys:j2eeType>
   <sys:name>a12</sys:name>
 </sys:environment>
 <jet:context-root>/a12</jet:context-root>
</xml-fragment>


       at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45)
       at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:149)
       at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125)
       at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.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)

-
Tapas

Mime
View raw message