java - Where can I find the exception stack traces in OpenShift Tomcat Cartridge -
so deployed war file containing jhipster app (angularjs+spring boot) on openshift tomcat 7 cartridge. can open reach application no problems (the front end) once try login (interaction backend) error.
normally check exception stacktrace in console of eclipse ide if debugging application locally.
i checked logs in app-root/logs/jbossews.log
see app deployed logs. :
info: deploying web application archive /var/lib/openshift/57582f677628e108ba000096/app-root/runtime/dependencies/jbossews/webapps/root.war jun 10, 2016 10:43:18 org.apache.catalina.startup.hostconfig deploywar info: deployment of web application archive /var/lib/openshift/57582f677628e108ba000096/app-root/runtime/dependencies/jbossews/webapps/root.war has finished in 29,121 ms jun 10, 2016 10:43:18 org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-bio-127.8.28.129-8080"] jun 10, 2016 10:43:18 org.apache.catalina.startup.catalina start info: server startup in 29501 ms
not application exceptions.
is there configuration should add application exceptions in logs ?
hard tell without seeing configuration there "openshift_log_dir" environment variable in every openshift gear , can use write log files designated log directory.
example in spring-boot application.yml file, can add
logging: path: ${openshift_log_dir} file: myapplication.log
Comments
Post a Comment