Hi,
I am fairly new to CDI and Errai. At the moment I have a problem with injecting into the
Entry Point class for my application:
I created a producer Method for a third-library class which I want to inject into my Entry
Point class. It is only working when the Producer Method is @ApplicationScoped. I try to
figure out what the reasons could be for this?
btw, if the Producer Method is not applicationscoped, this exception occurs:
onModuleLoad() threw an exceptionException while loading module
org.jboss.errai.ioc.client.Container. See Development Mode for
details.java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
java.lang.reflect.Method.invoke(Method.java:597) at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at
java.lang.Thread.run(Thread.java:680)Caused by: java.lang.RuntimeException: Deferred
binding failed for 'org.jboss.errai.ioc.client.api.Bootstrapper' (did you forget
to inherit a required module?) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at
com.google.gwt.core.client.GWT.create(GWT.java:97) at
org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31) ... 9 moreCaused by:
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 11 more