2 Replies Latest reply on Jun 29, 2012 4:29 AM by nva

    Errai usage without cdi support

    kettlerm Newbie

      Hi all,

       

      is there a way, to use errai on websphere without cdi?

       

      I tried to use the bus quick start application, which runs propper on websphere, but whenever I add some persistence support, I got several exceptions.

      Can anyone give me some hint? Find below some additional information (stack trace and POM)

       

      Thanks in advance.

       

      These are the exceptions while starting up the server:

       

      08:47:18,233 INFO  [org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap] (MSC service thread 1-6) starting errai bus ...

      08:47:18,249 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (MSC service thread 1-6) using dispatcher implementation: org.jboss.errai.bus.server.SimpleDispatcher

      08:47:18,249 INFO  [org.jboss.errai.bus.server.service.bootstrap.DefaultComponents] (MSC service thread 1-6) using session provider implementation: org.jboss.errai.bus.server.HttpSessionProvider

      08:47:18,265 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (MSC service thread 1-6) searching for errai extensions ...

      08:47:18,280 INFO  [org.jboss.errai.bus.server.service.bootstrap.LoadExtensions] (MSC service thread 1-6) found extension org.jboss.errai.tools.monitoring.MonitorExtension

      08:47:18,358 ERROR [stderr] (MSC service thread 1-6) com.google.inject.CreationException: Guice creation errors:

      08:47:18,358 ERROR [stderr] (MSC service thread 1-6)

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6) 1) No implementation for javax.transaction.UserTransaction was bound.

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)   while locating javax.transaction.UserTransaction

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)     for field at net.hellmann.trackingbackend.facade.ShipmentFacade.userTransaction(ShipmentFacade.java:56)

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)   while locating net.hellmann.trackingbackend.facade.ShipmentFacade

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)     for field at com.hellmann.de.server.HelloWorldService.facade(HelloWorldService.java:18)

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)   at org.jboss.errai.bus.server.service.ServiceProcessor$1.configure(ServiceProcessor.java:118)

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6)

      08:47:18,389 ERROR [stderr] (MSC service thread 1-6) 1 error

      08:47:18,405 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)

      08:47:18,405 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)

      08:47:18,405 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)

      08:47:18,405 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.Guice.createInjector(Guice.java:95)

      08:47:18,405 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.Guice.createInjector(Guice.java:72)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.Guice.createInjector(Guice.java:62)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:115)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:61)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.bootstrap.DiscoverServices.execute(DiscoverServices.java:52)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap.execute(OrderedBootstrap.java:55)

      08:47:18,421 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl.boostrap(ErraiServiceImpl.java:70)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:65)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl$$FastClassByGuice$$7879947c.newInstance(<generated>)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)

      08:47:18,436 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.Scopes$1$1.get(Scopes.java:65)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)

      08:47:18,452 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)

      08:47:18,467 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)

      08:47:18,467 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)

      08:47:18,467 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)

      08:47:18,467 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)

      08:47:18,467 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceFactory.create(ErraiServiceFactory.java:14)

      08:47:18,483 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceSingleton.initSingleton(ErraiServiceSingleton.java:15)

      08:47:18,483 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.initService(ServletBootstrapUtil.java:104)

      08:47:18,483 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.getService(ServletBootstrapUtil.java:54)

      08:47:18,483 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:71)

      08:47:18,483 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      08:47:18,499 ERROR [stderr] (MSC service thread 1-6)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      08:47:18,514 ERROR [stderr] (MSC service thread 1-6)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      08:47:18,514 ERROR [stderr] (MSC service thread 1-6)    at java.lang.Thread.run(Thread.java:662)

      08:47:18,514 ERROR [stderr] (MSC service thread 1-6) com.google.inject.ConfigurationException: Guice configuration errors:

      08:47:18,530 ERROR [stderr] (MSC service thread 1-6)

      08:47:18,530 ERROR [stderr] (MSC service thread 1-6) 1) No implementation for javax.transaction.UserTransaction was bound.

      08:47:18,530 ERROR [stderr] (MSC service thread 1-6)   while locating javax.transaction.UserTransaction

      08:47:18,530 ERROR [stderr] (MSC service thread 1-6)     for field at net.hellmann.trackingbackend.facade.ShipmentFacade.userTransaction(ShipmentFacade.java:56)

      08:47:18,530 ERROR [stderr] (MSC service thread 1-6)   while locating net.hellmann.trackingbackend.facade.ShipmentFacade

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)     for field at com.hellmann.de.server.HelloWorldService.facade(HelloWorldService.java:18)

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)   while locating com.hellmann.de.server.HelloWorldService

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6) 1 error

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)

      08:47:18,561 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)

      08:47:18,577 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:146)

      08:47:18,577 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:61)

      08:47:18,577 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.bootstrap.DiscoverServices.execute(DiscoverServices.java:52)

      08:47:18,577 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap.execute(OrderedBootstrap.java:55)

      08:47:18,592 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl.boostrap(ErraiServiceImpl.java:70)

      08:47:18,592 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:65)

      08:47:18,592 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceImpl$$FastClassByGuice$$7879947c.newInstance(<generated>)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

      08:47:18,608 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.Scopes$1$1.get(Scopes.java:65)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)

      08:47:18,623 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)

      08:47:18,655 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)

      08:47:18,655 ERROR [stderr] (MSC service thread 1-6)    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)

      08:47:18,655 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceFactory.create(ErraiServiceFactory.java:14)

      08:47:18,655 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.service.ErraiServiceSingleton.initSingleton(ErraiServiceSingleton.java:15)

      08:47:18,655 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.initService(ServletBootstrapUtil.java:104)

      08:47:18,670 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.getService(ServletBootstrapUtil.java:54)

      08:47:18,670 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:71)

      08:47:18,670 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

      08:47:18,670 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

      08:47:18,670 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

      08:47:18,686 ERROR [stderr] (MSC service thread 1-6)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

      08:47:18,686 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

      08:47:18,686 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      08:47:18,686 ERROR [stderr] (MSC service thread 1-6)    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      08:47:18,686 ERROR [stderr] (MSC service thread 1-6)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      08:47:18,701 ERROR [stderr] (MSC service thread 1-6)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      08:47:18,701 ERROR [stderr] (MSC service thread 1-6)    at java.lang.Thread.run(Thread.java:662)

      08:47:18,701 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/busQStart]] (MSC service thread 1-6) StandardWrapper.Throwable: com.google.inject.ProvisionException: Guice provision errors:

       

      1) Error injecting constructor, java.lang.RuntimeException: server bootstrap failed

        at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:62)

        at org.jboss.errai.bus.server.service.ErraiServiceImpl.class(ErraiServiceImpl.java:51)

        while locating org.jboss.errai.bus.server.service.ErraiServiceImpl

        while locating org.jboss.errai.bus.server.service.ErraiService

       

      1 error

              at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013) [guice-3.0.jar:]

              at org.jboss.errai.bus.server.service.ErraiServiceFactory.create(ErraiServiceFactory.java:14) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceSingleton.initSingleton(ErraiServiceSingleton.java:15) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.initService(ServletBootstrapUtil.java:104) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.servlet.ServletBootstrapUtil.getService(ServletBootstrapUtil.java:54) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:71) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.10.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: java.lang.RuntimeException: server bootstrap failed

              at org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap.execute(OrderedBootstrap.java:63) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.boostrap(ErraiServiceImpl.java:70) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:65) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl$$FastClassByGuice$$7879947c.newInstance(<generated>) [guice-3.0.jar:2.0.0.Final]

              at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) [guice-3.0.jar:]

              at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) [guice-3.0.jar:]

              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) [guice-3.0.jar:]

              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) [guice-3.0.jar:]

              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) [guice-3.0.jar:]

              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [guice-3.0.jar:]

              at com.google.inject.Scopes$1$1.get(Scopes.java:65) [guice-3.0.jar:]

              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) [guice-3.0.jar:]

              at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974) [guice-3.0.jar:]

              ... 16 more

      Caused by: com.google.inject.ConfigurationException: Guice configuration errors:

       

      1) No implementation for javax.transaction.UserTransaction was bound.

        while locating javax.transaction.UserTransaction

          for field at net.hellmann.trackingbackend.facade.ShipmentFacade.userTransaction(ShipmentFacade.java:56)

        while locating net.hellmann.trackingbackend.facade.ShipmentFacade

          for field at com.hellmann.de.server.HelloWorldService.facade(HelloWorldService.java:18)

        while locating com.hellmann.de.server.HelloWorldService

       

      1 error

              at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961) [guice-3.0.jar:]

              at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013) [guice-3.0.jar:]

              at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:146) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.ServiceProcessor.process(ServiceProcessor.java:61) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.bootstrap.DiscoverServices.execute(DiscoverServices.java:52) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              at org.jboss.errai.bus.server.service.bootstrap.OrderedBootstrap.execute(OrderedBootstrap.java:55) [errai-bus-2.0.0.Final.jar:2.0.0.Final]

              ... 32 more

        • 1. Re: Errai usage without cdi support
          Jonathan Fuerth Master

          As I guess you have inferred from the stack trace, Errai IoC behaviour on the server side is implemented using Guice. It appears that Errai configured Guice to create an instance of HelloWorldService, which has a field of type ShipmentFacade, which in turn has an injectable UserTransaction field.

           

          I don't know of a good solution for this off the top of my head, but I'm currently working on Errai's JPA implementation and I'm about to start focusing on data sync. This means I'll probably run into a similar problem within the next week or so. I will be happy to report back my findings and any possible workarounds you can try.

           

          -Jonathan

          • 2. Re: Errai usage without cdi support
            nva Newbie

            I'm using Errai without CDI on jetty and am using Hibernate JPA. Have not been able to set up declarative transaction support for this use case and implemented my own management of the session, entity manager and the transaction itself. It isn't too much code and is working fine, just that it requires iron discipline and a high level of awarenes of the transaction boundaries from the developers when writing services in the business layer.

             

            Hope this helps.

             

            Cheers,

             

            V.