diff --git a/spring/src/main/java/cucumber/runtime/java/spring/SpringFactory.java b/spring/src/main/java/cucumber/runtime/java/spring/SpringFactory.java
index <HASH>..<HASH> 100644
--- a/spring/src/main/java/cucumber/runtime/java/spring/SpringFactory.java
+++ b/spring/src/main/java/cucumber/runtime/java/spring/SpringFactory.java
@@ -17,6 +17,7 @@ public class SpringFactory implements ObjectFactory {
 
     public SpringFactory() {
         stepDefContext = new StaticApplicationContext();
+        stepDefContext.refresh();
         appContext = new ClassPathXmlApplicationContext(new String[]{"context.xml"}, stepDefContext);
     }
Initialize StaticApplicationContext in SpringFactory

StaticApplicationContext would throw an Exception due to a missing initialization step in SpringFactory's constructor. Calling stepDefContext.refresh() fixes the problem.