I followed the tutorial given here
http://www.ibm.com/developerworks/opensource/library/os-ag-wsvs/
and wrote a grails application helloworld.
The tutorial is given here
http://grails.org/doc/1.0.x/
and documentation to deply is here.
https://cwiki.apache.org/GMOxDOC20/deployer-tool.html
and
https://cwiki.apache.org/GMOxDOC20/installing-and-removing-applications.html
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
http://192.168.1.13:9090
I had changed default port to run.
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
from
/geronimo-jetty7-javaee5-2.2/bin# ./deploy.sh deploy /root/a12/target/a12-0.1.war
I got following error
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)
I had even used redeploy but got following error
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)
These are the contents of geronimo-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
<environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
<moduleId>
<groupId>grailsApps</groupId>
<artifactId>a12</artifactId>
<version>0.1</version>
<type>war</type>
</moduleId>
<hidden-classes>
<filter>org.springframework</filter>
<filter>org.apache.cxf</filter>
<filter>org.apache.commons</filter>
</hidden-classes>
</environment>
<context-root>/root/a12</context-root>
</web-app>
Have checked a link about a possible bug
http://apache-geronimo.328035.n3.nabble.com/Deployment-says-module-already-exists-even-though-it-does-not-td339229.html
but the said folder does not exist on my
geronimo_home/repository
What should I look at?
asked
03 May '10, 09:13
tapas
1●1●1●4
accept rate:
0%