- 19 Oct, 2015 4 commits
-
-
Stephane Nicoll authored
Logback documentation explains how to initialize the logging system and namely how the `logback.configurationFile` system property can be used to specify the configuration file to use. Spring Boot has an abstraction on top of that. A user can define the `logging.path` property regardless of the logging infrastructure it is using. Users following the logback documentation can be confused at first so we're not logging a warning when we found out that the logback specific property has been specified. Closes gh-2382
-
Tommy Ludwig authored
Previously, the launch script would always use a file named <appname>.log to capture the application's console output. This commit adds a variable, LOG_FILENAME, for specifying the file name defaulting to <appname>.log. Fixes gh-4194
-
Stephane Nicoll authored
Previously, HornetQ and Artemis tests were using a test configuration class listing the configuration classes to use explicitly in the purpose of disabling the XA support. This had a very unfortunate side effect for Artemis as we forgot to add an import on the "real" configuration and this got unnoticed because of this duplication. It turns out that this special configuration class is no longer necessary as XA backs off automatically anyway now. The tests have been updated to use the regular auto-configuration and were failing with Artemis. The import has now be added. Closes gh-4226
-
Huang YunKun authored
Closes gh-4219
-
- 18 Oct, 2015 4 commits
-
-
Stephane Nicoll authored
* pr/4222: Remove unnecessary statement
-
Johnny Lim authored
Closes gh-4222
-
Stephane Nicoll authored
* pr/4225: Update all GVM references to SDKMAN!
-
Marco Vermeulen authored
Closes gh-4225
-
- 16 Oct, 2015 17 commits
-
-
Stephane Nicoll authored
-
Spring Buildmaster authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
This commit applies the changes made in 68b55ada to 1.2.x (it was originally only made in 1.0.x and master). It also adds some tests. Closes gh-3803
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Commit adf2c44b was an attempt to prevent HSQLDB from throwing an exception when the JVM exits. This was achieved by disabling the application context’s shutdown hook in the tests. This had the unwanted side effect of causing tests’ application contexts not to be closed. The reported symptom was that @Destroy methods were no longer being invoked. We need a different solution to the problem. The exception was: Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: attempt to connect while db opening /closing at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) at org.hsqldb.DatabaseManager.newSession(Unknown Source) ... 23 common frames omitted I originally thought this was due to a race between the application context’s shutdown hook and HSQLDB’s shutdown hook, however HSQLDB doesn’t use a shutdown hook. I believe that the problem is due to an HSQLDB database being created with shutdown=true in its URL, similar to the problem described here [1]. This will shut down the database when the last connection to it is closed, however the shutdown will happen asynchronously. If the JVM then runs the application context’s shutdown hook, EmbeddedDatabaseFactory will attempt to connect to the database to execute the SHUTDOWN command. This executes synchronously but will race with the asynchronous shutdown that’s executing as a result of shutdown=true in the JDBC url and the last connection to the database being closed. This commit reinstates the use of application context shutdown hooks in the tests, and updates the documentation to recommend that, if a user manually configures the URL for their embedded database, they do so in such a way that the database doesn’t shutdown automatically, thereby allowing the shutdown to be driven by application context close. Closes gh-4208 [1] http://sourceforge.net/p/hsqldb/bugs/1400/
-
Phillip Webb authored
See gh-4210
-
Phillip Webb authored
-
Phillip Webb authored
This reverts commit 4c26b0c1.
-
Phillip Webb authored
This reverts commit 09395f95.
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
Update EndpointWebMvcAutoConfiguration to no longer catch and ignore EmbeddedServletContainerExceptions. Since commit 764e34b9, starting a management on a different port is not even attempted when running in a classic servlet container. This means that the catch/log logic (which was originally added in 45315a97) is no longer necessary, and only serves to hide genuine problems. Fixes gh-4064
-
Phillip Webb authored
Wrap Tomcat start errors in EmbeddedContainerException. Fixes gh-4204
-
Phillip Webb authored
Wrap Undertow start errors in EmbeddedContainerException. Fixes gh-4205
-
- 15 Oct, 2015 15 commits
-
-
Phillip Webb authored
-
Phillip Webb authored
Update `UndertowEmbeddedServletContainerFactory` so that the `ClassPathResourceManager` is no longer registered by default. Prior to this commit the resource manager would be registered whenever a valid document root could not be found. This had the effect of exposing all classpath files. Fixes gh-4015
-
Phillip Webb authored
-
Phillip Webb authored
-
Stephane Nicoll authored
This commit adds a dedicated property to specify the active profiles to use when running an application via the Maven plugin. This works also on the command line using the `run.profiles` system property and is consistently applied whether the process is forked or not. Closes gh-4199
-
Stephane Nicoll authored
Closes gh-4020
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Closes gh-4019
-
Stephane Nicoll authored
See gh-4191
-
Phillip Webb authored
Change `SpringBootServletInitializer` so that the logger is created in `onStartup` rather than on class creation. The allows logging to be initialized in an different WebApplicationInitializer. Fixes gh-3704
-
Phillip Webb authored
Update spring-boot-security-tests to use standard module names. Fixes gh-4101
-
Phillip Webb authored
* pr/4137: Use start-stop-daemon if present in launch.script
-
Bruce Edge authored
Update `launch.script` to use `start-stop-daemon` when possible to manage daemon processes. When `start-stop-daemon` is not available `su` is used. Closes gh-4137
-
Phillip Webb authored
Update ApplicationTemp so that `dir` is used in preference to `folder`. This better aligns with the existing ApplicationHome class. Fixes gh-4192
-
Phillip Webb authored
Add support for a `server.session.store-dir` property which can be used to specify where session data source be saved. Fixes gh-4191
-