-
1. Re: Not able to start development using Errai
cbrock Feb 22, 2013 12:17 PM (in response to s.kakrayne)You need to add the following dependency to the pom.xml file:
<dependency> <groupId>org.jboss.errai</groupId> <artifactId>errai-ui</artifactId> <version>${errai.version}</version> </dependency>
And add the following inclusions rules to your App.gwt.xml file:
<inherits name="org.jboss.errai.ui.UI"/> <inherits name="org.jboss.errai.databinding.DataBinding" />
The archetype does not come with Errai UI enabled by default. We will change this in 2.2.1 and in 3.0.
-
2. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 2:09 AM (in response to cbrock)Thanks Mike for resolution , it worked for errai UI but when I tried to add errai-dataBinding jar I am facing error .
I tried same approach , added in POM.xml file
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-dataBinding</artifactId>
<version>${errai.version}</version>
</dependency>and added following line in App.gwt.xml file
<inherits name="org.jboss.errai.databinding.DataBinding" />
-
3. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 3:03 AM (in response to s.kakrayne)Now I have removed errai-databinding dependency from POM.xml and App.gwt.xml , but still I am getting error which says,
Unable to find 'org/jboss/errai/databinding/DataBinding.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
-
errai-erro.png 165.5 KB
-
-
4. Re: Not able to start development using Errai
csa Feb 25, 2013 5:14 AM (in response to s.kakrayne)Hi,
There's a typo in your artifactId. It should be:
<artifactId>errai-data-binding</artifactId>
not
<artifactId>errai-dataBinding</artifactId>
Cheers,
Christian
-
5. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 5:45 AM (in response to csa)Hi Christian ,
<artifactId>errai-dataBinding</artifactId> , worked but now another error is coming as
Loading inherited module 'org.jboss.errai.ui.UI'
Loading inherited module 'org.jboss.errai.databinding.DataBinding'
Loading inherited module 'com.google.common.collect.Collect'
[ERROR] Unable to find 'com/google/common/collect/Collect.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Can you please tell me how this libraries call internally each other and how to fix this?
-
6. Re: Not able to start development using Errai
csa Feb 25, 2013 6:47 AM (in response to s.kakrayne)1 of 1 people found this helpfulHi,
You could take a look at one of our demos (see pom.xml):
https://github.com/errai/errai/tree/master/errai-jpa/demos/errai-jpa-demo-todo-list
This demo uses the errai-javaee-all.jar which should make things easier.
If you prefer adding the dependencies manually, here is the complete dependency tree. If you're using maven you only need to add the top level dependencies, of course.
+- org.jboss.errai:errai-bus:jar:2.2.1-SNAPSHOT:compile
| +- org.jboss.errai:errai-common:jar:2.2.1-SNAPSHOT:compile
| | \- org.jboss.errai.reflections:reflections:jar:2.2.1-SNAPSHOT:compile
| +- org.jboss.errai:errai-config:jar:2.2.1-SNAPSHOT:compile
| +- javax.validation:validation-api:jar:1.0.0.GA:compile
| +- javax.validation:validation-api:jar:sources:1.0.0.GA:compile
| +- com.google.inject:guice:jar:3.0:compile
| | \- aopalliance:aopalliance:jar:1.0:compile
| +- javax.inject:javax.inject:jar:1:compile
| +- org.mvel:mvel2:jar:2.1.Beta8:compile
| +- junit:junit:jar:4.8.1:compile
| +- org.javassist:javassist:jar:3.15.0-GA:compile
| +- org.jboss.errai.io.netty:netty:jar:4.0.0.Alpha1.errai.r1:compile
| \- com.google.guava:guava:jar:12.0:compile
| \- com.google.code.findbugs:jsr305:jar:1.3.9:compile
+- org.jboss.errai:errai-ioc:jar:2.2.1-SNAPSHOT:compile
| +- org.jboss.errai:errai-codegen:jar:2.2.1-SNAPSHOT:compile
| +- javax.annotation:jsr250-api:jar:1.0:compile
| \- javax.enterprise:cdi-api:jar:1.0-SP4:compile
| \- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1:compile
+- org.jboss.errai:errai-tools:jar:2.2.1-SNAPSHOT:compile
| \- hsqldb:hsqldb:jar:1.8.0.7:compile
+- org.jboss.errai:errai-cdi-client:jar:2.2.1-SNAPSHOT:compile
+- org.jboss.errai:errai-jpa-client:jar:2.2.1-SNAPSHOT:compile
| +- org.hibernate:hibernate-entitymanager:jar:4.1.1.Final:compile
| | +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
| | +- org.hibernate:hibernate-core:jar:4.1.1.Final:compile
| | | \- antlr:antlr:jar:2.7.7:compile
| | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
| | +- dom4j:dom4j:jar:1.6.1:compile
| | | \- xml-apis:xml-apis:jar:1.0.b2:compile
| | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
| +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
| +- com.google.gwt:gwt-user:jar:2.4.0:compile
| \- com.google.guava:guava-gwt:jar:12.0:compile
+- org.jboss.errai:errai-jaxrs-client:jar:2.2.1-SNAPSHOT:compile
| \- org.jboss.resteasy:jaxrs-api:jar:2.3.5.Final:compile
+- org.jboss.errai:errai-jaxrs-provider:jar:2.2.1-SNAPSHOT:compile
+- org.jboss.errai:errai-javax-enterprise:jar:2.2.1-SNAPSHOT:compile
+- org.jboss.errai:errai-weld-integration:jar:2.2.1-SNAPSHOT:compile
| +- org.jboss.errai:errai-cdi-jetty:jar:2.2.1-SNAPSHOT:compile
| \- org.jboss.weld.servlet:weld-servlet-core:jar:1.1.6.Final:compile
| \- org.jboss.weld:weld-spi:jar:1.1.Final:compile
| \- org.jboss.weld:weld-api:jar:1.1.Final:compile
+- org.jboss.errai:errai-ui:jar:2.2.1-SNAPSHOT:compile
+- org.jboss.errai:errai-navigation:jar:2.2.1-SNAPSHOT:compile
+- org.jboss.errai:errai-data-binding:jar:2.2.1-SNAPSHOT:compile
\- org.jboss.errai:errai-marshalling:jar:2.2.1-SNAPSHOT:compile
\- org.jboss.errai:errai-codegen-gwt:jar:2.2.1-SNAPSHOT:compile
\- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
+- org.slf4j:slf4j-api:jar:1.7.2:compile
\- log4j:log4j:jar:1.2.17:compile
Christian
-
7. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 7:19 AM (in response to csa)I have all these dependencies , but still I am getting error.
Even I have com.google.common.collection package but DataBindig is not able to ingherit because collect.gwt.xml is missing.
How to deal wiht this?
-
8. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 7:55 AM (in response to s.kakrayne)Hey I included "errai-javaee-all.jar" jar , and it got complied , thanks a lot Christian
-
9. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 8:15 AM (in response to csa)Hey , it got complied but while running in GWT Development mode following error came
java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader' (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.enterprise.client.jaxrs.JaxrsModuleBootstrapper.run(JaxrsModuleBootstrapper.java:41)
at org.jboss.errai.ioc.client.BootstrapperImpl.<init>(BootstrapperImpl.java:99)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:55)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:34)
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:662)
Caused 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)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at org.jboss.errai.enterprise.client.jaxrs.JaxrsModuleBootstrapper.run(JaxrsModuleBootstrapper.java:41)
at org.jboss.errai.ioc.client.BootstrapperImpl.<init>(BootstrapperImpl.java:99)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at org.jboss.errai.ioc.client.Container.bootstrapContainer(Container.java:55)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:34)
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:662)
-
10. Re: Not able to start development using Errai
csa Feb 25, 2013 8:55 AM (in response to s.kakrayne)Hi,
You will need to inherit the errai-jaxrs module if the jar is included:
<
inherits
name
=
"org.jboss.errai.enterprise.Jaxrs"
/>
Are the more error details on the console?
Christian
-
11. Re: Not able to start development using Errai
s.kakrayne Feb 25, 2013 12:29 PM (in response to csa)Hi , I added that inherit in App.gwt.xml
But now and project got compiled to but I am getting some error related to errai bus over browser. Have attached screenshot
also in console I am getting this
22:54:19.955 [ERROR] [app] Unable to resolve class org/jboss/errai/databinding/client/DataBinderProvider
-
errai-erro1.png 156.7 KB
-
-
12. Re: Not able to start development using Errai
csa Feb 26, 2013 6:15 AM (in response to s.kakrayne)Can you look for and paste more error details from your console as well as the Jetty tab (in your devmode console) and your browser's JavaScript console? There's still something wrong with the classpath/setup it seems and the screenshot doesn't say much unfortunately.
Cheers,
Christian
-
13. Re: Not able to start development using Errai
s.kakrayne Mar 1, 2013 8:18 AM (in response to csa)Hey I have attached "errai-bus" error log.
-
errai-bus-erro.txt.zip 870 bytes
-