Reza
Reza

Reputation: 739

Grails deployment of tomcat

I made a Grails War file successfully. when I put the war file (multisite) on tomcat server (web-app folder) and start the server the URL is not working "http://localhost:8080/multisite". I got the message that "The requested resource is not available". Appreciate any help!

Upvotes: 2

Views: 890

Answers (1)

Reza
Reza

Reputation: 739

I solved this problem in this in way. In BuildConfig.groovy file there is "grails.project.war.file = "target/${appName}-${appVersion}.war". when I used only war command it produces MultiSite-0.1.war. I put this war file on tomcat WebApp folder. I can get the first page of URL but not the other pages. It seems that the other URLs are based on the project name without any version. I changed the grails.project.war.file = "target/${appName}.war" and everything was working then.

Upvotes: 2

Related Questions