geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: how to debug deployment plan
Date Fri, 07 May 2010 02:20:40 GMT
If you would like to read those error messages by yourself, take an example
:
--->
error: cvc-complex-type.2.4a: Expected elements
'moduleId@http://geronimo.apache.org/xml/ns/deployment-1.2
<---
It means that an elment named moduleId is required.

But it is better to use an Eclipse IDE, and install the Geronimo Eclipse
Plugin, that will help a lot ......

2010/5/6 Tapas Mishra <mightydreams@gmail.com>

> I really do not know how to do I have gone through a lot of blogs
> tutorials forums etc etc.But have not yet got any sollution.
> I am trying to deploy a helloworld application on geronimo which is
> made using grails.
>
> and get error here is a snapshot
>
>
> server# 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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Ahidden-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Aprivate-classes@http://geronimo.apache.org/xml/ns/deployment-1.2%0Ainverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2%0Asuppress-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Ahidden-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Aprivate-classes@http://geronimo.apache.org/xml/ns/deployment-1.2%0Ainverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2%0Asuppress-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Ahidden-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Aprivate-classes@http://geronimo.apache.org/xml/ns/deployment-1.2%0Ainverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2%0Asuppress-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Ahidden-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<http://geronimo.apache.org/xml/ns/deployment-1.2%0Aprivate-classes@http://geronimo.apache.org/xml/ns/deployment-1.2%0Ainverse-classloading@http://geronimo.apache.org/xml/ns/deployment-1.2%0Asuppress-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
>



-- 
Ivan

Mime
View raw message