9 Replies Latest reply on Jan 4, 2009 1:29 PM by Alexander Bell

    webbeans 1.0 alpha - Error creating WebBeanDiscovery providerorg.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl

    Arif Rachim Newbie
      Hi Guys,

      I tried the Webbeans alpha and hits error deploying webbeans webbeans-numberguess.

      I assume I need to put -Dorg.jboss.webbeans.bootstrap.webBeanDiscovery manually. But what class name I should put into env variable ??


      Cherrs.
      arif@java:~/Applications/jboss-5.0.0.GA/bin$ ./run.sh
      =========================================================================

        JBoss Bootstrap Environment

        JBOSS_HOME: /home/arif/Applications/jboss-5.0.0.GA

        JAVA: /usr/lib/jvm/java-6-sun-1.6.0.10/bin/java

        JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.webbeans.bootstrap.webBeanDiscovery=org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery -Djava.net.preferIPv4Stack=true

        CLASSPATH: /home/arif/Applications/jboss-5.0.0.GA/bin/run.jar:/usr/lib/jvm/java-6-sun-1.6.0.10/lib/tools.jar

      =========================================================================

      00:31:32,536 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
      00:31:32,537 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)
      00:31:32,537 INFO  [ServerImpl] Bootstrap URL: null
      ....
      00:16:22,547 INFO  [TomcatDeployment] deploy, ctxPath=/webbeans-numberguess, vfsUrl=webbeans-numberguess.war
      00:16:23,061 WARN  [ServletLifecycle] Error creating WebBeanDiscovery providerorg.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.jboss.webbeans.servlet.ServletLifecycle.getWebBeanDiscovery(ServletLifecycle.java:150)
              at org.jboss.webbeans.servlet.ServletLifecycle.beginApplication(ServletLifecycle.java:65)
              at org.jboss.webbeans.servlet.WebBeansListener.contextInitialized(WebBeansListener.java:48)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
      ........

      Caused by: java.lang.NullPointerException
              at org.jboss.webbeans.integration.jbossas.ejb3.EjbDiscoveryEnvironment.lookup(EjbDiscoveryEnvironment.java:123)
              at org.jboss.webbeans.integration.jbossas.ejb3.EjbDiscoveryEnvironment.<init>(EjbDiscoveryEnvironment.java:41)
              at org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl.<init>(WebBeanDiscoveryImpl.java:25)
              ... 65 more
      00:16:23,063 INFO  [WebBeansBootstrap] Starting Web Beans RI 1.0.0.ALPHA1
      00:16:23,063 ERROR [[/webbeans-numberguess]] Exception sending context initialized event to listener instance of class org.jboss.webbeans.servlet.WebBeansListener
      java.lang.IllegalStateException: No WebBeanDiscovery provider found, you need to implement the org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery interface, and tell the RI to use it by specifying -Dorg.jboss.webbeans.bootstrap.webBeanDiscovery=<classname>
              at org.jboss.webbeans.bootstrap.WebBeansBootstrap.boot(WebBeansBootstrap.java:251)
              at org.jboss.webbeans.servlet.ServletLifecycle.beginApplication(ServletLifecycle.java:65)
              at org.jboss.webbeans.servlet.WebBeansListener.contextInitialized(WebBeansListener.java:48)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
              at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
              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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)