Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6283

Embedded Tomcat basedir settings doesn't work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.2, 4.0.3
    • 4.2, 4.0.3
    • None
    • Run with embedded tomcat.

    • Active subscription
    • v4.0.2-132-gef7278a714

    Description

      Embedded Tomcat basedir settings doesn´t work. By default the tomcat working folder (admin-gui/src/main/resources/application.yml) should be created in the midpoint.home directory. Instead, it is always created in the temp folder of the user (windows - C:\Users\<user>\AppData\Local\Temp\tomcat.<number>.<port>) or system (linux - /tmp). I tried to reconfigure it using the application.yml file located in midpoint.home, change it directly in the admin-gui/src/main/resources/application.yml file located in midpoint.war and also by the JVM settings (-Dserver.tomcat.basedir = ...). I tried it on Linux and Windows - run as common user and also super user. However, none of the above mentioned methods work.

       

      Steps to reproduce the error:

      • variant A: 
        1. Start midPoint with embedded tomcat.
        2. Tomcat working directory is not created inside midpoint.home directory.
        3. Instead, the working directory of the tomcat is located in the temp directory of the user/system.
      • variant B:
        1. Use application.yml located in the midpoint home to set server.tomcat.basedir.
        2. Start midPoint with embedded tomcat.
        3. The tomcat working directory is not created at the desired location.
        4. Instead, the working directory of the tomcat is located in the temp directory of the user/system.

       

      Attachments

        Activity

          People

            mokracek93 Jan Mokráček
            mokracek93 Jan Mokráček
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: