Questions Tagged With software-grails-geronimohttp://linuxexchange.org/tags/software-grails-geronimo/?type=rssquestions tagged <span class="tag">software-grails-geronimo</span>enThu, 06 May 2010 10:33:17 -0400war file could not be deployed on geronimo server no idea what is the errorhttp://linuxexchange.org/questions/327/war-file-could-not-be-deployed-on-geronimo-server-no-idea-what-is-the-error<p>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 <a href="http://localhost:8080/helloworld" rel="nofollow">http://localhost:8080/helloworld</a></p> <p>Now I wanted this to be deployed to production server.Which is geronimo on Apache2.You can read about it here <a href="https://cwiki.apache.org/GMOxDOC22/" rel="nofollow">https://cwiki.apache.org/GMOxDOC22/</a> The problem came when I created a war file for the application.</p> <p>I typed from the home directory of application grails war and with a few warnings I got the war in /target/</p> <p>When I tried to deploy it on geronimo (it is for J2EE) I got errors.</p> <pre><code>/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: &lt;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"&gt; &lt;sys:environment&gt; &lt;sys:groupId&gt;org.apache.geronimo.samples&lt;/sys:groupId&gt; "error" </code></pre>tapasThu, 06 May 2010 10:33:17 -0400http://linuxexchange.org/questions/327/war-file-could-not-be-deployed-on-geronimo-server-no-idea-what-is-the-errorsoftware-grails-geronimowar 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>tapasMon, 03 May 2010 09:13:45 -0400http://linuxexchange.org/questions/162/war-application-deployement-on-geronimo-failingsoftware-grails-geronimo