diff --git a/spring-vaadin/src/main/java/org/vaadin/spring/servlet/SpringAwareUIProvider.java b/spring-vaadin/src/main/java/org/vaadin/spring/servlet/SpringAwareUIProvider.java
index <HASH>..<HASH> 100644
--- a/spring-vaadin/src/main/java/org/vaadin/spring/servlet/SpringAwareUIProvider.java
+++ b/spring-vaadin/src/main/java/org/vaadin/spring/servlet/SpringAwareUIProvider.java
@@ -53,7 +53,7 @@ public class SpringAwareUIProvider extends UIProvider {
             Class<?> beanType = webApplicationContext.getType(uiBeanName);
             if (UI.class.isAssignableFrom(beanType)) {
                 logger.info(String.format("Found Vaadin UI [%s]", beanType.getCanonicalName()));
-                final String path = beanType.getAnnotation(VaadinUI.class).path();
+                final String path = webApplicationContext.findAnnotationOnBean(uiBeanName, VaadinUI.class).path();
                 Class<? extends UI> existingBeanType = pathToUIMap.get(path);
                 if (existingBeanType != null) {
                     throw new IllegalStateException(String.format("[%s] is already mapped to the path [%s]", existingBeanType.getCanonicalName(), path));
Now using the application context to ask for annotations