sriram
sriram

Reputation: 9022

Does grails needed to run the application on tomcat?

I'm very new to web development.

I see people running grails app on tomcat, without grails being installed in that system! How this can be possible? How come tomcat can understand "grails" terminology and semantics?

Am I missing anything over here?

Thanks in advance.

Upvotes: 0

Views: 164

Answers (2)

Matthijs Bierman
Matthijs Bierman

Reputation: 1757

You can build a normal WAR file using the command grails war. See the documentation on the war command.

Because everything compiles to JVM bytecode, and the Groovy library is included, this WAR can then be deployed on any servlet container - as long as it supports the servlet spec you're compiling against. Most likely you need a container that supports servlet 2.5.

Upvotes: -1

duffymo
duffymo

Reputation: 308733

Everything the app needs is in the WAR file that you deploy, including the Grails JARs. Tomcat merely hosts the app. It doesn't need to know Grails terminology and semantics. By the time Tomcat knows about it, it's already been translated into the things it knows: HTTP, HTML, etc.

Upvotes: 6

Related Questions