@CDIUI and Wildfly 8.0. No active contexts for scope type com.vaadin.cdi.UI

Hi all.
I really hope someone can help me.
I’m trying to develop an application with JPAContainer, and I’d like to set up a custom EntityProvider for using JTA.
I have been able to load data into tables and trees from my MySql DB, using JPAContainer and JTA, but I had issues creating new data, becouse I have to define a custom EntityProvider.
In the first version of my application (noCustom EntityProvider) I had the UI’s Servlet explicitly defined, and I injected the EntityManager in the static Servlet, becouse I didn’t found the way to have not null injections directly in my UI, even if using @CDIUI annotation.
Trying to inject the Custom entityProvider in the same way returned a strange error, so I tried to make EJB injection work in the right way.
In a post I found that I don’t have to leave the Servlet definition in the code, becouse this is the reason why I get a WARNING message during deployment:"
Vaadin related servlet is defined in deployment descriptor, automated deployment of VaadinCDIServlet is now disabled"
. I have tried to remove the Servlet definition, by I obtain an error.
Can someone please give me a suggestion?

Has anybody a simple complete code example using CDI plugin and defining a custom EntityProvider?

Anytime I make a step up it seems like I make two back… :frowning:
Please, any suggestion would be really appreciated…

This is an extract of the Console output when I deploy the project using the explicit definition of Servlet, and injection in the Servlet:

....................... 17:07:48,642 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: DBManagerEA.ear 17:07:48,738 INFO [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.1.2 (Final) 17:07:48,765 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment DBManagerEA.ear 17:07:49,250 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'DBManagerEA.ear#DBManagerDB' 17:07:50,032 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.4.Final} 17:07:50,710 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect 17:07:53,491 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory 17:08:20,484 INFO [com.vaadin.cdi.internal.VaadinExtension] (MSC service thread 1-6) UIScopedContext registered 17:08:22,444 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Initializing web context for path /DBManagerUI 17:08:22,446 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Discovering Vaadin UIs... 17:08:22,448 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) 1 beans inheriting from UI discovered! 17:08:22,451 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Vaadin UI com.dbmanager.dbmanagerui.DbmanageruiUI is marked as @CDIUI without context path, this UI is accessible from context root of deployment 17:08:22,452 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Available Vaadin UIs for CDI deployment [] 17:08:22,454 WARNING [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Vaadin related servlet is defined in deployment descriptor, automated deployment of VaadinCDIServlet is now disabled 17:08:22,456 INFO [com.vaadin.cdi.internal.ContextDeployer] (MSC service thread 1-5) Done deploying Vaadin UIs 17:08:22,607 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017534: Registered web context: /DBManagerUI 17:08:22,850 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "mysql-connector-java-5.1.30-bin.jar" (runtime-name : "mysql-connector-java-5.1.30-bin.jar") 17:08:22,853 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "DBManagerEA.ear" (runtime-name : "DBManagerEA.ear") 17:08:22,897 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 17:08:22,899 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 17:08:22,900 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 41660ms - Started 568 of 638 services (117 services are lazy, passive or on-demand) But I get the following error When I try to execute…
"17:15:19,532 SEVERE [com.vaadin.server.DefaultErrorHandler]
(default task-5) : java.lang.IncompatibleClassChangeError: Class com.DBManager.EJB.MyEntityProvider$$$view2
does not implement the requested interface com.vaadin.addon.jpacontainer.EntityProvider

"

[code]

Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.

17:15:07,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed AtmosphereHandler com.vaadin.server.communication.PushHandler$1 mapped to context-path: /*
17:15:07,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushHandler$1
17:15:07,868 WARNING [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead
17:15:07,894 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
17:15:07,899 INFO [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$ServletContainerInitializerAnnotationProcessor being used
17:15:07,904 WARNING [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) Unable to detect annotations. Application may fail to deploy.
17:15:08,080 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Auto detecting WebSocketHandler in /WEB-INF/classes/
17:15:08,153 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
17:15:08,169 INFO [org.atmosphere.container.JSR356AsyncSupport]
(default task-1) JSR 356 Mapping path /{path}
17:15:08,181 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /{path}
17:15:08,197 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /{path}/{path0}
17:15:08,200 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /{path}/{path0}/{path1}
17:15:08,203 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /{path}/{path0}/{path1}/{path2}
17:15:08,207 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /{path}/{path0}/{path1}/{path2}/{path3}
17:15:08,212 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installing Default AtmosphereInterceptor
17:15:08,215 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
17:15:08,217 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response’s Headers Interceptor
17:15:08,233 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
17:15:08,251 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
17:15:08,253 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
17:15:08,262 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
17:15:08,264 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
17:15:08,269 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
17:15:08,271 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
17:15:08,273 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
17:15:08,275 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
17:15:08,277 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
17:15:08,280 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
17:15:08,282 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
17:15:08,283 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
17:15:08,285 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Broadcaster Polling Wait Time 100
17:15:08,293 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Shared ExecutorService supported: true
17:15:08,300 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Messaging Thread Pool Size: Unlimited
17:15:08,302 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Async I/O Thread Pool Size: 200
17:15:08,303 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
17:15:08,305 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
17:15:08,306 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) HttpSession supported: true
17:15:08,307 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation
17:15:08,309 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: WildFly 8.1.0.Final - 1.0.15.Final using javax.servlet/3.0 using javax.servlet/3.0 and jsr356/WebSocket API
17:15:08,312 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere Framework 2.1.2.vaadin2 started.
17:15:08,322 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed AtmosphereInterceptor Track Message Size Interceptor using | with priority BEFORE_DEFAULT

17:15:19,532 SEVERE [com.vaadin.server.DefaultErrorHandler]
(default task-5) : java.lang.IncompatibleClassChangeError: Class com.DBManager.EJB.MyEntityProvider$$$view2 does not implement the requested interface com.vaadin.addon.jpacontainer.EntityProvider
at com.vaadin.addon.jpacontainer.JPAContainer.size(JPAContainer.java:912) [vaadin-jpacontainer-3.1.1.jar:3.1.1]

at com.vaadin.ui.AbstractSelect.size(AbstractSelect.java:762) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1654) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.Table.attach(Table.java:4220) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.AbstractComponent.setParent(AbstractComponent.java:483) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.AbstractSingleComponentContainer.setContent(AbstractSingleComponentContainer.java:145) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.UI.setContent(UI.java:1240) [vaadin-server-7.2.4.jar:7.2.4]

at com.dbmanager.dbmanagerui.DbmanageruiUI.init(DbmanageruiUI.java:138) [classes:]

at com.vaadin.ui.UI.doInit(UI.java:641) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:222) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1405) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:237) [vaadin-server-7.2.4.jar:7.2.4]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123) [undertow-websockets-jsr-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]

17:15:19,589 ERROR [io.undertow.request]
(default task-5) UT005023: Exception handling request to /DBManagerUI/: javax.servlet.ServletException: com.vaadin.server.ServiceException: java.lang.IncompatibleClassChangeError: Class com.DBManager.EJB.MyEntityProvider$$$view2 does not implement the requested interface com.vaadin.addon.jpacontainer.EntityProvider
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:239) [vaadin-server-7.2.4.jar:7.2.4]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123) [undertow-websockets-jsr-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]

Caused by: com.vaadin.server.ServiceException: java.lang.IncompatibleClassChangeError: Class com.DBManager.EJB.MyEntityProvider$$$view2 does not implement the requested interface com.vaadin.addon.jpacontainer.EntityProvider
at com.vaadin.server.VaadinService.handleExceptionDuringRequest(VaadinService.java:1463) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1417) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:237) [vaadin-server-7.2.4.jar:7.2.4]

... 32 more

Caused by: java.lang.IncompatibleClassChangeError: Class com.DBManager.EJB.MyEntityProvider$$$view2 does not implement the requested interface com.vaadin.addon.jpacontainer.EntityProvider
at com.vaadin.addon.jpacontainer.JPAContainer.size(JPAContainer.java:912) [vaadin-jpacontainer-3.1.1.jar:3.1.1]

at com.vaadin.ui.AbstractSelect.size(AbstractSelect.java:762) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1654) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.Table.attach(Table.java:4220) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.AbstractComponent.setParent(AbstractComponent.java:483) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.AbstractSingleComponentContainer.setContent(AbstractSingleComponentContainer.java:145) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.ui.UI.setContent(UI.java:1240) [vaadin-server-7.2.4.jar:7.2.4]

at com.dbmanager.dbmanagerui.DbmanageruiUI.init(DbmanageruiUI.java:138) [classes:]

at com.vaadin.ui.UI.doInit(UI.java:641) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:222) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1405) [vaadin-server-7.2.4.jar:7.2.4]

... 33 more

[/code]This is my custom EntityProvider MyEntityProvider:

[code]
package com.DBManager.EJB;
import javax.ejb.Stateless;

import dbmanager.model.OrdiniT;

@Stateless
public class MyEntityProvider extends EjbEntityProvider {

public MyEntityProvider() {
    super(OrdiniT.class);
}

}
[/code]And this is the “father” EjbEntityProvider:

[code]
package com.DBManager.EJB;

/**

  • Session Bean implementation class EjbEntityProvider
    */

import javax.annotation.PostConstruct;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;
import com.vaadin.addon.jpacontainer.provider.MutableLocalEntityProvider;

@TransactionManagement
public abstract class EjbEntityProvider extends MutableLocalEntityProvider {

@PersistenceContext(type = PersistenceContextType.EXTENDED)
private EntityManager em;

public EjbEntityProvider(Class<T> entityClass) {
    super(entityClass);
}

@PostConstruct
public void init() {
    setTransactionsHandledByProvider(false);
    setEntityManager(em);
}

@Override
@TransactionAttribute(TransactionAttributeType.REQUIRED)
protected void runInTransaction(Runnable operation) {
    super.runInTransaction(operation);
}

}
[/code]I get this error, so I think maybe the problem is in the uncorrect use of CDI, and I try to remove the Servlet:

[code]
package com.dbmanager.dbmanagerui;

import java.util.Spliterator;
import java.util.function.Consumer;

import javax.inject.Inject;

import com.DBManager.EJB.EjbEntityProvider;
import com.vaadin.addon.jpacontainer.JPAContainer;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.Title;
import com.vaadin.cdi.CDIUI;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Component;
import com.vaadin.ui.Table;
import com.vaadin.ui.UI;

import dbmanager.model.OrdiniT;

@SuppressWarnings(“serial”)
@Theme(“dbmanagerui”)
@Title(“Data Manager”)
@CDIUI
public class DbmanageruiUI extends UI {
/*
@SuppressWarnings(“serial”)
@WebServlet(value = “/*”,
asyncSupported = true,
initParams = {@WebInitParam(
name = “session-timeout”,
value = “60”
),@WebInitParam(
name = “UIProvider”,
value = “com.vaadin.cdi.CDIUIProvider”
)}
)
@VaadinServletConfiguration(productionMode = false,
ui = DbmanageruiUI.class,
closeIdleSessions = true
)
public static class Servlet extends VaadinServlet {
}
*/
@Inject
private EjbEntityProvider epBean2;

@Override
protected void init(VaadinRequest request) {
    JPAContainer<OrdiniT> container = new JPAContainer<OrdiniT>(OrdiniT.class);
    //epBean2 = Servlet.getEPBean();  // NOT NULL
    if (epBean2!=null)
    {
        System.out.println("Sono qui...epBean2 NOT NULL... Inject ha funzionato!");
    }
    container.setEntityProvider(epBean2);
    Table table = new Table("Test JPAContainer", container);
    table.setSizeFull();
    
    setContent(table); // HERE I GET THE ERROR!!!
    setSizeFull();
}

................

}
[/code]The deployment of this version seems to be OK, I don’t get the WARNING message un @CDIUI, in fact I can see in the Console: " INFO [com.vaadin.cdi.internal.ContextDeployer]
(MSC service thread 1-3)
Registering VaadinServlet with CDIUIProvider
"

16:30:01,443 INFO  [org.jboss.modules]
 (main) JBoss Modules version 1.3.3.Final
16:30:02,205 INFO  [org.jboss.msc]
 (main) JBoss MSC version 1.2.2.Final
16:30:02,319 INFO  [org.jboss.as]
 (MSC service thread 1-7) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
16:30:03,998 INFO  [org.jboss.as.controller.management-deprecated]
 (Controller Boot Thread) JBAS014627: Attribute any-ipv4-address is deprecated, and it might be removed in future version!
16:30:04,067 INFO  [org.jboss.as.server.deployment.scanner]
 (DeploymentScanner-threads - 1) JBAS015003: Found DBManagerEA.ear in deployment directory. To trigger deployment create a file called DBManagerEA.ear.dodeploy
16:30:04,109 INFO  [org.jboss.as.server]
 (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
16:30:04,128 INFO  [org.xnio]
 (MSC service thread 1-5) XNIO version 3.2.2.Final
16:30:04,137 INFO  [org.xnio.nio]
 (MSC service thread 1-5) XNIO NIO Implementation Version 3.2.2.Final
16:30:04,196 INFO  [org.wildfly.extension.io]
 (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
16:30:04,234 WARN  [org.jboss.as.txn]
 (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
16:30:04,240 INFO  [org.jboss.as.naming]
 (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
16:30:04,246 INFO  [org.jboss.as.connector.subsystems.datasources]
 (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:30:04,247 INFO  [org.jboss.as.jsf]
 (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]

16:30:04,247 INFO  [org.jboss.as.clustering.infinispan]
 (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
16:30:04,248 INFO  [org.jboss.as.security]
 (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
16:30:04,259 INFO  [org.jboss.as.connector.logging]
 (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
16:30:04,264 INFO  [org.jboss.as.webservices]
 (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:30:04,290 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = h2
16:30:04,294 INFO  [org.jboss.as.connector.subsystems.datasources]
 (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
16:30:04,301 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = com.mysql
16:30:04,302 INFO  [org.jboss.as.security]
 (MSC service thread 1-3) JBAS013170: Current PicketBox version=4.0.21.Beta1
16:30:04,309 INFO  [org.wildfly.extension.undertow]
 (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.0.15.Final starting
16:30:04,310 INFO  [org.wildfly.extension.undertow]
 (MSC service thread 1-7) JBAS017502: Undertow 1.0.15.Final starting
16:30:04,381 INFO  [org.jboss.as.mail.extension]
 (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]

16:30:04,379 INFO  [org.jboss.as.naming]
 (MSC service thread 1-3) JBAS011802: Starting Naming Service
16:30:04,535 INFO  [org.wildfly.extension.undertow]
 (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path C:\wildfly-8.1.0.Final/welcome-content
16:30:04,595 INFO  [org.wildfly.extension.undertow]
 (MSC service thread 1-7) JBAS017525: Started server default-server.
16:30:04,600 INFO  [org.wildfly.extension.undertow]
 (MSC service thread 1-7) JBAS017531: Host default-host starting
16:30:04,691 INFO  [org.jboss.as.connector.subsystems.datasources]
 (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/SusyMySqlDS]

16:30:04,863 INFO  [org.jboss.remoting]
 (MSC service thread 1-2) JBoss Remoting version 4.0.3.Final
16:30:05,093 INFO  [org.jboss.as.server.deployment.scanner]
 (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\wildfly-8.1.0.Final\standalone\deployments
16:30:05,098 INFO  [org.jboss.as.server.deployment]
 (MSC service thread 1-7) JBAS015876: Starting deployment of "mysql-connector-java-5.1.30-bin.jar" (runtime-name: "mysql-connector-java-5.1.30-bin.jar")
16:30:05,098 INFO  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015876: Starting deployment of "DBManagerEA.ear" (runtime-name: "DBManagerEA.ear")
16:30:05,236 INFO  [org.wildfly.extension.undertow]
 (MSC service thread 1-7) JBAS017519: Undertow HTTP listener default listening on /0.0.0.0:8080
16:30:05,437 INFO  [org.jboss.as.connector.subsystems.datasources]
 (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/SusyH2DS]

16:30:05,440 INFO  [org.jboss.as.connector.subsystems.datasources]
 (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

16:30:05,876 INFO  [org.jboss.ws.common.management]
 (MSC service thread 1-7) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
16:30:05,903 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
16:30:05,905 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
16:30:05,932 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-5) JBAS010417: Started Driver service with driver-name = mysql-connector-java-5.1.30-bin.jar_com.mysql.jdbc.Driver_5_1
16:30:05,933 INFO  [org.jboss.as.connector.deployers.jdbc]
 (MSC service thread 1-6) JBAS010417: Started Driver service with driver-name = mysql-connector-java-5.1.30-bin.jar_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
16:30:06,112 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry vaadin-server-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,113 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry jsoup-1.6.3.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,113 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry vaadin-shared-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,114 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry flute-1.3.0.gg2.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,115 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry streamhtmlparser-jsilver-0.0.10.vaadin1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,115 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry guava-16.0.1.vaadin1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,116 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry android-json-0.0.20131108.vaadin1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,130 INFO  [org.jboss.as.server.deployment]
 (MSC service thread 1-5) JBAS015973: Starting subdeployment (runtime-name: "DBManagerEJB.jar")
16:30:06,130 INFO  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015973: Starting subdeployment (runtime-name: "DBManagerUI.war")
16:30:06,977 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry vaadin-server-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/DBManagerUI.war/WEB-INF/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:06,978 WARN  [org.jboss.as.server.deployment]
 (MSC service thread 1-3) JBAS015960: Class Path entry vaadin-shared-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/DBManagerEA.ear/DBManagerUI.war/WEB-INF/lib/vaadin-cdi-1.0.0.alpha2.jar  does not point to a valid jar for a Class-Path reference.
16:30:07,984 INFO  [org.jboss.as.jpa]
 (MSC service thread 1-3) JBAS011401: Read persistence.xml for DBManagerDB
16:30:08,201 INFO  [org.jboss.as.jpa]
 (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'DBManagerEA.ear#DBManagerDB'
16:30:08,369 INFO  [org.hibernate.Version]
 (ServerService Thread Pool -- 50) HHH000412: Hibernate Core {4.3.5.Final}
16:30:08,372 INFO  [org.hibernate.cfg.Environment]
 (ServerService Thread Pool -- 50) HHH000206: hibernate.properties not found
16:30:08,375 INFO  [org.hibernate.cfg.Environment]
 (ServerService Thread Pool -- 50) HHH000021: Bytecode provider name : javassist
16:30:08,853 INFO  [org.jboss.weld.deployer]
 (MSC service thread 1-3) JBAS016002: Processing weld deployment DBManagerEA.ear
16:30:10,069 INFO  [org.hibernate.validator.internal.util.Version]
 (MSC service thread 1-3) HV000001: Hibernate Validator 5.1.0.Final
16:30:10,227 INFO  [org.jboss.weld.deployer]
 (MSC service thread 1-6) JBAS016002: Processing weld deployment DBManagerUI.war
16:30:10,247 INFO  [org.jboss.weld.deployer]
 (MSC service thread 1-2) JBAS016002: Processing weld deployment DBManagerEJB.jar
16:30:10,251 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
 (MSC service thread 1-2) JNDI bindings for session bean named MyEntityProvider in deployment unit subdeployment "DBManagerEJB.jar" of deployment "DBManagerEA.ear" are as follows:

    java:global/DBManagerEA/DBManagerEJB/MyEntityProvider!com.DBManager.EJB.MyEntityProvider
    java:app/DBManagerEJB/MyEntityProvider!com.DBManager.EJB.MyEntityProvider
    java:module/MyEntityProvider!com.DBManager.EJB.MyEntityProvider
    java:global/DBManagerEA/DBManagerEJB/MyEntityProvider
    java:app/DBManagerEJB/MyEntityProvider
    java:module/MyEntityProvider

16:30:10,251 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
 (MSC service thread 1-2) JNDI bindings for session bean named EntityProviderFactoryEJB in deployment unit subdeployment "DBManagerEJB.jar" of deployment "DBManagerEA.ear" are as follows:

    java:global/DBManagerEA/DBManagerEJB/EntityProviderFactoryEJB!com.DBManager.EJB.EntityProviderFactoryEJB
    java:app/DBManagerEJB/EntityProviderFactoryEJB!com.DBManager.EJB.EntityProviderFactoryEJB
    java:module/EntityProviderFactoryEJB!com.DBManager.EJB.EntityProviderFactoryEJB
    java:global/DBManagerEA/DBManagerEJB/EntityProviderFactoryEJB
    java:app/DBManagerEJB/EntityProviderFactoryEJB
    java:module/EntityProviderFactoryEJB

16:30:10,253 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
 (MSC service thread 1-2) JNDI bindings for session bean named DBConnectorEJB in deployment unit subdeployment "DBManagerEJB.jar" of deployment "DBManagerEA.ear" are as follows:

    java:global/DBManagerEA/DBManagerEJB/DBConnectorEJB!com.DBManager.EJB.DBConnectorEJB
    java:app/DBManagerEJB/DBConnectorEJB!com.DBManager.EJB.DBConnectorEJB
    java:module/DBConnectorEJB!com.DBManager.EJB.DBConnectorEJB
    java:global/DBManagerEA/DBManagerEJB/DBConnectorEJB
    java:app/DBManagerEJB/DBConnectorEJB
    java:module/DBConnectorEJB

16:30:10,292 INFO  [org.jboss.weld.deployer]
 (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: DBManagerEA.ear
16:30:10,347 INFO  [org.jboss.weld.Version]
 (MSC service thread 1-2) WELD-000900: 2.1.2 (Final)
16:30:10,415 INFO  [org.jboss.weld.deployer]
 (MSC service thread 1-4) JBAS016008: Starting weld service for deployment DBManagerEA.ear
16:30:10,818 INFO  [org.jboss.as.jpa]
 (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'DBManagerEA.ear#DBManagerDB'
16:30:12,368 INFO  [org.hibernate.annotations.common.Version]
 (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
16:30:12,785 INFO  [org.hibernate.dialect.Dialect]
 (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
16:30:13,300 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory]
 (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory
16:30:16,960 INFO  [com.vaadin.cdi.internal.VaadinExtension]
 (MSC service thread 1-8) UIScopedContext registered
16:30:17,335 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Initializing web context for path /DBManagerUI
16:30:17,335 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Discovering Vaadin UIs...
16:30:17,336 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) 1 beans inheriting from UI discovered!
16:30:17,337 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Vaadin UI com.dbmanager.dbmanagerui.DbmanageruiUI is marked as @CDIUI without context path, this UI is accessible from context root of deployment
16:30:17,337 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Available Vaadin UIs for CDI deployment []
16:30:17,339 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Registering VaadinServlet with CDIUIProvider
16:30:17,343 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Mapping VaadinServlet to /*
16:30:17,343 INFO  [com.vaadin.cdi.internal.ContextDeployer]
 (MSC service thread 1-3) Done deploying Vaadin UIs
16:30:17,393 INFO  [org.wildfly.extension.undertow]
 (MSC service thread 1-3) JBAS017534: Registered web context: /DBManagerUI
16:30:18,284 INFO  [org.jboss.as.server]
 (ServerService Thread Pool -- 28) JBAS018559: Deployed "mysql-connector-java-5.1.30-bin.jar" (runtime-name : "mysql-connector-java-5.1.30-bin.jar")
16:30:18,284 INFO  [org.jboss.as.server]
 (ServerService Thread Pool -- 28) JBAS018559: Deployed "DBManagerEA.ear" (runtime-name : "DBManagerEA.ear")
16:30:18,318 INFO  [org.jboss.as]
 (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
16:30:18,318 INFO  [org.jboss.as]
 (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:30:18,318 INFO  [org.jboss.as]
 (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 17352ms - Started 498 of 568 services (117 services are lazy, passive or on-demand)

When I try to execute the application I get a new error, at the real begin…
"17:02:21,035 SEVERE [com.vaadin.server.DefaultErrorHandler]
(default task-5) :
org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type com.vaadin.cdi.UIScoped
"

[code]
17:02:13,707 WARNING [com.vaadin.server.DefaultDeploymentConfiguration]
(default task-1)

Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.

17:02:13,750 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed AtmosphereHandler com.vaadin.server.communication.PushHandler$1 mapped to context-path: /*
17:02:13,751 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushHandler$1
17:02:13,756 WARNING [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead
17:02:13,764 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
17:02:13,765 INFO [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$ServletContainerInitializerAnnotationProcessor being used
17:02:13,766 WARNING [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) Unable to detect annotations. Application may fail to deploy.
17:02:13,809 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Auto detecting WebSocketHandler in /WEB-INF/classes/
17:02:13,818 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
17:02:13,825 INFO [org.atmosphere.container.JSR356AsyncSupport]
(default task-1) JSR 356 Mapping path /VAADIN
17:02:13,829 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /VAADIN
17:02:13,832 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /VAADIN/{path0}
17:02:13,832 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /VAADIN/{path0}/{path1}
17:02:13,832 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /VAADIN/{path0}/{path1}/{path2}
17:02:13,832 INFO [io.undertow.websockets.jsr]
(default task-1) UT026005: Adding programmatic server endpoint class org.atmosphere.container.JSR356Endpoint for path /VAADIN/{path0}/{path1}/{path2}/{path3}
17:02:13,833 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installing Default AtmosphereInterceptor
17:02:13,833 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
17:02:13,834 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response’s Headers Interceptor
17:02:13,835 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
17:02:13,836 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
17:02:13,836 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
17:02:13,837 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
17:02:13,837 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
17:02:13,839 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
17:02:13,839 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
17:02:13,840 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
17:02:13,840 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
17:02:13,841 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
17:02:13,841 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
17:02:13,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
17:02:13,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
17:02:13,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Broadcaster Polling Wait Time 100
17:02:13,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Shared ExecutorService supported: true
17:02:13,842 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Messaging Thread Pool Size: Unlimited
17:02:13,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Async I/O Thread Pool Size: 200
17:02:13,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
17:02:13,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
17:02:13,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) HttpSession supported: true
17:02:13,843 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation
17:02:13,844 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: WildFly 8.1.0.Final - 1.0.15.Final using javax.servlet/3.0 using javax.servlet/3.0 and jsr356/WebSocket API
17:02:13,844 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere Framework 2.1.2.vaadin2 started.
17:02:13,847 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Installed AtmosphereInterceptor Track Message Size Interceptor using | with priority BEFORE_DEFAULT
17:02:14,135 ERROR [stderr]
(default task-3) Handler java.util.logging.ConsoleHandler is not defined

17:02:21,035 SEVERE [com.vaadin.server.DefaultErrorHandler]
(default task-5) : org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type com.vaadin.cdi.UIScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:680) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:733) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:753) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:61) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:80) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at com.vaadin.cdi.CDIUIProvider.createInstance(CDIUIProvider.java:64) [vaadin-cdi-1.0.0.alpha2.jar:1.0.0.alpha2]

at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:199) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1405) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:237) [vaadin-server-7.2.4.jar:7.2.4]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123) [undertow-websockets-jsr-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]

17:02:21,043 ERROR [io.undertow.request]
(default task-5) UT005023: Exception handling request to /DBManagerUI/: javax.servlet.ServletException: com.vaadin.server.ServiceException: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type com.vaadin.cdi.UIScoped
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:239) [vaadin-server-7.2.4.jar:7.2.4]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:123) [undertow-websockets-jsr-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]

Caused by: com.vaadin.server.ServiceException: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type com.vaadin.cdi.UIScoped
at com.vaadin.server.VaadinService.handleExceptionDuringRequest(VaadinService.java:1463) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1417) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:237) [vaadin-server-7.2.4.jar:7.2.4]

... 32 more

Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type com.vaadin.cdi.UIScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:680) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:733) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:753) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:61) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:80) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

at com.vaadin.cdi.CDIUIProvider.createInstance(CDIUIProvider.java:64) [vaadin-cdi-1.0.0.alpha2.jar:1.0.0.alpha2]

at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:199) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.2.4.jar:7.2.4]

at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1405) [vaadin-server-7.2.4.jar:7.2.4]

... 33 more

[/code]I really don’t understand.
I don’t have a web.xml file, I think I should not use it in this project… (Wildfly 8.0 final, java 1.8, Vaadin 7.2.4, vaadin-jpa-container 3.1.1, vaadin-cdi-1.0.0-alpha2).
Please give me some suggestion…
Thanks,
Susanna
15907.png

Uncomment the servlet again, my servlet annotations look like this

[code]
@WebServlet(urlPatterns = “/*”, initParams = {
@WebInitParam(name = VaadinSession.UI_PARAMETER, value = “com.aa.bb.MyVaadinUI”),
@WebInitParam(name = Constants.SERVLET_PARAMETER_UI_PROVIDER, value = “com.vaadin.cdi.CDIUIProvider”)
})

public static class UIApplicationServlet extends VaadinServlet {
}

[/code]I’m sure this is not the only correct way to do it, but it works for me. If I don’t have it I get errors on deploy, there might be other annotations you can use on your UI subclass though …

If it doesn’t work, try to make a more simple variant of the project first, just injecting only a simple session bean, so that you can figure out if the problem is relatied to injecting EntityProvider/JPAContainer specifically, or if it’s more general.

And you don’t need web.xml, that’s correct.

Ok, thank you so much jon. I’m gonna try…

Here is a minimalistic hello world cdi-sessionbean for wildfly 8.1 (maven). It’s a stripped down version of a small project I have, so there might be some “extra stuff” hanging around in there, but basically it’s just one sessionbean and a vaadin ui where the session bean is injected.

(JPA/Hibernate is present, just add persistence.xml and uncomment the entity manager …)

Not sure if it’s the best way to do it, but it runs …
15926.tgz (13.5 KB)

Hi jon!
Thank you again, I can inject my EJBs in UI now.
I have not understood the difference between what I had tried to di in past and your example, but something different must be in place, becouse Yours is working, and mine was not… :slight_smile:
I still can’t inject my entity provider EJB, so I don’t know if this new version is solving my initial issue, but it is a real good improvment, anyway.
urrently I have a WildFly issue, “WildFly WFLY-1097 relax the requirement for having EJB bean class no-arg constructor”. (https://issues.jboss.org/browse/WFLY-1097) I have just try to ask support becouse this bug should be already fixed in 8.0.final, but maybe there is something not ok n my Wildfly or eclipse configuration…
In any case, if someone has suggestion about this problem too…you all are welcome…! :slight_smile:

[code]
10:17:33,880 INFO [org.jboss.modules]
(main) JBoss Modules version 1.3.3.Final
10:17:34,634 INFO [org.jboss.msc]
(main) JBoss MSC version 1.2.2.Final
10:17:34,725 INFO [org.jboss.as]
(MSC service thread 1-7) JBAS015899: WildFly 8.1.0.Final “Kenny” starting
10:17:39,022 INFO [org.jboss.as.controller.management-deprecated]
(Controller Boot Thread) JBAS014627: Attribute any-ipv4-address is deprecated, and it might be removed in future version!
10:17:39,140 WARN [org.jboss.as.server.deployment.scanner]
(DeploymentScanner-threads - 1) JBAS015002: Deployment of ‘example-main’ requested, but the deployment is not present
10:17:39,141 INFO [org.jboss.as.server.deployment.scanner]
(DeploymentScanner-threads - 1) JBAS015003: Found ProvazzaVAADIN.ear in deployment directory. To trigger deployment create a file called ProvazzaVAADIN.ear.dodeploy
10:17:39,205 INFO [org.jboss.as.server]
(Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
10:17:39,303 INFO [org.xnio]
(MSC service thread 1-8) XNIO version 3.2.2.Final
10:17:39,320 INFO [org.xnio.nio]
(MSC service thread 1-8) XNIO NIO Implementation Version 3.2.2.Final
10:17:39,420 INFO [org.jboss.as.security]
(ServerService Thread Pool – 45) JBAS013171: Activating Security Subsystem
10:17:39,426 WARN [org.jboss.as.txn]
(ServerService Thread Pool – 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
10:17:39,451 INFO [org.jboss.as.naming]
(ServerService Thread Pool – 40) JBAS011800: Activating Naming Subsystem
10:17:39,461 INFO [org.jboss.as.security]
(MSC service thread 1-3) JBAS013170: Current PicketBox version=4.0.21.Beta1
10:17:39,460 INFO [org.jboss.as.jsf]
(ServerService Thread Pool – 38) JBAS012615: Activated the following JSF Implementations: [main]

10:17:39,472 INFO [org.jboss.as.clustering.infinispan]
(ServerService Thread Pool – 32) JBAS010280: Activating Infinispan subsystem.
10:17:39,515 INFO [org.jboss.as.webservices]
(ServerService Thread Pool – 48) JBAS015537: Activating WebServices Extension
10:17:39,743 INFO [org.jboss.as.connector.logging]
(MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
10:17:39,786 INFO [org.wildfly.extension.undertow]
(ServerService Thread Pool – 47) JBAS017502: Undertow 1.0.15.Final starting
10:17:39,786 INFO [org.wildfly.extension.undertow]
(MSC service thread 1-6) JBAS017502: Undertow 1.0.15.Final starting
10:17:40,067 INFO [org.wildfly.extension.io]
(ServerService Thread Pool – 31) WFLYIO001: Worker ‘default’ has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
10:17:40,228 INFO [org.wildfly.extension.undertow]
(ServerService Thread Pool – 47) JBAS017527: Creating file handler for path C:\wildfly-8.1.0.Final/welcome-content
10:17:40,373 INFO [org.wildfly.extension.undertow]
(MSC service thread 1-5) JBAS017525: Started server default-server.
10:17:40,508 INFO [org.wildfly.extension.undertow]
(MSC service thread 1-3) JBAS017531: Host default-host starting
10:17:40,884 INFO [org.jboss.as.connector.subsystems.datasources]
(ServerService Thread Pool – 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
10:17:40,887 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = h2
10:17:40,949 INFO [org.jboss.as.connector.subsystems.datasources]
(ServerService Thread Pool – 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
10:17:40,951 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = com.mysql
10:17:41,287 INFO [org.jboss.as.naming]
(MSC service thread 1-4) JBAS011802: Starting Naming Service
10:17:41,288 INFO [org.jboss.as.mail.extension]
(MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

10:17:41,294 INFO [org.jboss.remoting]
(MSC service thread 1-8) JBoss Remoting version 4.0.3.Final
10:17:41,520 INFO [org.wildfly.extension.undertow]
(MSC service thread 1-7) JBAS017519: Undertow HTTP listener default listening on /0.0.0.0:8080
10:17:41,757 INFO [org.jboss.as.connector.subsystems.datasources]
(MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/SusyMySqlDS]

10:17:42,164 INFO [org.jboss.as.server.deployment.scanner]
(MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory C:\wildfly-8.1.0.Final\standalone\deployments
10:17:42,173 INFO [org.jboss.as.connector.subsystems.datasources]
(MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

10:17:42,173 INFO [org.jboss.as.connector.subsystems.datasources]
(MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/SusyH2DS]

10:17:42,227 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-7) JBAS015876: Starting deployment of “ProvazzaVAADIN.ear” (runtime-name: “ProvazzaVAADIN.ear”)
10:17:42,228 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-5) JBAS015876: Starting deployment of “mysql-connector-java-5.1.30-bin.jar” (runtime-name: “mysql-connector-java-5.1.30-bin.jar”)
10:17:42,514 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015973: Starting subdeployment (runtime-name: “web.war”)
10:17:44,482 INFO [org.jboss.ws.common.management]
(MSC service thread 1-8) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
10:17:45,050 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-8) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
10:17:45,052 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-8) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
10:17:45,396 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-5) JBAS010417: Started Driver service with driver-name = mysql-connector-java-5.1.30-bin.jar_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
10:17:45,396 INFO [org.jboss.as.connector.deployers.jdbc]
(MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = mysql-connector-java-5.1.30-bin.jar_com.mysql.jdbc.Driver_5_1
10:17:46,272 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry vaadin-server-7.2.2.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,272 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry vaadin-sass-compiler-0.9.2.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,273 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry commons-jexl-2.1.1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,273 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry commons-logging-1.1.1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,273 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry vaadin-shared-7.2.2.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,274 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry gwt-maps-api-3.10.0-alpha-7.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,274 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry gwt-ajaxloader-1.1.0.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,274 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry junit-3.8.1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/googlemaps-0.9.0.jar does not point to a valid jar for a Class-Path reference.
10:17:46,278 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry xml-apis.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/serializer-2.7.1.jar does not point to a valid jar for a Class-Path reference.
10:17:46,279 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry vaadin-server-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/vaadin-cdi-1.0.0.alpha2.jar does not point to a valid jar for a Class-Path reference.
10:17:46,279 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015960: Class Path entry vaadin-shared-7.2.0.beta1.jar in /C:/wildfly-8.1.0.Final/standalone/deployments/ProvazzaVAADIN.ear/web.war/WEB-INF/lib/vaadin-cdi-1.0.0.alpha2.jar does not point to a valid jar for a Class-Path reference.
10:17:46,776 INFO [org.jboss.as.jpa]
(MSC service thread 1-4) JBAS011401: Read persistence.xml for DBManagerDB
10:17:47,140 INFO [org.jboss.weld.deployer]
(MSC service thread 1-8) JBAS016002: Processing weld deployment ProvazzaVAADIN.ear
10:17:47,142 INFO [org.jboss.as.jpa]
(ServerService Thread Pool – 50) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service ‘ProvazzaVAADIN.ear/web.war#DBManagerDB’
10:17:47,949 INFO [org.hibernate.Version]
(ServerService Thread Pool – 50) HHH000412: Hibernate Core {4.3.5.Final}
10:17:47,978 INFO [org.hibernate.cfg.Environment]
(ServerService Thread Pool – 50) HHH000206: hibernate.properties not found
10:17:47,981 INFO [org.hibernate.cfg.Environment]
(ServerService Thread Pool – 50) HHH000021: Bytecode provider name : javassist
10:17:48,285 INFO [org.hibernate.validator.internal.util.Version]
(MSC service thread 1-8) HV000001: Hibernate Validator 5.1.0.Final
10:18:03,215 INFO [org.jboss.weld.deployer]
(MSC service thread 1-5) JBAS016002: Processing weld deployment web.war
10:18:03,234 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
(MSC service thread 1-5) JNDI bindings for session bean named EntityProviderBean in deployment unit subdeployment “web.war” of deployment “ProvazzaVAADIN.ear” are as follows:

java:global/ProvazzaVAADIN/web/EntityProviderBean!com.martinsolaas.example.EntityProviderBean
java:app/web/EntityProviderBean!com.martinsolaas.example.EntityProviderBean
java:module/EntityProviderBean!com.martinsolaas.example.EntityProviderBean
java:global/ProvazzaVAADIN/web/EntityProviderBean
java:app/web/EntityProviderBean
java:module/EntityProviderBean

10:18:03,235 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]
(MSC service thread 1-5) JNDI bindings for session bean named ExampleSession in deployment unit subdeployment “web.war” of deployment “ProvazzaVAADIN.ear” are as follows:

java:global/ProvazzaVAADIN/web/ExampleSession!com.martinsolaas.example.ExampleSession
java:app/web/ExampleSession!com.martinsolaas.example.ExampleSession
java:module/ExampleSession!com.martinsolaas.example.ExampleSession
java:global/ProvazzaVAADIN/web/ExampleSession
java:app/web/ExampleSession
java:module/ExampleSession

10:18:03,247 INFO [org.jboss.weld.deployer]
(MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: ProvazzaVAADIN.ear
10:18:03,317 INFO [org.jboss.weld.Version]
(MSC service thread 1-8) WELD-000900: 2.1.2 (Final)
10:18:03,342 INFO [org.jboss.weld.deployer]
(MSC service thread 1-6) JBAS016008: Starting weld service for deployment ProvazzaVAADIN.ear
10:18:03,404 ERROR [org.jboss.msc.service.fail]
(MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment “web.war” of deployment “ProvazzaVAADIN.ear”
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]

at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component EntityProviderBean
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:95)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

... 5 more

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014227: EJB EntityProviderBean of type com.martinsolaas.example.EntityProviderBean must have public default constructor
at org.jboss.as.ejb3.component.EJBValidationConfigurator.configure(EJBValidationConfigurator.java:66)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
… 6 more

10:18:03,637 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) JBAS014613: Operation (“deploy”) failed - address: ([(“deployment” => “ProvazzaVAADIN.ear”)]
) - failure description: {
“JBAS014671: Failed services” => {“jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".INSTALL” => “org.jboss.msc.service.StartException in service jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "web.war" of deployment "ProvazzaVAADIN.ear"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component EntityProviderBean
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014227: EJB EntityProviderBean of type com.martinsolaas.example.EntityProviderBean must have public default constructor”},
“JBAS014771: Services with missing/unavailable dependencies” => [
"jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".weld.weldClassIntrospector is missing [jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".beanmanager]
",
"jboss.deployment.unit."ProvazzaVAADIN.ear".deploymentCompleteService is missing [jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".deploymentCompleteService]
",
"jboss.deployment.unit."ProvazzaVAADIN.ear".WeldStartService is missing [jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".jndiDependencyService]
"
]
}
10:18:03,682 INFO [org.jboss.as.server]
(ServerService Thread Pool – 28) JBAS018559: Deployed “ProvazzaVAADIN.ear” (runtime-name : “ProvazzaVAADIN.ear”)
10:18:03,682 INFO [org.jboss.as.server]
(ServerService Thread Pool – 28) JBAS018559: Deployed “mysql-connector-java-5.1.30-bin.jar” (runtime-name : “mysql-connector-java-5.1.30-bin.jar”)
10:18:03,684 INFO [org.jboss.as.controller]
(Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.beanmanager (missing) dependents: [service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.weld.weldClassIntrospector]

  service jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."ProvazzaVAADIN.ear".deploymentCompleteService]

  service jboss.deployment.subunit."ProvazzaVAADIN.ear"."web.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."ProvazzaVAADIN.ear".WeldStartService]

JBAS014777: Services which failed to start: service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment “web.war” of deployment “ProvazzaVAADIN.ear”

10:18:03,739 INFO [org.jboss.as]
(Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
10:18:03,740 INFO [org.jboss.as]
(Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
10:18:03,740 ERROR [org.jboss.as]
(Controller Boot Thread) JBAS015875: WildFly 8.1.0.Final “Kenny” started (with errors) in 30317ms - Started 289 of 355 services (6 services failed or missing dependencies, 99 services are lazy, passive or on-demand)
10:18:03,969 INFO [org.jboss.weld.deployer]
(MSC service thread 1-6) JBAS016009: Stopping weld service for deployment ProvazzaVAADIN.ear
10:18:04,079 INFO [org.jboss.as.jpa]
(ServerService Thread Pool – 20) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service ‘ProvazzaVAADIN.ear/web.war#DBManagerDB’
10:18:04,226 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015974: Stopped subdeployment (runtime-name: web.war) in 260ms
10:18:04,242 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-2) JBAS015877: Stopped deployment ProvazzaVAADIN.ear (runtime-name: ProvazzaVAADIN.ear) in 278ms
10:18:04,378 INFO [org.jboss.as.server]
(DeploymentScanner-threads - 2) JBAS018558: Undeployed “ProvazzaVAADIN.ear” (runtime-name: “ProvazzaVAADIN.ear”)
10:18:04,379 INFO [org.jboss.as.controller]
(DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.unit.“ProvazzaVAADIN.ear”.WeldBootstrapService (missing) dependents: [service jboss.deployment.unit.“ProvazzaVAADIN.ear”.CdiValidatorFactoryService, service jboss.deployment.unit.“ProvazzaVAADIN.ear”.WeldStartService]

  service jboss.deployment.unit."ProvazzaVAADIN.ear".WeldStartService (missing) dependents: [service jboss.deployment.unit."ProvazzaVAADIN.ear".CdiValidatorFactoryService]

  service jboss.deployment.unit."ProvazzaVAADIN.ear".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."ProvazzaVAADIN.ear".WeldStartService]

JBAS014777: Services which failed to start: service jboss.deployment.subunit.“ProvazzaVAADIN.ear”.“web.war”.INSTALL

10:18:08,717 WARN [org.jboss.as.server.deployment.scanner]
(DeploymentScanner-threads - 2) JBAS015002: Deployment of ‘example-main’ requested, but the deployment is not present
10:18:08,717 INFO [org.jboss.as.server.deployment.scanner]
(DeploymentScanner-threads - 2) JBAS015003: Found ProvazzaVAADIN.ear in deployment directory. To trigger deployment create a file called ProvazzaVAADIN.ear.dodeploy
[/code]This is the EJB class (as you can see Jon I have inserted it in your VERY APPECIATED “Hello World” little package, in order t test step-by-step…

package com.martinsolaas.example;

import javax.annotation.PostConstruct;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.vaadin.addon.jpacontainer.provider.MutableLocalEntityProvider;


@Stateless
@TransactionManagement(value = TransactionManagementType.CONTAINER)
public class EntityProviderBean<T> extends MutableLocalEntityProvider<T> {


    @PersistenceContext(unitName="DBManagerDB")
        protected EntityManager em;

        @TransactionAttribute(TransactionAttributeType.SUPPORTS)
        public String getHello()  {
            return "Hello from Session Bean";
        }
        
       
         public EntityProviderBean(Class<T> entityClass) {
                super(entityClass);
            }

        @PostConstruct
        public void init() {
            setTransactionsHandledByProvider(false);
            setEntityManager(em);
        }
        
        @Override
        @TransactionAttribute(TransactionAttributeType.REQUIRED)
        protected void runInTransaction(Runnable operation) {
            super.runInTransaction(operation);
        }
}

[i]

I have not understood the difference between what I had tried to di in past and your example,
[/i]

Didn’t find any real difference myself, your code looked ok as far as I could see… and unfortunately I haven’t really used jpacontainer before, so I really don’t have any smart cdi-tricks up my sleeve there. However, maybe now is a good time to start using it in my project, so we’ll see … keep posting if you get any further :slight_smile:

Thanks again so much Jon!
And… If you pass by here, Genoa, in Italy, remember I owe you a coffe!!! :wink:

[i]

this bug should be already fixed in 8.0.final
[/i]

According to the Jira it’s not fixed until 8.1.0-CR2.

Yes I know. I have read it, but I’m using WildFly 8.1.0.Final… :frowning:

I mean I wrote 8.0, but it is 8.1.0… my typewriting mistake…

Haven’t looked through this yet, but looks interesting: https://vaadin.com/blog/-/blogs/learn-by-hacking CDI, JPA, Wildfly … probably a much better startingpoint for any project than my example app. Remains to see if it runs on CDI alpha3 though :o)

I had a minor problem running this (https://vaadin.com/blog/-/blogs/learn-by-hacking) with cdi alpha3, but it works with minor adjustments, see https://vaadin.com/forum#!/thread/8054364

Hi Jon… I have followed Your suggestion, the night hack examples really look like what i need… But I obviously have another blocking issue…
https://vaadin.com/forum#!/thread/8176241
If you have some idea… :wink: