-
1. Re: SmartGWT with errai
cbrock Mar 18, 2012 12:03 PM (in response to juhoffma)I see absolutely no problem with this whatsoever. I know people are using ExtJS with Errai and that's not problem. Errai is UI toolkit agnostic and is all about programming model.
-
2. Re: SmartGWT with errai
juhoffma Mar 18, 2012 8:10 PM (in response to cbrock)Ok, I was asking, because SmartGWT does not support GWT-RPC. That is why I was asking, but I suppose Errai has its own way to handle RPC Calls.
Juergen
-
3. Re: SmartGWT with errai
juhoffma Mar 19, 2012 12:23 PM (in response to juhoffma)Trying to introduce smart gwt I did the following.
added smartgwt binaries to my pom.xml
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>3.0</version>
</dependency>
and my App.gwt.xml
<module rename-to="app">
<inherits name="org.jboss.errai.common.ErraiCommon"/>
<inherits name="org.jboss.errai.bus.ErraiBus"/>
<inherits name="org.jboss.errai.ioc.Container"/>
<inherits name="org.jboss.errai.enterprise.CDI"/>
<inherits name="com.smartgwt.SmartGwt"/>
<inherits name="com.smartgwt.tools.SmartGwtTools" />
</module>
Then I changed App.java
/*
* Copyright 2009 JBoss, a division of Red Hat Hat, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.redhat.gps.juhoffma.client.local;
import javax.annotation.PostConstruct;
import javax.enterprise.event.Event;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import org.jboss.errai.ioc.client.api.EntryPoint;
import com.redhat.gps.juhoffma.client.shared.HelloMessage;
import com.redhat.gps.juhoffma.client.shared.Response;
/**
* Main application entry point.
*/
@EntryPoint
public class App {
@Inject
private Event<HelloMessage> messageEvent;
private final Label responseLabel = new Label();
private final Button button = new Button("Send");
private final TextBox message = new TextBox();
@PostConstruct
public void buildUI() {
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
System.out.println("Handling click event!");
fireMessage();
}
});
HorizontalPanel horizontalPanel = new HorizontalPanel();
horizontalPanel.add(message);
horizontalPanel.add(button);
horizontalPanel.add(responseLabel);
RootPanel.get().add(horizontalPanel);
System.out.println("UI Constructed!");
}
/**
* Fires a CDI HelloMessage with the current contents of the message textbox.
*/
void fireMessage() {
String text = message.getText();
HelloMessage event = new HelloMessage(text);
messageEvent.fire(event);
}
public void response(@Observes Response event) {
System.out.println("Got a Response!");
responseLabel.setContents("HelloMessage from Server: " + event.getMessage().toUpperCase());
}
/**
* Returns the "Send" button. Exposed for testing.
*/
Button getSendButton() {
return button;
}
/**
* Returns the response label. Exposed for testing.
*/
Label getResponseLabel() {
return responseLabel;
}
/**
* Returns the "message" text box. Exposed for testing.
*/
TextBox getMessageBox() {
return message;
}
}
But I keep getting
Loading module: app
Top URL: http://127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997
User agent: Chrome
Remote host: localhost:59460
Tab key:
Session key: (-p*AGe`jV_{^\-m
DEBUG: Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory.
DEBUG: Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator.
INFO: Generating Marshallers Bootstrapper....
INFO: DEBUG: Connecting Errai at URL out.98243-5872.erraiBus?z=0.
DEBUG: Rebinding org.jboss.errai.ioc.client.api.Bootstrapper.
DEBUG: Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator.
INFO: Generating Extensions Bootstrapper....
DEBUG: Adding '1' new generated units.
DEBUG: Validating newly compiled units.
ERROR: Class 'com.redhat.gps.juhoffma.client.local.CDITestHelper' in JSNI reference '@com.redhat.gps.juhoffma.client.local.CDITestHelper::app' could not be found; expect subsequent failures. java.lang.ClassNotFoundException: com.redhat.gps.juhoffma.client.local.CDITestHelper
at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:182)
at com.google.gwt.dev.shell.CompilingClassLoader.getDispId(CompilingClassLoader.java:997)
at com.google.gwt.dev.shell.Jsni$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:103)
at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:111)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:880)
at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:45)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1019)
at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:255)
at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:243)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1285)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
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:193)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
ERROR: Errors in 'generated://69BD50C724B94DA66B4611E35230B3C7/org/jboss/errai/ioc/client/api/BootstrapperImpl.java'.
ERROR: Line 37: No source code is available for type com.redhat.gps.juhoffma.client.local.CDITestHelper; did you forget to inherit a required module?.
INFO: See snapshot: /var/folders/hm/2cvlc7l5247fjrfg3xryt3lc0000gp/T/org.jboss.errai.ioc.client.api.BootstrapperImpl3005791124995229662.java.
ERROR: Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details). 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:98)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
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:193)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
Caused by: com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
at com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:459)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:445)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:880)
at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:45)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1019)
at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:255)
at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:243)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1285)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
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:193)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
Caused by: com.google.gwt.dev.shell.HostedModeException: JSNI rewriter found reference to non-existent field in a field reference or java method tear-off: @com.redhat.gps.juhoffma.client.local.CDITestHelper::app at generated://69BD50C724B94DA66B4611E35230B3C7/org/jboss/errai/ioc/client/api/BootstrapperImpl.java(42)
at com.google.gwt.dev.shell.Jsni$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:113)
at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:111)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:880)
at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:45)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:1019)
at com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:59)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:443)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:419)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:255)
at com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:243)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:52)
at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:1285)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
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:193)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
ERROR: Failed to load module 'app' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11' at localhost:59460.
any help?
-
4. Re: SmartGWT with errai
juhoffma Mar 19, 2012 12:53 PM (in response to juhoffma)1 of 1 people found this helpfulchanging my App.gwt.xml to
<module rename-to="app">
<inherits name="com.smartgwt.SmartGwt"/>
<inherits name="com.smartgwt.tools.SmartGwtTools" />
<inherits name="org.jboss.errai.common.ErraiCommon"/>
<inherits name="org.jboss.errai.bus.ErraiBus"/>
<inherits name="org.jboss.errai.ioc.Container"/>
<inherits name="org.jboss.errai.enterprise.CDI"/>
</module>
fixed the problem
-
5. Re: SmartGWT with errai
juhoffma Mar 22, 2012 9:00 AM (in response to juhoffma)I am further moving along to do things the smartgwt way. When I tried to use one of the SmartGWT Layout Containers, I am getting:
Loading module: app
Top URL: http://127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997
User agent: FF
Remote host: localhost:61920
Tab key: 0x10d6dfae0
Session key: 4f_Q}Tz|OQ>%ckXZ
DEBUG: Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory.
DEBUG: Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator.
INFO: Generating Marshallers Bootstrapper....
INFO: DEBUG: Connecting Errai at URL out.65884-37029.erraiBus?z=0.
DEBUG: Rebinding org.jboss.errai.ioc.client.api.Bootstrapper.
DEBUG: Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator.
INFO: Generating Extensions Bootstrapper....
INFO: Checking ErraiApp.properties for configured types ....
ERROR: Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details). java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.google.gwt.dom.client.DOMImpl::getParentElement(Lcom/google/gwt/dom/client/Node;)': JS value of type int, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.dom.client.DOMImpl.getParentElement(DOMImpl.java)
at com.google.gwt.dom.client.Node$.getParentElement$(Node.java:190)
at com.google.gwt.user.client.ui.RootPanel.isElementChildOfWidget(RootPanel.java:280)
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:136)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:151)
at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:32)
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:193)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:680)
ERROR: Failed to load module 'app' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0.1) Gecko/20100101 Firefox/9.0.1' at localhost:61920.
This is my Code of App.java
/*
* Copyright 2009 JBoss, a division of Red Hat Hat, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.redhat.gps.juhoffma.client.local;
import javax.annotation.PostConstruct;
import javax.enterprise.event.Event;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.layout.HLayout;
import org.jboss.errai.ioc.client.api.EntryPoint;
import com.redhat.gps.juhoffma.client.shared.HelloMessage;
import com.redhat.gps.juhoffma.client.shared.Response;
/**
* Main application entry point.
*/
@EntryPoint
public class App {
@Inject
private Event<HelloMessage> messageEvent;
private final Label responseLabel = new Label();
private final Button button = new Button("Send");
private final TextBox message = new TextBox();
@PostConstruct
public void buildUI() {
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
System.out.println("Handling click event!");
fireMessage();
}
});
HLayout horizontalLayout = new HLayout(5);
horizontalLayout.setID("MyFirstSmartGWTLayout");
horizontalLayout.setHeight(50);
horizontalLayout.addMember(message);
horizontalLayout.addMember(button);
horizontalLayout.addMember(responseLabel);
horizontalLayout.draw();
System.out.println("UI Constructed!");
}
/**
* Fires a CDI HelloMessage with the current contents of the message textbox.
*/
void fireMessage() {
String text = message.getText();
HelloMessage event = new HelloMessage(text);
messageEvent.fire(event);
}
public void response(@Observes Response event) {
System.out.println("Got a Response!");
responseLabel.setContents("HelloMessage from Server: " + event.getMessage().toUpperCase());
}
/**
* Returns the "Send" button. Exposed for testing.
*/
Button getSendButton() {
return button;
}
/**
* Returns the response label. Exposed for testing.
*/
Label getResponseLabel() {
return responseLabel;
}
/**
* Returns the "message" text box. Exposed for testing.
*/
TextBox getMessageBox() {
return message;
}
}
-
6. Re: SmartGWT with errai
cbrock Mar 23, 2012 5:42 PM (in response to juhoffma)We might have to dig into this. I can't guess what SmartGWT's code generators are doing here. But that exception seems quite strange.
-
7. Re: SmartGWT with errai
cbrock Mar 23, 2012 5:43 PM (in response to juhoffma)Does this happen every time?
-
8. Re: SmartGWT with errai
juhoffma Mar 24, 2012 12:57 PM (in response to cbrock)Yes, just take the code and enable smartgwt for reproduction
-
9. Re: SmartGWT with errai
cbrock Mar 24, 2012 2:18 PM (in response to juhoffma)My working theory based on the stack trace, is that there is a mismatch of GWT versions. What version of Errai is this?
-
10. Re: SmartGWT with errai
juhoffma Mar 24, 2012 3:51 PM (in response to cbrock)this is my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Errai::Archetypes::CDI</name>
<groupId>com.redhat.gps.juhoffma</groupId>
<artifactId>manage</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<errai.version>2.0.Beta1</errai.version>
<errai.cdi.version>2.0.Beta1</errai.cdi.version>
<gwt.version>2.3.0</gwt.version>
<hsqldb.version>1.8.0.7</hsqldb.version>
<weld.version>1.1.5.Final</weld.version>
<gwt.maven.version>2.3.0</gwt.maven.version>
<mvel.version>2.1.Beta6</mvel.version>
<jetty.version>6.1.25</jetty.version>
<slf4j.version>1.6.1</slf4j.version>
<uel.impl.version>2.1.2-b04</uel.impl.version>
<webDescriptor>jetty</webDescriptor>
</properties>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-api</artifactId>
<scope>provided</scope>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
<version>1.0-SP4</version>
</dependency>
<!-- Errai Core -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<version>${errai.version}</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<version>${errai.version}</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<!-- CDI Integration Modules -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.cdi.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.cdi.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-weld-integration</artifactId>
<version>${errai.cdi.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.cdi.version}</version>
</dependency>
<!-- CDI Development Utils -->
<!-- This must be placed above com.google.gwt:gwt-dev to override the
Jetty that is present there -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<version>${jetty.version}</version>
</dependency>
<!-- Weld Modules -->
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<scope>runtime</scope>
<version>${uel.impl.version}</version>
</dependency>
<!-- GWT and GWT Extensions -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<!-- <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version> <scope>provided</scope> </dependency> -->
<!-- Runtime / Container dependencies -->
<!--
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
-->
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>3.0.0.Beta4</version>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>3.0</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>jetty</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>jetty.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<delete file="war/WEB-INF/jetty-deployment-structure.xml"/>
<copy file="src/jetty/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<copy file="src/jetty/jetty-env.xml" toDir="war/WEB-INF"
overwrite="true"/>
<copy file="src/jetty/jndi.properties" toDir="war/WEB-INF/classes/"
overwrite="true"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- It's required that Jetty's plus option is enabled (OPTIONS=plus,..) -->
<id>jetty7+</id>
<dependencies>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>jetty.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<copy file="src/jetty7+/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<!-- We don't need jetty-env as we are using the BeanManagerResourceBindingListener to
bind the BeanManager in JNDI. -->
<delete file="war/WEB-INF/classes/jetty-env.properties"/>
<delete file="war/WEB-INF/classes/jndi.properties"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jboss6</id>
<properties>
<webDescriptor>jboss</webDescriptor>
</properties>
<dependencies>
<!-- all errai package are installed with the service archive -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.15.0-GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<exclusions>
<exclusion>
<artifactId>jsr250-api</artifactId>
<groupId>javax.annotation</groupId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<scope>compile</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<scope>provided</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.version}</version>
<!--<scope>provided</scope> -->
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-weld-integration</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- exclude development tools -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<!-- Weld is installed within JBoss 6 -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>${uel.impl.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
<scope>provided</scope>
<version>1.1.Final</version>
</dependency>
<!-- jetty is used for testing only -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<scope>provided</scope>
<version>3.0.0.Beta4</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>jboss.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<copy file="src/jboss/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<copy file="src/jboss/jboss-web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<copy file="src/jboss/jboss-beans.xml" toDir="war/META-INF"
overwrite="true"/>
<delete file="war/WEB-INF/jetty-env.xml"/>
<delete file="war/WEB-INF/jetty-deployment-structure.xml"/>
<delete file="war/WEB-INF/classes/jndi.properties"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- BEGIN JBOSS AS 7 PROFILE -->
<profile>
<id>jboss7</id>
<properties>
<webDescriptor>jboss</webDescriptor>
</properties>
<dependencies>
<!-- All errai package are installed with the service archive -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.15.0-GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<exclusions>
<exclusion>
<artifactId>jsr250-api</artifactId>
<groupId>javax.annotation</groupId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<scope>compile</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<scope>provided</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.version}</version>
<!--<scope>provided</scope> -->
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-weld-integration</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Exclude development tools -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<!-- Weld is installed within JBoss -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>${uel.impl.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
<scope>provided</scope>
<version>1.1.Final</version>
</dependency>
<!-- AS7 Service Activator -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>jboss7-support</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Jetty is used for testing only -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>war</warSourceDirectory>
<webappDirectory>war</webappDirectory>
<webXml>src/jetty/web.xml</webXml>
<packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>
<archive>
<manifestEntries>
<Dependencies>org.jboss.as.naming,org.jboss.as.server,org.jboss.msc</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>jboss.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<copy file="src/jboss/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<copy file="src/jboss/jboss-deployment-structure.xml" toDir="war/WEB-INF"
overwrite="true"/>
<delete file="war/WEB-INF/jetty-env.xml"/>
<delete file="war/WEB-INF/classes/jndi.properties"/>
<delete file="src/main/resources/jndi.properties"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Begin OpenShift Express Profiles -->
<profile>
<id>openshift</id>
<properties>
<webDescriptor>jboss</webDescriptor>
</properties>
<dependencies>
<!-- All errai package are installed with the service archive -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.15.0-GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<exclusions>
<exclusion>
<artifactId>jsr250-api</artifactId>
<groupId>javax.annotation</groupId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<scope>compile</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<scope>provided</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.version}</version>
<!--<scope>provided</scope> -->
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-weld-integration</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Exclude development tools -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<!-- Weld is installed within JBoss -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>${uel.impl.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
<scope>provided</scope>
<version>1.1.Final</version>
</dependency>
<!-- AS7 Service Activator -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>jboss7-support</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Jetty is used for testing only -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>war</warSourceDirectory>
<webappDirectory>war</webappDirectory>
<webXml>src/jetty/web.xml</webXml>
<packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>
<outputDirectory>deployments</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>jboss.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<copy file="src/jboss/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<delete file="war/WEB-INF/jetty-env.xml"/>
<delete file="war/WEB-INF/classes/jndi.properties"/>
<copy todir="war/app/">
<fileset dir="war.cache/app/"/>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.maven.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>openshift-prepare</id>
<properties>
<webDescriptor>jboss</webDescriptor>
</properties>
<dependencies>
<!-- All errai package are installed with the service archive -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.15.0-GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<exclusions>
<exclusion>
<artifactId>jsr250-api</artifactId>
<groupId>javax.annotation</groupId>
</exclusion>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
</exclusions>
<scope>compile</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<scope>provided</scope>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.version}</version>
<!--<scope>provided</scope> -->
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-weld-integration</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Exclude development tools -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
<!-- Weld is installed within JBoss -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>${uel.impl.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<scope>provided</scope>
<version>${weld.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-spi</artifactId>
<scope>provided</scope>
<version>1.1.Final</version>
</dependency>
<!-- AS7 Service Activator -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>jboss7-support</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- Jetty is used for testing only -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<scope>provided</scope>
<version>${jetty.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>war.cache</warSourceDirectory>
<webappDirectory>war.cache</webappDirectory>
<webXml>src/jetty/web.xml</webXml>
<packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>
<archive>
<manifestEntries>
<Dependencies>org.jboss.as.naming,org.jboss.as.server,org.jboss.msc</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>jboss.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<copy file="src/jboss/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
<delete file="war/WEB-INF/jetty-env.xml"/>
<delete file="war/WEB-INF/classes/jndi.properties"/>
<copy todir="war.cache/app/">
<fileset dir="war/app/"/>
</copy>
<exec executable="git">
<arg value="add"/>
<arg value="war.cache"/>
</exec>
<exec executable="git">
<arg value="commit"/>
<arg value="-a"/>
<arg value="-m"/>
<arg value="'commit war.cache'"/>
</exec>
<echo message="Openshift Prepared!"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Begin Tomcat 6 and 7 support -->
<profile>
<id>tomcat</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>tomcat.package</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<delete file="war/WEB-INF/jetty-deployment-structure.xml"/>
<copy file="src/tomcat/context.xml" toDir="war/META-INF"
overwrite="true"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Profile that must be enabled when running integration tests (any
test that extends GWTTestCase directly or indirectly) -->
<profile>
<id>integration-test</id>
<properties>
<profile.testOutputDirectory>war/WEB-INF/classes</profile.testOutputDirectory>
</properties>
<build>
<testResources>
<testResource>
<directory>src/test/java</directory>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<skipTests>false</skipTests>
<additionalClasspathElements>
<additionalClasspathElement>${basedir}/${profile.testOutputDirectory}/
</additionalClasspathElement>
<additionalClasspathElement>${basedir}/src/test/java/</additionalClasspathElement>
<additionalClasspathElement>${basedir}/src/main/java/</additionalClasspathElement>
</additionalClasspathElements>
<useManifestOnlyJar>false</useManifestOnlyJar>
<forkMode>pertest</forkMode>
<!-- Note: to run the test in a real browser, set -DargLine='-Dgwt.args="-runStyle
Manual:1"' -->
<argLine>-Xmx2048m ${argLine}</argLine>
<systemProperties>
<!-- Must disable long polling for automated tests to succeed -->
<property>
<name>errai.hosted_mode_testing</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>test.webxml</id>
<phase>process-test-resources</phase>
<configuration>
<tasks>
<copy file="src/jetty/web.xml" toDir="war/WEB-INF"
overwrite="true"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.ejb3</groupId>
<artifactId>jboss-ejb3-api</artifactId>
<scope>provided</scope>
<version>3.1.0</version>
</dependency>
<!-- Errai Core -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-bus</artifactId>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-ioc</artifactId>
<version>${errai.version}</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-client</artifactId>
<version>${errai.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-tools</artifactId>
<version>${errai.version}</version>
</dependency>
<dependency>
<groupId>org.mvel</groupId>
<artifactId>mvel2</artifactId>
<version>${mvel.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jetty</artifactId>
<version>${errai.version}</version>
</dependency>
<!-- CDI Development Utils -->
<!-- This must be placed above com.google.gwt:gwt-dev to override
the Jetty that is present there -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>${jetty.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<version>${jetty.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-naming</artifactId>
<version>${jetty.version}</version>
<scope>compile</scope>
</dependency>
<!-- Weld Modules -->
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>${weld.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<version>${weld.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<scope>runtime</scope>
<version>2.1.2-b04</version>
</dependency>
<!-- GWT and GWT Extensions -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
<scope>compile</scope>
</dependency>
<!-- Runtime / Container dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-common-core</artifactId>
<version>2.2.14.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-javax-enterprise</artifactId>
<version>${errai.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<finalName>${project.artifactId}</finalName>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.maven.version}</version>
<configuration>
<inplace>true</inplace>
<logLevel>INFO</logLevel>
<runTarget>App.html</runTarget>
<warSourceDirectory>war</warSourceDirectory>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
<soyc>false</soyc>
<webXml>src/jetty/web.xml</webXml>
<hostedWebapp>war</hostedWebapp>
<server>org.jboss.errai.cdi.server.gwt.JettyLauncher</server>
</configuration>
<executions>
<execution>
<goals>
<goal>resources</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warSourceDirectory>war</warSourceDirectory>
<webappDirectory>war</webappDirectory>
<webXml>src/jetty/web.xml</webXml>
<packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- Tests are skipped by default because they require additional GWT
dependencies. Run mvn with -Pintegration-test to enable testing. -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>clean.war</id>
<phase>clean</phase>
<configuration>
<tasks>
<!-- The gwt-maven-plugin use the war source folder as it's
build directory. We need to cleanup after we'd run the plugin and remove
all GWT related artifacts that are required to run the hosted mode. -->
<delete dir="war/WEB-INF/classes"/>
<delete dir="war/WEB-INF/lib"/>
<delete dir="war/META-INF"/>
<delete file="war/WEB-INF/web.xml"/>
<delete dir="war/app"/>
<delete dir="target"/>
<copy file="src/${webDescriptor}/web.xml" toDir="war/WEB-INF"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.errai</groupId>
<artifactId>jacoco-gwt-maven-plugin</artifactId>
<version>0.5.4.201202141554</version>
<executions>
<execution>
<id>jacoco-gwt-prepare-agent</id>
<phase>initialize</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-gwt-report</id>
<phase>site</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<versionRange>[2.3.0,)</versionRange>
<goals>
<goal>resources</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute/>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jboss.errai</groupId>
<artifactId>jacoco-gwt-maven-plugin</artifactId>
<versionRange>[0.0,)</versionRange>
<goals>
<goal>prepare-agent</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- Repositories -->
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>smartclient-maven-repository</id>
<name>Smartclient Maven Repository</name>
<url>http://www.smartclient.com/maven2</url>
<layout>default</layout>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- DistributionManagement -->
<distributionManagement>
<repository>
<id>jboss-releases-repository</id>
<name>JBoss Releases Repository</name>
<url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>jboss-snapshots-repository</id>
<name>JBoss Snapshots Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
-
11. Re: SmartGWT with errai
cbrock Mar 24, 2012 11:33 PM (in response to juhoffma)Can you try with GWT 2.4 and Errai 2.0-SNAPSHOT?
-
12. Re: SmartGWT with errai
juhoffma Mar 25, 2012 6:18 AM (in response to cbrock)Hi,
I did as you said:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<errai.version>2.0-SNAPSHOT</errai.version>
<errai.cdi.version>2.0-SNAPSHOT</errai.cdi.version>
<gwt.version>2.4.0</gwt.version>
<hsqldb.version>1.8.0.7</hsqldb.version>
<weld.version>1.1.5.Final</weld.version>
<gwt.maven.version>2.4.0</gwt.maven.version>
<mvel.version>2.1.Beta6</mvel.version>
<jetty.version>6.1.25</jetty.version>
<slf4j.version>1.6.1</slf4j.version>
<uel.impl.version>2.1.2-b04</uel.impl.version>
<webDescriptor>jetty</webDescriptor>
</properties>
when I run the App from within intellij idea
Loading modules
com.redhat.gps.juhoffma.App
Validating <servlet> tags for module 'app'
[WARN] Module declares a servlet class 'com.google.gwt.junit.server.JUnitHostImpl', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:
<servlet>
<servlet-name>jUnitHostImpl</servlet-name>
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jUnitHostImpl</servlet-name>
<url-pattern>/app/junithost/*</url-pattern>
</servlet-mapping>
Starting Jetty on port 8888
jetty-6.1.x
[WARN] Could not instantiate listener org.jboss.errai.container.DevModeCDIBootstrap
java.lang.ClassNotFoundException: org.jboss.errai.container.DevModeCDIBootstrap
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.java:1038)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:629)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:367)
at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96)
at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1217)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
org.mortbay.jetty.plus.webapp.Configuration does not support annotations on source. Use org.mortbay.jetty.annotations.Configuration instead
No Transaction manager found - if your webapp requires one, please configure one.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/weld-servlet-1.1.5.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
ERROR [ShutdownEventObserver] Could not find a CDI BeanManager.
javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
[WARN] failed ErraiServlet
javax.servlet.ServletException: java.lang.RuntimeException: Failed to create service
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:437)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.RuntimeException: Failed to create service
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:115)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
... 25 more
Caused by: java.lang.RuntimeException: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:35)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
... 27 more
Caused by: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
... 28 more
[WARN] Nested in javax.servlet.ServletException: java.lang.RuntimeException: Failed to create service:
java.lang.RuntimeException: Failed to create service
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:115)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.RuntimeException: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:35)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
... 27 more
Caused by: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
... 28 more
[WARN] Failed startup of context org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@6963eb77{/,/Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www}
javax.servlet.ServletException: java.lang.RuntimeException: Failed to create service
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:437)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.RuntimeException: Failed to create service
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:115)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
... 25 more
Caused by: java.lang.RuntimeException: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:35)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
... 27 more
Caused by: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
... 28 more
[WARN] Nested in javax.servlet.ServletException: java.lang.RuntimeException: Failed to create service:
java.lang.RuntimeException: Failed to create service
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:115)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.RuntimeException: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:35)
at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
... 27 more
Caused by: javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
... 28 more
Started SelectChannelConnector@0.0.0.0:8888
and when I try mvn gwt:run
I am getting
buddy:manage buddy$ mvn gwt:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Errai::Archetypes::CDI 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:2.4.0:run (default-cli) @ manage >>>
Downloading: http://repository.jboss.org/maven2/org/jboss/errai/reflections/reflections-parent/2.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.jboss.errai.reflections:reflections-parent:2.0-SNAPSHOT/maven-metadata.xml from/to jboss maven2 repository (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/org/jboss/errai/reflections/reflections-parent/2.0-SNAPSHOT/maven-metadata.xml
[INFO]
[INFO] --- jacoco-gwt-maven-plugin:0.5.4.201202141554:prepare-agent (jacoco-gwt-prepare-agent) @ manage ---
[INFO] argLine set to -javaagent:/Users/buddy/.m2/repository/org/jboss/errai/jacoco-gwt-maven-plugin/0.5.4.201202141554/jacoco-gwt-maven-plugin-0.5.4.201202141554.jar=snapshotDirectory=/Users/buddy/PT/juhoffma/errai/manage/target/snapshot-classes,snapshotClassLoaders=*gwt* -javaagent:/Users/buddy/.m2/repository/org/jacoco/org.jacoco.agent/0.5.4.201111111111/org.jacoco.agent-0.5.4.201111111111-runtime.jar=destfile=/Users/buddy/PT/juhoffma/errai/manage/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ manage ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:resources (default) @ manage ---
[INFO] auto discovered modules [com.redhat.gps.juhoffma.App]
[INFO] 4 source files from GWT module com.redhat.gps.juhoffma.App
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ manage ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gwt-maven-plugin:2.4.0:run (default-cli) @ manage <<<
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:run (default-cli) @ manage ---
[INFO] create exploded Jetty webapp in /Users/buddy/PT/juhoffma/errai/manage/war
[INFO] auto discovered modules [com.redhat.gps.juhoffma.App]
[ERROR] SLF4J: Class path contains multiple SLF4J bindings.
[ERROR] SLF4J: Found binding in [jar:file:/Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[ERROR] SLF4J: Found binding in [jar:file:/Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/lib/weld-servlet-1.1.5.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[ERROR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[INFO] ERROR [ShutdownEventObserver] Could not find a CDI BeanManager.
[INFO] javax.naming.NamingException: Failed to locate the CDI BeanManager under any of the JNDI names: [java:comp/BeanManager, java:comp/env/BeanManager]
[INFO] at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:212)
[INFO] at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:24)
[INFO] at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:112)
[INFO] at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:88)
[INFO] at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
[INFO] at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
[INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
[INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
[INFO] at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.jetty.Server.doStart(Server.java:224)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
[INFO] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
[INFO] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
[INFO] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
[INFO] at com.google.gwt.dev.DevMode.main(DevMode.java:311)
[ERROR] SLF4J: Class path contains multiple SLF4J bindings.
[ERROR] SLF4J: Found binding in [jar:file:/Users/buddy/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[ERROR] SLF4J: Found binding in [jar:file:/Users/buddy/.m2/repository/org/jboss/weld/servlet/weld-servlet/1.1.5.Final/weld-servlet-1.1.5.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[ERROR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[INFO] INFO [MarshallerGeneratorFactory] generating marshalling class...
[INFO] INFO [Reflections] Reflections took 1104 ms to scan 8 urls, producing 287 keys and 996 values
[INFO] INFO [Reflections] Reflections took 460 ms to scan 8 urls, producing 287 keys and 996 values
[INFO] INFO [MarshallerGeneratorFactory] generated marshalling class in 2392ms.
[INFO] INFO [Generator] considering '/Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/classes/' as module output path ...
[INFO] INFO [Generator] found '/Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/classes' output directory
[INFO] INFO [Generator] ** deposited marshaller class in : /Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/classes
[INFO] INFO [MarshallerGeneratorFactory] generating marshalling class...
[INFO] INFO [MarshallerGeneratorFactory] generated marshalling class in 359ms.
[INFO] INFO [IOCBootstrapGenerator] generating IOC bootstrapping class...
[INFO] INFO [IOCBootstrapGenerator] generated IOC bootstrapping class in 1127ms
[INFO] INFO [IOCBootstrapGenerator] using IOC bootstrapping code at: /Users/buddy/PT/juhoffma/errai/manage/.errai/BootstrapperImpl.java
[INFO] UI Constructed!
[ERROR] com.google.gwt.json.client.JSONException: Error parsing JSON: SyntaxError: Unexpected token <
[ERROR] at com.google.gwt.json.client.JSONParser.throwJSONException(JSONParser.java:91)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.json.client.JSONParser.evaluate(JSONParser.java)
[ERROR] at com.google.gwt.json.client.JSONParser.parse(JSONParser.java:213)
[ERROR] at com.google.gwt.json.client.JSONParser.parseStrict(JSONParser.java:87)
[ERROR] at org.jboss.errai.bus.client.json.JSONUtilCli.decodePayload(JSONUtilCli.java:61)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.procPayload(ClientMessageBusImpl.java:1414)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.procIncomingPayload(ClientMessageBusImpl.java:1408)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.access$6(ClientMessageBusImpl.java:1407)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl$11.onResponseReceived(ClientMessageBusImpl.java:1140)
[ERROR] at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
[ERROR] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
[ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
[ERROR] at java.lang.Thread.run(Thread.java:680)
[ERROR] com.google.gwt.json.client.JSONException: Error parsing JSON: SyntaxError: Unexpected token <
[ERROR] at com.google.gwt.json.client.JSONParser.throwJSONException(JSONParser.java:91)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.json.client.JSONParser.evaluate(JSONParser.java)
[ERROR] at com.google.gwt.json.client.JSONParser.parse(JSONParser.java:213)
[ERROR] at com.google.gwt.json.client.JSONParser.parseStrict(JSONParser.java:87)
[ERROR] at org.jboss.errai.bus.client.json.JSONUtilCli.decodePayload(JSONUtilCli.java:61)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.procPayload(ClientMessageBusImpl.java:1414)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.procIncomingPayload(ClientMessageBusImpl.java:1408)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.access$6(ClientMessageBusImpl.java:1407)
[ERROR] at org.jboss.errai.bus.client.framework.ClientMessageBusImpl$11.onResponseReceived(ClientMessageBusImpl.java:1140)
[ERROR] at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
[ERROR] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
[ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
[ERROR] at java.lang.Thread.run(Thread.java:680)
[INFO] INFO [RpcProxyLoaderGenerator] nothing has changed. using cached rpc proxy loader class.
on the console
and
HTTP ERROR 503
Problem accessing /out.54506-32168.erraiBus. Reason:
java.lang.RuntimeException: Failed to create service
Caused by:
javax.servlet.UnavailableException: java.lang.RuntimeException: Failed to create service at org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:455)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:531)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
in the Browser
-
13. Re: SmartGWT with errai
csa Mar 26, 2012 12:14 PM (in response to juhoffma)This is just due to a class renaming. Change the following in your web.xmls (different profiles):
{code:xml}<listener-class>org.jboss.errai.container.DevModeCDIBootstrap</listener-class>
{code}
to
{code:xml}<listener-class>org.jboss.errai.container.CDIServletStateListener</listener-class>
{code}
-
14. Re: SmartGWT with errai
juhoffma Mar 26, 2012 5:41 PM (in response to csa)after creating a new archetype frommvn archetype:generate -DarchetypeGroupId=org.jboss.errai.archetypes -DarchetypeArtifactId=cdi-quickstart -DarchetypeVersion=2.0-SNAPSHOT -DarchetypeRepository=https://repository.jboss.org/nexus/content/groups/public/ and redoing all my steps, it works. I am able to use smartgwt for presentation. AWESOME!!! Thanks for the help