I added, in Config.groovy, my user and password of my local Tomcat server:
tomcat.deploy.username="admin"
tomcat.deploy.password="password"
tomcat.deploy.url="http://127.0.0.1:8080/manager/text"
This is the error:
| Done creating WAR target\Alojamiento-0.1.war
Deploying application /Alojamiento to Tomcat
| Error : java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
| Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
| Error at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
| Error at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
| Error at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
If I run "grails dev war", I generate a perfect war, I can deploy it manually in Tomcat6 or Tomcat7. This question is probably related: the command "grails run-war" throws Error java.lang.NullPointerException