Set “ulimit” parameters to fix “Too Many Open Files” Error
If you ever run into the following errors with the below stacktrace, there’s a more than likely easy fix for it at the bottom of this article. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.get ApplicationContext(TestContext.java:308) at org.springframework.test.context.support.DependencyInjection TestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) at org.springframework.test.context.support.DependencyInjection TestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) at org.springframework.test.context.TestContextManager.prepareTestInstance (TestContextManager.java:321) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (SpringJUnit4ClassRunner.java:211) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1. runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock (SpringJUnit4ClassRunner.java:289) [...]
