You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Tapas Mishra <mi...@gmail.com> on 2010/05/04 11:46:10 UTC

deployment plan for grails on geronimo failed

I went through
https://cwiki.apache.org/GMOxDOC22/creating-deployment-plans-for-web-applications.html
http://java.sun.com/xml/ns/javaee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
http://java.sun.com/xml/ns/j2ee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html


 Troubleshooting J2EE asset deployment
http://publib.boulder.ibm.com/wasce/V1.0.1.1/en/Tasks/Deploy/Trouble.html

some how my deployment of a helloworld grails application on geronimo failed.

Following is web.xml file
on WEB-INF of application

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

<web-app version="2.4"

   xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


</web-app>

and following is geronimo-web.xml for
the application
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
    <environment>
        <moduleId>
            <groupId>org.apache.geronimo.samples</groupId>
            <artifactId>a12</artifactId>
            <version>2.2</version>
            <type>war</type>
        </moduleId>
    </environment>
    <context-root>/a12</context-root>
</web-app>

The deploy directory is empty in /geronimo-jetty7-javaee5-2.2/deploy folder.
But when I am issuing
./deploy.sh  deploy /root/a12/target/a12-0.1.war
from bin of <geronemo home>
I get following error


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-04 04:12:08,426 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy
a12-0.1.war: Module org.apache.geronimo.samples/a12/2.2/war already
exists in the server.  Try to undeploy it first or use the redeploy
command.

	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)

Where as there is no file name
a12/2.2/war
if I check the presence of module



staging:~/geronimo-jetty7-javaee5-2.2/bin# ./deploy.sh  list-modules | grep a12
there is no output.





-- 
Tapas