Hi again,
Followed your quickstart guide and used the archetype specified as:
mvn archetype:generate \
-DarchetypeGroupId=org.jboss.errai.archetypes \
-DarchetypeArtifactId=cdi-quickstart \
-DarchetypeVersion=1.3.0.CR1 \
-DarchetypeRepository=https://repository.jboss.org/nexus/content/groups/public/
with local properties like:
groupId : foo.bar
artifactId : gwt-app
version : 1.0-SNAPSHOT
package : com.foo.bar
As explained in the guide a great amount of jars was downloaded to local repository and
it all succeded as:
Confirm properties configuration:
groupId: foo.bar
artifactId: gwt-app
version: 1.0-SNAPSHOT
package: com.foo.bar
Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: cdi-quickstart:1.3.0.CR1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: foo.bar
[INFO] Parameter: artifactId, Value: gwt-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.foo.bar
[INFO] Parameter: packageInPathFormat, Value: com/foo/bar
[INFO] Parameter: package, Value: com.foo.bar
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: foo.bar
[INFO] Parameter: artifactId, Value: gwt-app
[INFO] project created from Archetype in dir: C:\Projekt\Java\Workspace\gwt-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:20.672s
[INFO] Finished at: Tue Oct 04 16:23:46 CEST 2011
[INFO] Final Memory: 8M/21M
[INFO] ------------------------------------------------------------------------
C:\Projekt\Java\Workspace>
After that I tried to follow the instructions in Errai WIKI:
Working with GWT, CDI and Errai
and verified that I have eclipse, GWT 2.3.0 and m2e 1.0.100.20110804-1717 are installed
next step was to import the gwt-app into eclipse
selected root folder
clicking next displayed
Clicking finish gave:
What is wrong and what and where should I fix?
Advancing to step 4d, applying disabled built-in server and program arguments like:
and then running gives:
Loading modules
com.foo.bar.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.25
[WARN] Server class 'org.jboss.errai.container.DevModeCDIBootstrap' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/org/jboss/errai/errai-weld-integration/1.3.0.CR1/errai-weld-integration-1.3.0.CR1.jar' to the web app classpath for this session
[WARN] Server class 'org.jboss.weld.servlet.api.helpers.ForwardingServletListener' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/org/jboss/weld/weld-spi/1.1.Final/weld-spi-1.1.Final.jar' to the web app classpath for this session
[WARN] Server class 'javassist.util.proxy.ProxyFactory$ClassLoaderProvider' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/javassist/javassist/3.12.1.GA/javassist-3.12.1.GA.jar' to the web app classpath for this session
[WARN] failed org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@15eb998{/,C:\Projekt\Java\Workspace\gwt-app\war}: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[WARN] failed RequestLogHandler@10f144e: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[WARN] Error starting handlers
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.jboss.errai.container.DevModeCDIBootstrap.<clinit>(DevModeCDIBootstrap.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
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:1269)
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:450)
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:526)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
at com.google.gwt.dev.DevMode.main(DevMode.java:309)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:355)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:392)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
... 34 more
Started SelectChannelConnector@0.0.0.0:8888
According to instructions I added:
<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>
to the web.xml and restarted which resulted in:
Starting Jetty on port 8888
jetty-6.1.25
[WARN] Server class 'org.jboss.errai.container.DevModeCDIBootstrap' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/org/jboss/errai/errai-weld-integration/1.3.0.CR1/errai-weld-integration-1.3.0.CR1.jar' to the web app classpath for this session
[WARN] Server class 'org.jboss.weld.servlet.api.helpers.ForwardingServletListener' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/org/jboss/weld/weld-spi/1.1.Final/weld-spi-1.1.Final.jar' to the web app classpath for this session
[WARN] Server class 'javassist.util.proxy.ProxyFactory$ClassLoaderProvider' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Documents%20and%20Settings/stab/.m2/repository/javassist/javassist/3.12.1.GA/javassist-3.12.1.GA.jar' to the web app classpath for this session
[WARN] failed org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@1df1547{/,C:\Projekt\Java\Workspace\gwt-app\war}: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[WARN] failed RequestLogHandler@b86342: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[WARN] Error starting handlers
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.jboss.errai.container.DevModeCDIBootstrap.<clinit>(DevModeCDIBootstrap.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
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:1269)
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:450)
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:526)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
at com.google.gwt.dev.DevMode.main(DevMode.java:309)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:355)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:392)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
... 34 more
Started SelectChannelConnector@0.0.0.0:8888
Regards
stab