com.sun.faces.spi.InjectionProviderException: > java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:84) > at > com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205) > ... 20 more > Caused by: java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:82) > ... 21 more > > > so ConfigureListener which worked fine with weld, now causes some > problems. > > >> I also have the following geronimo jars in my ... > i dont have the > geronimo-validation_1.0_spec-1.1.jar > in my lib-folder. if i do that, hibernate starts complaining he cannot > find his validator-classes. i dont have the exact exception in my head > right now, however the app cant startup because of hibernate. > > > i didnt update to the newest openwebbeans yet, maybe ill give it a try > later this day. > >> Maybe you still have other weld jars lying around? > im sure, there was only the weld-servlet.jar which contained all > dependencies. > > > > thanks, > norbert > > > > Am 08.03.2012, 08:45 Uhr, schrieb Mark Struberg <struberg@yahoo.de>: > >> Found some time to do more evaluation: >> >> The openwebbeans-* packages are fine for a webapp. >> >> I also have the following geronimo jars in my >> WEB-INF/libgeronimo-atinject_1.0_spec-1.0.jar >> geronimo-jcdi_1.0_spec-1.0.jar >> geronimo-interceptor_1.1_spec-1.0.jar >> geronimo-validation_1.0_spec-1.1.jar >> >> the following are most probably transient dependencies of openjpa: >> geronimo-jpa_2.0_spec-1.1.jar geronimo-jms_1.1_spec-1.1.1.jar >> geronimo-jta_1.1_spec-1.1.1.jar >> >> plus I have >> javassist-3.12.0.GA.jar >> scannotation-1.0.2.jar >> >> Are you using mojarra or MyFaces as JSF container? >> I'm asking because of >> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >> >> Many of us are available on irc.freenode.net #openwebbeans as well btw. >> >> Maybe you still have other weld jars lying around? >> >> LieGrue, >> strub >> >> >> >> ----- Original Message ----- >>> From: Norbert Lazzeri <norbert.lazzeri@rise-world.com> >>> To: user@openwebbeans.apache.org >>> Cc: >>> Sent: Thursday, March 8, 2012 2:28 AM >>> Subject: AnnotationDB-CrossReferenceException on startup >>> >>> Hello, >>> >>> im trying to migrate our icefaces2/jsf2.0 project from Weld to >>> OpenWebBeans. in >>> a second step i want to integrate CODI (mostly for the CDI-ViewScope), >>> but i >>> already have problems with integrating OpenWebBeans itself. the >>> project is >>> ant-managed and maven is no option on this project. so i really need >>> to get my >>> dependencies right which seams to be quite cumbersome.. >>> >>> What i did is deleting the weld-servlet.jar and replaced it by the >>> following >>> jar-files >>> >>> openwebbeans-impl-1.1.0.jar >>> openwebbeans-jsf-1.1.0.jar >>> openwebbeans-resource-1.1.0.jar >>> openwebbeans-spi-1.1.0.jar >>> openwebbeans-web-1.1.0.jar >>> geronimo-atinject_1.0_spec-1.0.jar >>> geronimo-interceptor_1.1_spec-1.0.jar >>> geronimo-jcdi_1.0_spec-1.0.jar >>> geronimo-jta_1.1_spec-1.1.1.jar >>> javassist-3.12.0.GA.jar >>> scannotation-1.0.2.jar >>> >>> in my web.xml i have the following entries which i compared to a >>> maven-archetype >>> generated project: >>> <listener> >>> >>> <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class> >>> </listener> >>> <listener> >>> >>> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >>> </listener> >>> and the >>> <servlet> >>> <servlet-name>Faces Servlet</servlet-name> >>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >>> </servlet> >>> >>> >>> and some more listener/servlets related to our project and other >>> libraries than >>> faces and webbeans. >>> >>> >>> we are using tomcat 7 >>> >>> the myfaces-archtype runs with no problems on tomcat. i guess it is >>> some >>> jar-conflict since there is really not much configuration to do.. is >>> there >>> something to be aware of when i have jsf-api and jsf-impl in my >>> lib-folder? >>> >>> when i start the server, i get the following exceptions. i really cant >>> find >>> anything related to this CrossReferenceException. I would really >>> appreciate any >>> suggestions: >>> >>> java.lang.RuntimeException: >>> org.apache.webbeans.corespi.scanner.AnnotationDB$CrossReferenceException >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.crossReferenceBeans(AbstractMetaDataDiscovery.java:233) >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClasses(AbstractMetaDataDiscovery.java:200) >>> at >>> org.apache.webbeans.config.BeansDeployer.checkStereoTypes(BeansDeployer.java:712) >>> at >>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:158) >>> at >>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124) >>> at >>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:77) >>> at >>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:81) >>> at >>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)

openwebbeans-user | Norbert Lazzeri | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: AnnotationDB-CrossReferenceException on startup

    openwebbeans-user | 5 years ago | Norbert Lazzeri
    com.sun.faces.spi.InjectionProviderException: > java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:84) > at > com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205) > ... 20 more > Caused by: java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:82) > ... 21 more > > > so ConfigureListener which worked fine with weld, now causes some > problems. > > >> I also have the following geronimo jars in my ... > i dont have the > geronimo-validation_1.0_spec-1.1.jar > in my lib-folder. if i do that, hibernate starts complaining he cannot > find his validator-classes. i dont have the exact exception in my head > right now, however the app cant startup because of hibernate. > > > i didnt update to the newest openwebbeans yet, maybe ill give it a try > later this day. > >> Maybe you still have other weld jars lying around? > im sure, there was only the weld-servlet.jar which contained all > dependencies. > > > > thanks, > norbert > > > > Am 08.03.2012, 08:45 Uhr, schrieb Mark Struberg <struberg@yahoo.de>: > >> Found some time to do more evaluation: >> >> The openwebbeans-* packages are fine for a webapp. >> >> I also have the following geronimo jars in my >> WEB-INF/libgeronimo-atinject_1.0_spec-1.0.jar >> geronimo-jcdi_1.0_spec-1.0.jar >> geronimo-interceptor_1.1_spec-1.0.jar >> geronimo-validation_1.0_spec-1.1.jar >> >> the following are most probably transient dependencies of openjpa: >> geronimo-jpa_2.0_spec-1.1.jar geronimo-jms_1.1_spec-1.1.1.jar >> geronimo-jta_1.1_spec-1.1.1.jar >> >> plus I have >> javassist-3.12.0.GA.jar >> scannotation-1.0.2.jar >> >> Are you using mojarra or MyFaces as JSF container? >> I'm asking because of >> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >> >> Many of us are available on irc.freenode.net #openwebbeans as well btw. >> >> Maybe you still have other weld jars lying around? >> >> LieGrue, >> strub >> >> >> >> ----- Original Message ----- >>> From: Norbert Lazzeri <norbert.lazzeri@rise-world.com> >>> To: user@openwebbeans.apache.org >>> Cc: >>> Sent: Thursday, March 8, 2012 2:28 AM >>> Subject: AnnotationDB-CrossReferenceException on startup >>> >>> Hello, >>> >>> im trying to migrate our icefaces2/jsf2.0 project from Weld to >>> OpenWebBeans. in >>> a second step i want to integrate CODI (mostly for the CDI-ViewScope), >>> but i >>> already have problems with integrating OpenWebBeans itself. the >>> project is >>> ant-managed and maven is no option on this project. so i really need >>> to get my >>> dependencies right which seams to be quite cumbersome.. >>> >>> What i did is deleting the weld-servlet.jar and replaced it by the >>> following >>> jar-files >>> >>> openwebbeans-impl-1.1.0.jar >>> openwebbeans-jsf-1.1.0.jar >>> openwebbeans-resource-1.1.0.jar >>> openwebbeans-spi-1.1.0.jar >>> openwebbeans-web-1.1.0.jar >>> geronimo-atinject_1.0_spec-1.0.jar >>> geronimo-interceptor_1.1_spec-1.0.jar >>> geronimo-jcdi_1.0_spec-1.0.jar >>> geronimo-jta_1.1_spec-1.1.1.jar >>> javassist-3.12.0.GA.jar >>> scannotation-1.0.2.jar >>> >>> in my web.xml i have the following entries which i compared to a >>> maven-archetype >>> generated project: >>> <listener> >>> >>> <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class> >>> </listener> >>> <listener> >>> >>> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >>> </listener> >>> and the >>> <servlet> >>> <servlet-name>Faces Servlet</servlet-name> >>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >>> </servlet> >>> >>> >>> and some more listener/servlets related to our project and other >>> libraries than >>> faces and webbeans. >>> >>> >>> we are using tomcat 7 >>> >>> the myfaces-archtype runs with no problems on tomcat. i guess it is >>> some >>> jar-conflict since there is really not much configuration to do.. is >>> there >>> something to be aware of when i have jsf-api and jsf-impl in my >>> lib-folder? >>> >>> when i start the server, i get the following exceptions. i really cant >>> find >>> anything related to this CrossReferenceException. I would really >>> appreciate any >>> suggestions: >>> >>> java.lang.RuntimeException: >>> org.apache.webbeans.corespi.scanner.AnnotationDB$CrossReferenceException >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.crossReferenceBeans(AbstractMetaDataDiscovery.java:233) >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClasses(AbstractMetaDataDiscovery.java:200) >>> at >>> org.apache.webbeans.config.BeansDeployer.checkStereoTypes(BeansDeployer.java:712) >>> at >>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:158) >>> at >>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124) >>> at >>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:77) >>> at >>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:81) >>> at >>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)

    Root Cause Analysis

    1. com.sun.faces.spi.InjectionProviderException

      > java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:84) > at > com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205) > ... 20 more > Caused by: java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:82) > ... 21 more > > > so ConfigureListener which worked fine with weld, now causes some > problems. > > >> I also have the following geronimo jars in my ... > i dont have the > geronimo-validation_1.0_spec-1.1.jar > in my lib-folder. if i do that, hibernate starts complaining he cannot > find his validator-classes. i dont have the exact exception in my head > right now, however the app cant startup because of hibernate. > > > i didnt update to the newest openwebbeans yet, maybe ill give it a try > later this day. > >> Maybe you still have other weld jars lying around? > im sure, there was only the weld-servlet.jar which contained all > dependencies. > > > > thanks, > norbert > > > > Am 08.03.2012, 08:45 Uhr, schrieb Mark Struberg <struberg@yahoo.de>: > >> Found some time to do more evaluation: >> >> The openwebbeans-* packages are fine for a webapp. >> >> I also have the following geronimo jars in my >> WEB-INF/libgeronimo-atinject_1.0_spec-1.0.jar >> geronimo-jcdi_1.0_spec-1.0.jar >> geronimo-interceptor_1.1_spec-1.0.jar >> geronimo-validation_1.0_spec-1.1.jar >> >> the following are most probably transient dependencies of openjpa: >> geronimo-jpa_2.0_spec-1.1.jar geronimo-jms_1.1_spec-1.1.1.jar >> geronimo-jta_1.1_spec-1.1.1.jar >> >> plus I have >> javassist-3.12.0.GA.jar >> scannotation-1.0.2.jar >> >> Are you using mojarra or MyFaces as JSF container? >> I'm asking because of >> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >> >> Many of us are available on irc.freenode.net #openwebbeans as well btw. >> >> Maybe you still have other weld jars lying around? >> >> LieGrue, >> strub >> >> >> >> ----- Original Message ----- >>> From: Norbert Lazzeri <norbert.lazzeri@rise-world.com> >>> To: user@openwebbeans.apache.org >>> Cc: >>> Sent: Thursday, March 8, 2012 2:28 AM >>> Subject: AnnotationDB-CrossReferenceException on startup >>> >>> Hello, >>> >>> im trying to migrate our icefaces2/jsf2.0 project from Weld to >>> OpenWebBeans. in >>> a second step i want to integrate CODI (mostly for the CDI-ViewScope), >>> but i >>> already have problems with integrating OpenWebBeans itself. the >>> project is >>> ant-managed and maven is no option on this project. so i really need >>> to get my >>> dependencies right which seams to be quite cumbersome.. >>> >>> What i did is deleting the weld-servlet.jar and replaced it by the >>> following >>> jar-files >>> >>> openwebbeans-impl-1.1.0.jar >>> openwebbeans-jsf-1.1.0.jar >>> openwebbeans-resource-1.1.0.jar >>> openwebbeans-spi-1.1.0.jar >>> openwebbeans-web-1.1.0.jar >>> geronimo-atinject_1.0_spec-1.0.jar >>> geronimo-interceptor_1.1_spec-1.0.jar >>> geronimo-jcdi_1.0_spec-1.0.jar >>> geronimo-jta_1.1_spec-1.1.1.jar >>> javassist-3.12.0.GA.jar >>> scannotation-1.0.2.jar >>> >>> in my web.xml i have the following entries which i compared to a >>> maven-archetype >>> generated project: >>> <listener> >>> >>> <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class> >>> </listener> >>> <listener> >>> >>> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >>> </listener> >>> and the >>> <servlet> >>> <servlet-name>Faces Servlet</servlet-name> >>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >>> </servlet> >>> >>> >>> and some more listener/servlets related to our project and other >>> libraries than >>> faces and webbeans. >>> >>> >>> we are using tomcat 7 >>> >>> the myfaces-archtype runs with no problems on tomcat. i guess it is >>> some >>> jar-conflict since there is really not much configuration to do.. is >>> there >>> something to be aware of when i have jsf-api and jsf-impl in my >>> lib-folder? >>> >>> when i start the server, i get the following exceptions. i really cant >>> find >>> anything related to this CrossReferenceException. I would really >>> appreciate any >>> suggestions: >>> >>> java.lang.RuntimeException: >>> org.apache.webbeans.corespi.scanner.AnnotationDB$CrossReferenceException >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.crossReferenceBeans(AbstractMetaDataDiscovery.java:233) >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClasses(AbstractMetaDataDiscovery.java:200) >>> at >>> org.apache.webbeans.config.BeansDeployer.checkStereoTypes(BeansDeployer.java:712) >>> at >>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:158) >>> at >>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124) >>> at >>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:77) >>> at >>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:81) >>> at >>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)

      at java.lang.Thread.run()
    2. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame