tomcat 7, grails app, finding the running webapp? -
i installed tomcat 7 on centos 6 , running good, running service, can start , stop it, log file looks fine.
but, doesn't respond webapp address, i've got wrong ...
i'm able access tomcat externally on: www.my-domain.us:8080 (standard welcome apache tomcat 7 page), when try access under application called cpn, cannot. trying:
www.my-domain.us:8080/cpn www.my-domain.us/cpn www.my-domain.us:8080/cpn/cpn
the cpn.war file exploded tomcat in webapps, i.e. have a
.../webapps/cpn/* directory
in application.properties app.name=cpn.
also, in config.groovy have:
grails.serverurl = "http://www.my-domain.us"
what doing wrong?
if it's not responding @ didn't start successfully, check log files "startup failed due previous errors". common problem can if grails trying create default stacktrace.log
log file "current directory" whatever is not writable uid of tomcat process. can eliminate possibility adding
'null' name:'stacktrace'
to appenders
block in log4j
closure in config.groovy
turn off stacktrace.log
altogether.
also if tomcat visible @ www.my-domain.us:8080
grails.serverurl
should http://www.my-domain.us:8080/cpn
, i.e. should include webapp context path host name , port number , should not end slash.
if want app deployed @ root context (http://www.my-domain.us:8080/
) should name root.war
instead of cpn.war
, set grails.serverurl="http://www.my-domain.us:8080"
Comments
Post a Comment