Answers to: war application deployement on geronimo failinghttp://linuxexchange.org/questions/162/war-application-deployement-on-geronimo-failing<p>I followed the tutorial given here <a href="http://www.ibm.com/developerworks/opensource/library/os-ag-wsvs/" rel="nofollow">http://www.ibm.com/developerworks/opensource/library/os-ag-wsvs/</a> and wrote a grails application helloworld.</p> <p>The tutorial is given here <a href="http://grails.org/doc/1.0.x/" rel="nofollow">http://grails.org/doc/1.0.x/</a> and documentation to deply is here. <a href="https://cwiki.apache.org/GMOxDOC20/deployer-tool.html" rel="nofollow">https://cwiki.apache.org/GMOxDOC20/deployer-tool.html</a> and <a href="https://cwiki.apache.org/GMOxDOC20/installing-and-removing-applications.html" rel="nofollow">https://cwiki.apache.org/GMOxDOC20/installing-and-removing-applications.html</a></p> <p>I do not have a GUI access to the server machine I am working on is a Mac and via an SSH connection accessing the grails machine. Web based admin control panel to deploy war on the above said machine had failed since I used it in this format 7 <a href="http://192.168.1.13:9090" rel="nofollow">http://192.168.1.13:9090</a></p> <p>I had changed default port to run.</p> <p>So to select war application it asked me to upload from my mach machine. Which was not there.Hence I used the script deploy.sh </p> <p>from </p> <pre><code>/geronimo-jetty7-javaee5-2.2/bin# ./deploy.sh deploy /root/a12/target/a12-0.1.war </code></pre> <p>I got following error </p> <pre><code>2010-05-03 03:42:28,012 ERROR [DeployTool] Error: org.apache.geronimo.common.DeploymentException: Unable to deploy a12-0.1.war: org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists: grailsApps/a12/0.1/war Configuration already exists: grailsApps/a12/0.1/war 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) </code></pre> <p>I had even used redeploy but got following error</p> <pre><code>geronimo-jetty7-javaee5-2.2/bin# ./deploy.sh redeploy /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 No ModuleID or TargetModuleID provided. Attempting to guess based on the content of the archive. Attempting to use ModuleID 'grailsApps/a12/0.1/war' 2010-05-03 03:46:22,642 ERROR [DeployTool] Error: org.apache.geronimo.common.DeploymentException: grailsApps/a12/0.1/war does not appear to be a the name of a module available on the selected server. Perhaps it has already been stopped or undeployed? If you're trying to specify a TargetModuleID, use the syntax TargetName|ModuleName instead. If you're not sure what's running, try the list-modules command. at org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTargetModuleIDs(ConfigIDExtractor.java:205) at org.apache.geronimo.deployment.cli.CommandRedeploy.execute(CommandRedeploy.java:134) 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) </code></pre> <p>These are the contents of geronimo-web.xml </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"&gt; &lt;environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1"&gt; &lt;moduleId&gt; &lt;groupId&gt;grailsApps&lt;/groupId&gt; &lt;artifactId&gt;a12&lt;/artifactId&gt; &lt;version&gt;0.1&lt;/version&gt; &lt;type&gt;war&lt;/type&gt; &lt;/moduleId&gt; &lt;hidden-classes&gt; &lt;filter&gt;org.springframework&lt;/filter&gt; &lt;filter&gt;org.apache.cxf&lt;/filter&gt; &lt;filter&gt;org.apache.commons&lt;/filter&gt; &lt;/hidden-classes&gt; &lt;/environment&gt; &lt;context-root&gt;/root/a12&lt;/context-root&gt; &lt;/web-app&gt; </code></pre> <p>Have checked a link about a possible bug <a href="http://apache-geronimo.328035.n3.nabble.com/Deployment-says-module-already-exists-even-though-it-does-not-td339229.html" rel="nofollow">http://apache-geronimo.328035.n3.nabble.com/Deployment-says-module-already-exists-even-though-it-does-not-td339229.html</a> but the said folder does not exist on my </p> <pre><code>geronimo_home/repository </code></pre> <p>What should I look at?</p>enFri, 20 Jan 2017 21:35:15 -0000