I'm having difficulty assigning the JDBCHealm properties to the tomcat server. How to include new properties in the server.xml file or in the tomcat-users.xml file when the app is on the amazon server hosted with tomcat server as elasticbeanstalk?
I'm having difficulty assigning the JDBCHealm properties to the tomcat server. How to include new properties in the server.xml file or in the tomcat-users.xml file when the app is on the amazon server hosted with tomcat server as elasticbeanstalk?
You can override the settings as follows:
Create a directory within your webapp
, and paste your server.xml
. After that, create an xml: server-update.config
, with the following code:
container_commands:
replace-config:
command: cp .ebextensions/server.xml /etc/tomcat7/server.xml
This information can be found at: link
Note that as above, your server.xml will completely replace the existing one, if you just want to override some settings or insert others, look at the form below, soEN: link