Deploy Grails-app on local JBoss 5.1.0

Hi all,

when I set up a blank new Grails application. What exactly do I have to do when I want Intellij to deploy it on the "run" button to my local JBoss for testing purpose?

What I tried till now was adding a new run-configuration for jboss, set my server instance and add my GrailsWeb artifact (I think I scewd it up there).
I created the artifact by adding a new "Web Application Archive", dragging the compile output and 'Grails Web' facet resource and setting the output directory to my jboss deploy-dir.

When I now run this setting it starts up the JBoss AS fine and the deploying looks like

22:48:53,530 INFO  [TomcatDeployment] deploy, ctxPath=/Perfunctio
22:48:53,723 INFO  [TomcatDeployment] deploy, ctxPath=/
22:48:53,916 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
22:48:54,121 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
22:48:54,179 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
22:48:54,192 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:37s:487ms
Connected to server
[2010-01-26 10:48:54,351] Artifact Perfunctio: Artifact is being deployed, please wait...
22:48:54,372 WARN  [MainDeployer] undeploy 'file:/home/finn/apps/jboss-5.1.0.GA/server/standard/deploy/Perfunctio.war' : package not deployed
22:48:54,480 INFO  [MainDeployer] deploy, url=file:/home/finn/apps/jboss-5.1.0.GA/server/standard/deploy/Perfunctio.war
22:48:54,601 INFO  [TomcatDeployment] undeploy, ctxPath=/Perfunctio
22:48:56,373 INFO  [TomcatDeployment] deploy, ctxPath=/Perfunctio
[2010-01-26 10:48:56,659] Artifact Perfunctio: Artifact is deployed successfully



There is no error message nothing, the jboss admin console tells me the app is running, but when I point my browser to it there is just an 404-error "description The requested resource (/perfunctio/) is not available."

Using "grails war"-command  and moving the created war-file into the deploy-dir works fine, but it would be more smooth for the development process if I would not have to create a new war file every time I change something and push it to the AS.

Maybe someone can tell me what I'm doing wrong and what the trick is. I'm pretty new to all this stuff, coming from a non-java world.

cheers

Please sign in to leave a comment.