1 Reply Latest reply: Mar 17, 2012 6:09 PM by Mike Brock RSS

Setup in Intellij IDEA

Juergen Hoffmann Newbie

Hi,

 

I have imported the cdi-quickstart into IntelliJ Idea and added intellijs GWT support. When I run the App Configuration I am getting the following error

 

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx256m -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 11.app/bin" -Dfile.encoding=UTF-8 -classpath "/Users/buddy/.m2/repository/com/google/gwt/gwt-dev/2.3.0//gwt-dev-2.3.0.jar:/Users/buddy/PT/juhoffma/errai/manage/src/main/resources:/Users/buddy/PT/juhoffma/errai/manage/src/main/java:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/alt-rt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/alt-string.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/charsets.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/classes.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Users/buddy/PT/juhoffma/errai/manage/target/test-classes:/Users/buddy/PT/juhoffma/errai/manage/war/WEB-INF/classes:/Users/buddy/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/buddy/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar:/Users/buddy/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/buddy/.m2/repository/junit/junit/4.10/junit-4.10.jar:/Users/buddy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/Users/buddy/.m2/repository/org/jboss/ejb3/jboss-ejb3-api/3.1.0/jboss-ejb3-api-3.1.0.jar:/Users/buddy/.m2/repository/jboss/jbossws/jboss-jaxrpc/2.0.3.GA/jboss-jaxrpc-2.0.3.GA.jar:/Users/buddy/.m2/repository/org/jboss/javaee/jboss-transaction-api/1.0.1.CR2/jboss-transaction-api-1.0.1.CR2.jar:/Users/buddy/.m2/repository/javax/enterprise/cdi-api/1.0-SP4/cdi-api-1.0-SP4.jar:/Users/buddy/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar:/Users/buddy/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar:/Users/buddy/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-bus/2.0.Beta1/errai-bus-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-common/2.0.Beta1/errai-common-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/reflections/reflections/0.9.6_jboss_errai_r3/reflections-0.9.6_jboss_errai_r3.jar:/Users/buddy/.m2/repository/com/google/guava/guava/r06/guava-r06.jar:/Users/buddy/.m2/repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar:/Users/buddy/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/buddy/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/buddy/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-marshalling/2.0.Beta1/errai-marshalling-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-codegen/2.0.Beta1/errai-codegen-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/mvel/mvel2/2.1.Beta6/mvel2-2.1.Beta6.jar:/Users/buddy/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/buddy/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/buddy/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar:/Users/buddy/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/buddy/.m2/repository/com/google/code/guice/guice-servlet/2.0/guice-servlet-2.0.jar:/Users/buddy/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/buddy/.m2/repository/io/netty/netty/4.0.0.Alpha1-SNAPSHOT/netty-4.0.0.Alpha1-SNAPSHOT.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-ioc/2.0.Beta1/errai-ioc-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-tools/2.0.Beta1/errai-tools-2.0.Beta1.jar:/Users/buddy/.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-cdi-client/2.0.Beta1/errai-cdi-client-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-javax-enterprise/2.0.Beta1/errai-javax-enterprise-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-weld-integration/2.0.Beta1/errai-weld-integration-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/errai/errai-cdi-jetty/2.0.Beta1/errai-cdi-jetty-2.0.Beta1.jar:/Users/buddy/.m2/repository/org/jboss/weld/servlet/weld-servlet/1.1.5.Final/weld-servlet-1.1.5.Final.jar:/Users/buddy/.m2/repository/org/jboss/weld/weld-build-config/1.1.5.Final/weld-build-config-1.1.5.Final.jar:/Users/buddy/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.jar:/Users/buddy/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jetty-util-6.1.25.jar:/Users/buddy/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar:/Users/buddy/.m2/repository/org/mortbay/jetty/jetty-plus/6.1.25/jetty-plus-6.1.25.jar:/Users/buddy/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar:/Users/buddy/.m2/repository/org/mortbay/jetty/jetty-naming/6.1.25/jetty-naming-6.1.25.jar:/Users/buddy/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar:/Users/buddy/.m2/repository/org/jboss/weld/se/weld-se-core/1.1.5.Final/weld-se-core-1.1.5.Final.jar:/Users/buddy/.m2/repository/org/jboss/weld/weld-spi/1.1.Final/weld-spi-1.1.Final.jar:/Users/buddy/.m2/repository/org/jboss/weld/weld-api/1.1.Final/weld-api-1.1.Final.jar:/Users/buddy/.m2/repository/org/jboss/weld/weld-core/1.1.5.Final/weld-core-1.1.5.Final.jar:/Users/buddy/.m2/repository/org/jboss/interceptor/jboss-interceptor-spi/2.0.0.CR1/jboss-interceptor-spi-2.0.0.CR1.jar:/Users/buddy/.m2/repository/org/jboss/interceptor/jboss-interceptor-core/2.0.0.CR1/jboss-interceptor-core-2.0.0.CR1.jar:/Users/buddy/.m2/repository/org/slf4j/slf4j-ext/1.6.1/slf4j-ext-1.6.1.jar:/Users/buddy/.m2/repository/ch/qos/cal10n/cal10n-api/0.7.2/cal10n-api-0.7.2.jar:/Users/buddy/.m2/repository/javax/el/el-api/2.2/el-api-2.2.jar:/Users/buddy/.m2/repository/org/glassfish/web/el-impl/2.1.2-b04/el-impl-2.1.2-b04.jar:/Users/buddy/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar:/Users/buddy/.m2/repository/org/jboss/logging/jboss-logging/3.0.0.Beta4/jboss-logging-3.0.0.Beta4.jar:/Users/buddy/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-javadoc.jar:/Applications/IntelliJ IDEA 11.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain com.google.gwt.dev.DevMode -war /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www -remoteUI 7901:IntelliJIdea -startupUrl App.html com.redhat.gps.juhoffma.App

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>

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.

INFO [Version] WELD-000900 1.1.5 (Final)

INFO [Bootstrap] WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

[WARN] Server class 'javax.ejb.EJB' could not be found in the web app, but was found on the system classpath

   [WARN] Adding classpath entry 'file:/Users/buddy/.m2/repository/org/jboss/ejb3/jboss-ejb3-api/3.1.0/jboss-ejb3-api-3.1.0.jar' to the web app classpath for this session

INFO [CDIExtensionPoints] configuring Errai CDI

INFO [CDIExtensionPoints] Created Errai-CDI context: 0589d110-9412-4477-ae4a-09de48fc747f

INFO [DevModeCDIBootstrap] Jetty detected, JSR-299 injection will be available in Servlets and Filters. Injection into Listeners is not supported.

INFO [ErraiJNDI] searching to see if ErraiService is already bound...

INFO [ErraiJNDI] attempting to bind ErraiService to JNDI context: java:global/ErraiService ... failed: global is not bound

INFO [ErraiJNDI] attempting to bind ErraiService to JNDI context: java:comp/env/ErraiService ... failed: env is not bound

INFO [ErraiJNDI] attempting to bind ErraiService to JNDI context: java:comp/ErraiService ... success.

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/classes/

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-bus-2.0.Beta1.jar

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-cdi-client-2.0.Beta1.jar

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-ioc-2.0.Beta1.jar

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-marshalling-2.0.Beta1.jar

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-tools-2.0.Beta1.jar

INFO [PackagingUtil] identifying deployment type for uri: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www/WEB-INF/lib/errai-weld-integration-2.0.Beta1.jar

INFO [Reflections] Reflections took 864 ms to scan 7 urls, producing 278 keys and 980 values

INFO [Reflections] Reflections took 415 ms to scan 7 urls, producing 278 keys and 980 values

INFO [OrderedBootstrap] Bootstrap Errai

INFO [OrderedBootstrap] Working directory: /Users/buddy/Library/Caches/IntelliJIdea11/gwt/manage.fdd5ab04/manage.2ddebfaa/run/www

INFO [DefaultComponents] authentication adapter configured: org.jboss.errai.bus.server.security.auth.JAASAdapter

INFO [DefaultComponents] using dispatcher implementation: org.jboss.errai.bus.server.SimpleDispatcher

INFO [DefaultComponents] using session provider implementation: org.jboss.errai.bus.server.HttpSessionProvider

INFO [LoadExtensions] searching for Errai extensions ...

INFO [LoadExtensions] found extension org.jboss.errai.tools.monitoring.MonitorExtension

INFO [LoadExtensions] added extension binding: org.jboss.errai.bus.server.security.auth.AuthenticationAdapter

INFO [AuthenticationRules] authentication for all requests required, adding rule ...

INFO [DiscoverServices] auto-discovery of services disabled.

INFO [BootstrapContext] Running deferred bootstrap tasks ...

INFO [OrderedBootstrap] Initialization complete

INFO [ErraiJNDI] found ErraiService bound at: java:comp/ErraiService

Starting Jetty on port 8888

   [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 com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:463)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)

          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)

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

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:83)

          at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)

          ... 25 more

Caused by: java.lang.RuntimeException: Failed to locate BeanManager

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:208)

          at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:15)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:109)

          ... 27 more

Caused by: javax.naming.NameNotFoundException; remaining name 'BeanManager'

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:578)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:665)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)

          at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:195)

          ... 29 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:112)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:83)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:463)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)

          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)

          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 locate BeanManager

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:208)

          at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:15)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:109)

          ... 27 more

Caused by: javax.naming.NameNotFoundException; remaining name 'BeanManager'

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:578)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:665)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)

          at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:195)

          ... 29 more

   [WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@399af260{/,/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 com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:463)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)

          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)

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

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:83)

          at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)

          ... 25 more

Caused by: java.lang.RuntimeException: Failed to locate BeanManager

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:208)

          at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:15)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:109)

          ... 27 more

Caused by: javax.naming.NameNotFoundException; remaining name 'BeanManager'

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:578)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:665)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)

          at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:195)

          ... 29 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:112)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:83)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:463)

          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 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)

          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)

          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 locate BeanManager

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:208)

          at org.jboss.errai.cdi.server.CDIServiceLocator.locateService(CDIServiceLocator.java:15)

          at org.jboss.errai.bus.server.servlet.AbstractErraiServlet.init(AbstractErraiServlet.java:109)

          ... 27 more

Caused by: javax.naming.NameNotFoundException; remaining name 'BeanManager'

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:578)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:665)

          at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)

          at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.jboss.errai.cdi.server.CDIServerUtil.lookupBeanManager(CDIServerUtil.java:195)

          ... 29 more

Dev Mode initialized. Startup URL:

http://127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997

[ERROR] 503 - GET /App.html?gwt.codesvr=127.0.0.1:9997 (127.0.0.1) 1315 bytes

   Request headers

      Host: 127.0.0.1:8888

      Connection: keep-alive

      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

      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

      Accept-Encoding: gzip,deflate,sdch

      Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4

      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

      Cookie: JSESSIONID=1crtu1spoma9r10jz2nj1gjucw

      If-Modified-Since: Sat, 17 Mar 2012 20:48:26 GMT

   Response headers

      Content-Type: text/html; charset=iso-8859-1

      Content-Length: 1315

[ERROR] 503 - GET /favicon.ico (127.0.0.1) 1318 bytes

   Request headers

      Host: 127.0.0.1:8888

      Connection: keep-alive

      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

      Accept: */*

      Accept-Encoding: gzip,deflate,sdch

      Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4

      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

      Cookie: JSESSIONID=1crtu1spoma9r10jz2nj1gjucw

   Response headers

      Content-Type: text/html; charset=iso-8859-1

      Content-Length: 1318

 

 

Process finished with exit code 143

 

BUT when I run mvn gwt:run it works. What am I doing wrong in intellij IDEA?