hi norbert,

you don't need to configure the listener on your own.
it's configured in \META-INF\jsf_core.tld (impl jar of mojarra).

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


2012/3/8 Norbert Lazzeri <[email protected]>

> Ok,
>
> i updated now to openwebbeans 1.1.3
>
> now i managed to get my webapp working, however i had to remove the
>
> <listener>
>    <listener-class>com.sun.faces.**config.ConfigureListener</**
> listener-class>
> </listener>
> from my web.xml
>
> if i dont i get:
> Mär 08, 2012 1:21:13 PM org.apache.catalina.core.**StandardContext
> listenerStart
>
> Schwerwiegend: Exception sending context initialized event to listener
> instance of class org.apache.webbeans.servlet.**
> WebBeansConfigurationListener
> java.lang.**ExceptionInInitializerError
>        at java.lang.Class.forName0(**Native Method)
>        at java.lang.Class.forName(Class.**java:264)
>
> what does this mean? does my faces.config.ConfigureListener interfere with
> the openwebbeans jsf plugin? is it ok just not adding it?
>
> cheers
>
> Am 08.03.2012, 12:37 Uhr, schrieb Norbert Lazzeri <
> norbert.lazzeri@rise-world.**com <[email protected]>>:
>
>
>  Hi,
>>
>> thanks for the quick reply. first off: i found the reason for the
>> AnnotationDB-**CrossReferenceException. it was my fault because there
>> where JUnit files with JUnit annotations on the classpath. removing these
>> solved the problem, but now created another one
>>
>>  Are you using mojarra or MyFaces as JSF container?
>>>
>> yes we do use mojarra. is that a problem? would be glad if myfaces-extcdi
>> would work with the mojarra-container (that would be the next step), dont
>> wanna change too much in our system if i dont have to.
>> in web-inf/lib i have
>> jsf-impl.jar
>> jsf-api.jar
>>
>> im asking, because now the exception looks like:
>> Mär 08, 2012 12:31:04 PM com.sun.faces.config.**ConfigureListener
>> contextInitialized
>> Schwerwiegend: Critical error during deployment:
>> com.sun.faces.mgbean.**ManagedBeanCreationException: Bei der
>> Ressourcen-Einspeisung auf dem verwalteten Bean fileEntryLoader ist ein
>> Fehler aufgetreten.
>>        at com.sun.faces.mgbean.**BeanBuilder.injectResources(**
>> BeanBuilder.java:211)
>>        at com.sun.faces.mgbean.**BeanBuilder.build(BeanBuilder.**
>> java:103)
>>        at com.sun.faces.mgbean.**BeanManager.createAndPush(**
>> BeanManager.java:409)
>>        at com.sun.faces.mgbean.**BeanManager.create(**
>> BeanManager.java:269)
>> [..]
>> Caused by: 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 <[email protected]>:
>>
>>  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<[email protected]>
>>>> >
>>>> To: [email protected]
>>>> 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.util.concurrent.**ThreadPoolExecutor.runWorker(**
>>>> ThreadPoolExecutor.java:1110)
>>>>    at
>>>> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**
>>>> ThreadPoolExecutor.java:603)
>>>>    at java.lang.Thread.run(Thread.**java:722)
>>>> Caused by:
>>>> org.apache.webbeans.corespi.**scanner.AnnotationDB$**
>>>> CrossReferenceException
>>>>    at
>>>> org.apache.webbeans.corespi.**scanner.AnnotationDB.**
>>>> crossReferenceMetaAnnotations(**AnnotationDB.java:173)
>>>>    at
>>>> org.apache.webbeans.corespi.**scanner.**AbstractMetaDataDiscovery.**
>>>> crossReferenceBeans(**AbstractMetaDataDiscovery.**java:229)
>>>>    ... 14 more
>>>>
>>>> Mär 08, 2012 2:00:22 AM
>>>> org.apache.webbeans.servlet.**WebBeansConfigurationListener
>>>> contextInitialized
>>>> Schwerwiegend: An error occured while starting application context path
>>>> :
>>>> [/documents]
>>>> Mär 08, 2012 2:00:22 AM org.apache.catalina.core.**StandardContext
>>>> listenerStart
>>>> Schwerwiegend: Exception sending context initialized event to listener
>>>> instance
>>>> of class org.apache.webbeans.servlet.**WebBeansConfigurationListener
>>>> 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.util.concurrent.**ThreadPoolExecutor.runWorker(**
>>>> ThreadPoolExecutor.java:1110)
>>>>    at
>>>> java.util.concurrent.**ThreadPoolExecutor$Worker.run(**
>>>> ThreadPoolExecutor.java:603)
>>>>    at java.lang.Thread.run(Thread.**java:722)
>>>> Caused by:
>>>> org.apache.webbeans.corespi.**scanner.AnnotationDB$**
>>>> CrossReferenceException
>>>>    at
>>>> org.apache.webbeans.corespi.**scanner.AnnotationDB.**
>>>> crossReferenceMetaAnnotations(**AnnotationDB.java:173)
>>>>    at
>>>> org.apache.webbeans.corespi.**scanner.**AbstractMetaDataDiscovery.**
>>>> crossReferenceBeans(**AbstractMetaDataDiscovery.**java:229)
>>>>    ... 14 more
>>>>
>>>

Reply via email to