9 Replies Latest reply: Oct 4, 2011 4:16 PM by stab RSS

    Need help on making my first errai app

    stab Newbie

      Hi,

       

       

      Newbie in Errai and Maven and quite new in java too(former Delphi developer).

       

      I'm using eclipse helios on windows xp and downloaded errai-cdi-1.3.0.CR1.zip

       

      Tried to follow the instrctions given in:Working with GWT, CDI and Errai by Heiko Braun

       

      - imported the TagCloudDemo to geta a maven build structure

      - got to step 4c and guessed that the configuration I was supposed

        to modify is Web Application -> index.html

      - disabled Server -> Run built-in-server

      - changed Arguments:

        -noserver -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel

        INFO -codeServerPort 9997 -war C:\eclipse-java-helios-SR2-win32\eclipse\plugins\

        ServerPush\errai-cdi-1.3.0.CR1\examples\errai-cdi-tagcloud-demo\war

       

        to

       

        -server org.jboss.errai.cdi.server.gwt.JettyLauncher

        -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel

        INFO -codeServerPort 9997 -war C:\eclipse-java-helios-SR2-win32\eclipse\plugins\

        ServerPush\errai-cdi-1.3.0.CR1\examples\errai-cdi-tagcloud-demo\war

       

      - applied changes

      - run

       

      and got an messagesbox: Errors exists in required project(s)....

      proceeded anyway and got error:

      Missing required argument 'module[s]'

      Google Web Toolkit 2.3.0

      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]

       

      where

        -noserver        Prevents the embedded web server from running

        -port            Specifies the TCP port for the embedded web server (defaults to 8888)

        -whitelist       Allows the user to browse URLs that match the specified regexes (comma or space separated)

        -blacklist       Prevents the user browsing URLs that match the specified regexes (comma or space separated)

        -logdir          Logs to a file in the given directory, as well as graphically

        -logLevel        The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL

        -gen             Debugging: causes normally-transient generated types to be saved in the specified directory

        -bindAddress     Specifies the bind address for the code server and web server (defaults to 127.0.0.1)

        -codeServerPort  Specifies the TCP port for the code server (defaults to 9997)

        -server          Specify a different embedded web server to run (must implement ServletContainerLauncher)

        -startupUrl      Automatically launches the specified URL

        -war             The directory into which deployable output files will be written (defaults to 'war')

        -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)

        -extra           The directory into which extra files, not intended for deployment, will be written

        -workDir         The compiler's working directory for internal use (must be writeable; defaults to a system temp dir)

      and

        module[s]        Specifies the name(s) of the module(s) to host

       

      What am I doing wrong?

       

      Regards

      stab

        • 1. Re: Need help on making my first errai app
          Christian Sadilek Master

          Here are the program arguments for starting the TagCloudDemo using an Eclipse Run Configuration:

           

          org.jboss.errai.cdi.demo.tagcloud.TagCloudDemo -startupUrl TagCloudDemo.html -server org.jboss.errai.cdi.server.gwt.JettyLauncher

           

           

          Also you need to add your source folder (src/main/java) to the Run Configuration's classpath.

           

          You can also take a look at our quickstart guide and use our maven archetypes to get started: https://docs.jboss.org/author/display/ERRAI/CDI+Quickstart+Guide

          • 2. Re: Need help on making my first errai app
            stab Newbie

            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

            Import1.gif

            selected root folder

             

            selecte root folder.gif

             

            Import2.gif

            clicking next displayed

             

             

            Import3.gif

             

            Clicking finish gave:

             

            Import4.gif

            What is wrong and what and where should I fix?

             

            Advancing to step 4d, applying disabled built-in server and program arguments like:

             

            programargs.gif

            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

            • 3. Re: Need help on making my first errai app
              Christian Sadilek Master

              To handle the first problem (no eclipse plugin found for the gwt-maven-plugin) add the following to your pom.xml under <build>:

               

              <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>
                      </pluginExecutions>
                    </lifecycleMappingMetadata>
                  </configuration>
                 </plugin>
               </plugins>
              </pluginManagement>

               

               

              This is a new issue with M2E which we will handle with the next release of our archetypes.

               

              Also, execute a "mvn clean gwt:run" on the command line which should start DevMode/Jetty. If that works, you should be able to start the app from within Eclipse.

              • 4. Re: Need help on making my first errai app
                stab Newbie

                Thanks for rapid reply,

                 

                 

                One question: When I look into the pom.xml I find several <build>:

                 

                <profiles>

                 

                        <profile>

                 

                            <id>jetty</id>

                 

                            <activation>

                 

                                <activeByDefault>true</activeByDefault>

                 

                            </activation>

                 

                 

                            <build>

                 

                                <plugins>

                 

                .....

                 

                <build>

                 

                                <plugins>

                 

                                    <plugin>

                 

                                        <groupId>org.apache.maven.plugins</groupId>

                 

                                        <artifactId>maven-antrun-plugin</artifactId>

                 

                                        <version>1.2</version>

                 

                                        <executions>

                 

                                            <execution>

                 

                 

                ...

                 

                 

                            <build>

                                <plugins>

                                    <plugin>

                                        <artifactId>maven-war-plugin</artifactId>

                                        <version>2.1-beta-1</version>

                                        <configuration>

                                            <warSourceDirectory>war</warSourceDirectory>

                                            <webappDirectory>war</webappDirectory>

                                            <webXml>src/jetty/web.xml</webXml>

                                            <packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>

                 

                ...

                 

                            <build>

                                <plugins>

                                    <plugin>

                                        <artifactId>maven-war-plugin</artifactId>

                                        <version>2.1-beta-1</version>

                                        <configuration>

                                            <warSourceDirectory>war</warSourceDirectory>

                                            <webappDirectory>war</webappDirectory>

                                            <webXml>src/jetty/web.xml</webXml>

                                            <packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>

                 

                 

                ...

                 

                    </profiles>

                    <build>

                        <outputDirectory>war/WEB-INF/classes</outputDirectory>

                 

                        <plugins>

                            <plugin>

                                <groupId>org.codehaus.mojo</groupId>

                                <artifactId>gwt-maven-plugin</artifactId>

                                <version>${gwt.maven}</version>

                                <configuration>

                                    <inplace>true</inplace>

                                    <logLevel>INFO</logLevel>

                                    <runTarget>App.html</runTarget>

                                    <warSourceDirectory>war</warSourceDirectory>

                                    <extraJvmArgs>-Xmx512m</extraJvmArgs>

                                    <soyc>false</soyc>

                 

                 

                ...

                 

                 

                Am I supposed to add what you supplied at every place or just at some particular?

                 

                Regards

                stab

                • 5. Re: Need help on making my first errai app
                  Christian Sadilek Master

                  No only in the last build section, outside the profiles. This is just for eclipse to ignore the missing plugin.

                  • 6. Re: Need help on making my first errai app
                    stab Newbie

                    Hi again,

                     

                    Starting to work.

                     

                    When I issued: mvn clean gwt:run jar and pom download started again and I recognized some errors but anyhow a standalone

                    window "GWT Development Mode" showed up, clicked button "Launch Default Browser" and the errai-app was up and running.

                     

                    Very nice function, but could you tell how I start dev-mode from within eclipse.

                    What am I supposed to assigned to "argument" when I run run configuration?

                     

                    stab

                    • 7. Re: Need help on making my first errai app
                      Christian Sadilek Master

                      You can either use the Google/GWT plugin for Eclipse or just create a runtime configuration using com.google.gwt.dev.DevMode as main class and provide the program arguments I posted above.

                      • 8. Re: Need help on making my first errai app
                        stab Newbie

                        Thanks a lot for your help

                         

                        Regards

                        stab

                        • 9. Re: Need help on making my first errai app
                          stab Newbie

                          The following warnings, which might be interesting for you, show up when I execute: "mvn clean gwt:run"

                           

                          C:\Projekt\Java\Workspace\gwt-app>mvn clean gwt:run

                          [INFO] Scanning for projects...

                          [WARNING]

                          [WARNING] Some problems were encountered while building the effective model for org.jboss.errai.arch

                          etypes:cdi-quickstart:war:1.3.0.CR1

                          [WARNING] 'profiles.profile[openshift].plugins.plugin.(groupId:artifactId)' must be unique but found

                          duplicate declaration of plugin org.apache.maven.plugins:maven-war-plugin @ line 916, column 29

                          [WARNING]

                          [WARNING] It is highly recommended to fix these problems because they threaten the stability of your

                          build.

                          [WARNING]

                          [WARNING] For this reason, future Maven versions might no longer support building such malformed pro

                          jects.

                          [WARNING]

                          [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency informat

                          ion available

                          [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin o

                          rg.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to r

                          ead artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0

                          [INFO]

                          [INFO] ------------------------------------------------------------------------

                          [INFO] Building Errai::Archetypes::CDI 1.3.0.CR1

                          [INFO] ------------------------------------------------------------------------

                          [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency informat

                          ion available

                          [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin o

                          rg.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to r

                          ead artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0

                          [INFO]

                          [INFO] --- maven-clean-plugin:2.2:clean (default-clean) @ cdi-quickstart ---

                          [INFO] Clean is skipped.

                          [INFO]

                          [INFO] --- maven-antrun-plugin:1.2:run (clean.war) @ cdi-quickstart ---

                          [INFO] Executing tasks

                             [delete] Deleting directory C:\Projekt\Java\Workspace\gwt-app\war\WEB-INF\classes

                             [delete] Deleting directory C:\Projekt\Java\Workspace\gwt-app\war\WEB-INF\lib

                             [delete] Deleting: C:\Projekt\Java\Workspace\gwt-app\war\WEB-INF\web.xml

                             [delete] Deleting directory C:\Projekt\Java\Workspace\gwt-app\war\app

                             [delete] Deleting directory C:\Projekt\Java\Workspace\gwt-app\target

                               [copy] Copying 1 file to C:\Projekt\Java\Workspace\gwt-app\war\WEB-INF

                          [INFO] Executed tasks

                          [INFO]

                          [INFO] >>> gwt-maven-plugin:2.3.0:run (default-cli) @ cdi-quickstart >>>

                          [INFO]

                          [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ cdi-quickstart ---

                          [INFO] Using 'UTF-8' encoding to copy filtered resources.

                          [INFO] Copying 7 resources

                          [INFO]

                          [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ cdi-quickstart ---

                          [INFO] Compiling 4 source files to C:\Projekt\Java\Workspace\gwt-app\war\WEB-INF\classes

                          [INFO]

                          [INFO] <<< gwt-maven-plugin:2.3.0:run (default-cli) @ cdi-quickstart <<<

                          [INFO]

                          [INFO] --- gwt-maven-plugin:2.3.0:run (default-cli) @ cdi-quickstart ---

                          [WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency confl

                          icts

                          [INFO] create exploded Jetty webapp in C:\Projekt\Java\Workspace\gwt-app\war

                          [INFO] auto discovered modules [com.foo.bar.App]

                          [ERROR] SLF4J: Class path contains multiple SLF4J bindings.

                          [ERROR] SLF4J: Found binding in [jar:file:/C:/Projekt/Java/Workspace/gwt-app/war/WEB-INF/lib/slf4j-l

                          og4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]

                          [ERROR] SLF4J: Found binding in [jar:file:/C:/Projekt/Java/Workspace/gwt-app/war/WEB-INF/lib/weld-se

                          rvlet-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]

                          [ERROR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

                          [INFO] 22:09:46,552 INFO  [weld.Version] WELD-000900 1.1.0 (Final)

                          [INFO] 22:09:46,599 INFO  [weld.Bootstrap] WELD-000101 Transactional services not available. Injecti

                          on of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

                          [INFO] 22:09:46,943 INFO  [server.CDIExtensionPoints] Created Errai-CDI context: fea1cdf7-a7b4-4bff-

                          8ee2-c681765ac99a

                          [INFO] 22:09:46,974 INFO  [container.DevModeCDIBootstrap] Jetty detected, JSR-299 injection will be

                          available in Servlets and Filters. Injection into Listeners is not supported.

                          [INFO] 22:09:47,114 INFO  [ErraiJNDI] searching to see if ErraiService is already bound...

                          [INFO] 22:09:47,364 INFO  [metadata.PackagingUtil] identifying deployment type for uri: /C:/Projekt/

                          Java/Workspace/gwt-app/war/WEB-INF/classes/

                          [INFO] 22:09:47,364 INFO  [metadata.PackagingUtil] identifying deployment type for uri: /C:/Projekt/

                          Java/Workspace/gwt-app/war/WEB-INF/lib/errai-cdi-client-1.3.0.CR1.jar

                          [INFO] 22:09:47,364 INFO  [metadata.PackagingUtil] identifying deployment type for uri: /C:/Projekt/

                          Java/Workspace/gwt-app/war/WEB-INF/lib/errai-ioc-1.3.0.CR1.jar

                          [INFO] 22:09:47,364 INFO  [metadata.PackagingUtil] identifying deployment type for uri: /C:/Projekt/

                          Java/Workspace/gwt-app/war/WEB-INF/lib/errai-tools-1.3.0.CR1.jar

                          [INFO] 22:09:47,364 INFO  [metadata.PackagingUtil] identifying deployment type for uri: /C:/Projekt/

                          Java/Workspace/gwt-app/war/WEB-INF/lib/errai-weld-integration-1.3.0.CR1.jar

                          [INFO] 22:09:47,771 INFO  [reflections.Reflections] Reflections took 407 ms to scan 5 urls, producin

                          g 194 keys and 575 values

                          [INFO] 22:09:48,083 INFO  [reflections.Reflections] Reflections took 312 ms to scan 5 urls, producin

                          g 194 keys and 575 values

                          [INFO] 22:09:48,099 INFO  [bootstrap.OrderedBootstrap] Bootstrap Errai

                          [INFO] 22:09:48,099 INFO  [bootstrap.OrderedBootstrap] Working directory: C:\Projekt\Java\Workspace\

                          gwt-app

                          [INFO] 22:09:48,099 INFO  [bootstrap.DefaultComponents] authentication adapter configured: org.jboss

                          .errai.bus.server.security.auth.JAASAdapter

                          [INFO] 22:09:48,099 INFO  [bootstrap.DefaultComponents] using dispatcher implementation: org.jboss.e

                          rrai.bus.server.AsyncDispatcher

                          [INFO] 22:09:48,114 INFO  [server.WorkerFactory] initializing async worker pools (poolSize: 5; worke

                          rTimeout: 5000)

                          [INFO] 22:09:48,114 INFO  [server.WorkerFactory] starting worker pool.

                          [INFO] 22:09:48,114 INFO  [bootstrap.DefaultComponents] using session provider implementation: org.j

                          boss.errai.bus.server.HttpSessionProvider

                          [INFO] 22:09:48,114 INFO  [bootstrap.LoadExtensions] searching for Errai extensions ...

                          [INFO] 22:09:48,114 INFO  [bootstrap.LoadExtensions] found extension org.jboss.errai.tools.monitorin

                          g.MonitorExtension

                          [INFO] 22:09:48,130 INFO  [bootstrap.LoadExtensions] added extension binding: org.jboss.errai.bus.se

                          rver.security.auth.AuthenticationAdapter

                          [INFO] 22:09:48,130 INFO  [bootstrap.AuthenticationRules] authentication for all requests required,

                          adding rule ...

                          [INFO] 22:09:48,146 INFO  [bootstrap.DiscoverServices] auto-discovery of services disabled.

                          [INFO] 22:09:48,146 INFO  [bootstrap.BootstrapContext] Running deferred bootstrap tasks ...

                          [INFO] 22:09:48,146 INFO  [bootstrap.OrderedBootstrap] Bootstrap complete. Ready to rumble!

                          [INFO] 22:09:48,146 INFO  [ErraiJNDI] found ErraiService bound at: java:comp/env/ErraiService

                          [INFO] 22:09:48,146 WARN  [server.ContextManager] BoundRequestContext not found. ContextManager will

                          not be available.

                           

                          stab