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