New Development Mode Setup in Errai 3.0
xybrek May 21, 2014 11:45 AMI'm trying to run the new Errai dev mode from here:
http://errai-blog.blogspot.com/2013/11/new-development-mode-setup-in-errai-30.html
However, the mvn clean install finished successfully when I do mvn gwt:run it throws this error:
[INFO] --- gwt-maven-plugin:2.5.1:run (default-cli) @ app.ui ---
[WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
[INFO] create exploded Jetty webapp in /home/xybrek/Projects/mycompany/app.ui/src/main/webapp
[WARNING] Your POM <build><outputdirectory> does not match your hosted webapp WEB-INF/classes folder for GWT Hosted browser to see your classes.
[INFO] auto discovered modules [app.App]
[ERROR] Unable to load server class 'org.jboss.errai.cdi.server.gwt.JBossLauncher'
[ERROR] java.lang.ClassNotFoundException: org.jboss.errai.cdi.server.gwt.JBossLauncher
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[ERROR] at java.lang.Class.forName0(Native Method)
[ERROR] at java.lang.Class.forName(Class.java:270)
[ERROR] at com.google.gwt.dev.DevMode$ArgHandlerServer.setString(DevMode.java:118)
[ERROR] at com.google.gwt.util.tools.ArgHandlerString.handle(ArgHandlerString.java:26)
[ERROR] at com.google.gwt.util.tools.ToolBase.processArgs(ToolBase.java:238)
[ERROR] at com.google.gwt.dev.ArgProcessorBase.processArgs(ArgProcessorBase.java:29)
[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:310)
[ERROR] Google Web Toolkit 2.5.1
[ERROR] DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s]
[ERROR]
[ERROR] where
[ERROR] -noserver Prevents the embedded web server from running
[ERROR] -port Specifies the TCP port for the embedded web server (defaults to 8888)
[ERROR] -whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated)
[ERROR] -blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated)
[ERROR] -logdir Logs to a file in the given directory, as well as graphically
[ERROR] -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
[ERROR] -gen Debugging: causes normally-transient generated types to be saved in the specified directory
[ERROR] -bindAddress Specifies the bind address for the code server and web server (defaults to 127.0.0.1)
[ERROR] -codeServerPort Specifies the TCP port for the code server (defaults to 9997)
[ERROR] -server Specify a different embedded web server to run (must implement ServletContainerLauncher)
[ERROR] -startupUrl Automatically launches the specified URL
[ERROR] -war The directory into which deployable output files will be written (defaults to 'war')
[ERROR] -deploy The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar)
[ERROR] -extra The directory into which extra files, not intended for deployment, will be written
[ERROR] -workDir The compiler's working directory for internal use (must be writeable; defaults to a system temp dir)
[ERROR] and
[ERROR] module[s] Specifies the name(s) of the module(s) to host
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.005s
[INFO] Finished at: Wed May 21 23:13:07 PHT 2014
[INFO] Final Memory: 22M/86M
[INFO] ------------------------------------------------------------------------
POM.xml
<properties>
<errai.devmode.version>3.0.0.20140325-M5</errai.devmode.version>
</properties>
<!-- Errai in Development mode -->
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cdi-jboss</artifactId>
<version>${errai.devmode.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-client-local-class-hider</artifactId>
<version>${errai.devmode.version}</version>
</dependency>
And have this in the right place:
<server>org.jboss.errai.cdi.server.gwt.JBossLauncher</server>