2 Replies Latest reply on Oct 8, 2012 3:15 AM by fpezzati

    Start developing with Errai, problems come soon

    fpezzati

      Hello,

       

      I'm new with Errai. I'm using JBoss 7.1.0.Final, Maven 3.0, Eclipse Indigo. I build a simple project using the maven command

       

      mvn archetype:generate -DarchetypeGroupId=org.jboss.errai.archetypes -DarchetypeArtifactId=cdi-quickstart -DarchetypeVersion=2.1.0.CR1 -DarchetypeRepository=https://repository.jboss.org/nexus/content/groups/public/

       

      so I obtained a maven project. I imported it in Eclipse and code some basic stuff (I was trying to reproduce one of the first examples in the Errai reference guide). Then I try to "run as a web application" by Eclipse and i got this error (I cut the first part because of its size):

       

      ...

      ----------

      100 problems (4 errors, 96 warnings)java.lang.RuntimeException: failed to load server marshallers

          at org.jboss.errai.marshalling.rebind.MarshallersGenerator._generate(MarshallersGenerator.java:280)

          at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generateMarshallerBootstrapper(MarshallersGenerator.java:243)

          at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:228)

          at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

          at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

          at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)

          at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)

          at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)

          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.marshalling.client.api.MarshallerFramework.<clinit>(MarshallerFramework.java:42)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Unknown Source)

          at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)

          at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:363)

          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(Unknown Source)

      Caused by: java.io.FileNotFoundException: C:\Users\hp\AppData\Local\Temp\errai\e1392280baa13a8f2f2ec9dba16e12a5ac27c8c86496d3641f4c65aaf5169d\errai.marshalling\gen\org\jboss\errai\marshalling\server\impl\ServerMarshallingFactoryImpl.class (Impossibile trovare il file specificato)

          at java.io.FileInputStream.open(Native Method)

          at java.io.FileInputStream.<init>(Unknown Source)

          at java.io.FileInputStream.<init>(Unknown Source)

          at org.jboss.errai.codegen.util.ClassChangeUtil.loadClassDefinition(ClassChangeUtil.java:222)

          at org.jboss.errai.marshalling.rebind.MarshallersGenerator._generate(MarshallersGenerator.java:277)

          ... 22 more

       

      I attached my pom.xml and the maven project's src directory, so you can try to reproduce the problem. I think Errai is a very cool framework, I want to learn more about it. This error is blocking me 'cause I lack profiencies in JBoss, Maven and Errai of course. I really appreciate an help. TIA.

       

      Francesco