Change Tomcat Settings in Amazon Elasticbeanstalk

Asked

Viewed 138 times

3

I’m having trouble 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?

1 answer

2


You can replace 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 code below:

container_commands: 
  replace-config: 
    command: cp .ebextensions/server.xml /etc/tomcat7/server.xml

This information can be found at:
https://aws.amazon.com/pt/blogs/aws/customize-elastic-beanstalk-using-configuration-files/

Note that in the above way, your server.xml will completely replace the existing one, if you just want to override some settings or insert others, note the form below, from soEN:
https://stackoverflow.com/a/30598373/1997073

  • has to create a directory inside my project is this? I could not make work yet the configs

  • This... in your web project you should have a directory called webapp, create inside it this directory.

  • 1

    It worked ! thank you very much I was hours trying!

  • +1 by feedback! ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.