Thursday 15 January 2015

Grails application Tomcat or VMware vFabric -



Grails application Tomcat or VMware vFabric -

i pretty new grails. have pre existing application want run. application builds , runs correctly unable figure out server using - whether default vmware or tomcat instance

included tomcat plugin in buildconfig.groovy shown below

build ':tomcat:7.0.52.1'

i assuming application infact running on tomcat server know no way of confirming it. on servers tab of ggts, see vmware instance no tomcat instance. normal?

i tried check logs while application deployed changing log level verbose in buildconfig.groovy, doesnt give me plenty info reply search ended.

for interested, main aim configure ssl certificate on tomcat if isnt done. help regarding much appreciated.

it's possible deploy grails war file ggts-managed server, i've never done it. i'm sure it's easy do, i've never needed to. makes lot more sense in framework doesn't ship embedded (but complete) instance of tomcat, , additionally alternative swap out 1-line config alter complete, embedded instance of jetty: http://grails.org/plugin/jetty

when run app within ggts using "run | grails command (run-app)" you're doing same thing if had run grails run-app commandline. ggts run app, or tests, , generate- , create- scripts phone call same script would, in separate vm it's isolated, , captures , displays stdout , stderr within ide. it's unlikely you're using tc server (vmware company (or was, it's pivotal now), vfabric platform, , tc server beefed-up version of tomcat sell licences , back upwards for). if want sure, go spring dashboard , uninstall tc server, unless plan on deploying in future , want test locally.

another quick test (assuming don't have custom 404 page) request url right host, port, , context, nonexistent page or controller in app. 404 page should tomcat, tc server page should "tc server", similar this:

so if app name "foo", request

http://localhost:8080/foo/wherearewerunningfrom?

or similar.

also, if ggts deployed tc server (or tomcat, it's own managed tomcat, not embedded tomcat within grails can't configure or access), creating war file , deploying it, , utilize production environment. reloading disabled. if can alter controller, service, taglib, i18n file, gsp, etc. , alter takes effect, you're using grails-configured tomcat. uses "exploded war" style of deployment, tells tomcat project directory unzipped war file, , configures css , js dirs, images dir, web-inf, etc. point project folders unstead of real unpacked war file.

you can run ssl locally using -https flag, see http://grails.org/doc/latest/ref/command%20line/run-app.html - grails create self-signed cert first time, , can go on using that, or utilize approach what's described here replace it: http://grails.1312388.n4.nabble.com/specifying-the-ssl-certificate-in-grails-2-x-td4629128.html

tomcat grails ggts

No comments:

Post a Comment