1 Reply Latest reply on Feb 10, 2012 5:36 PM by Jason Porter

    Seam 3.1.0.Final and OWB

    brvno brvnic Newbie

      Hello im trying to change weld with openweb beans, in order to compare performances. However that is not easy. Because i keep getting all sorts of exceptions. In the end i just took a simple openwebbeans-jsf archetype and added solder.

      With solder only everything works. However when i start adding other modules, this is when everything gets crazy.

       

      For example if i only add seam-faces i get the folowing exception during deployment:

       

      eb 10, 2012 11:14:14 PM org.jboss.solder.logging.Logger info

      INFO: Reading XML file: jar:file:/D:/etc/tomcat/apache-tomcat-7.0.25/webapps/bla/WEB-INF/lib/seam-faces-api-3.1.0.Final.jar!/META-INF/beans.xml

      Feb 10, 2012 11:14:14 PM org.apache.webbeans.config.BeansDeployer deploy

      SEVERE:

      java.lang.RuntimeException: org.apache.webbeans.corespi.scanner.AnnotationDB$CrossReferenceException

          at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.crossReferenceBeans(AbstractMetaDataDiscovery.java:249)

          at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClasses(AbstractMetaDataDiscovery.java:197)

          at org.apache.webbeans.config.BeansDeployer.checkStereoTypes(BeansDeployer.java:732)

          at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:160)

          at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:127)

          at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:88)

          at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)

          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:897)

          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873)

          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)

          at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)

          at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1599)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

          at java.util.concurrent.FutureTask.run(FutureTask.java:138)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

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

          ... 20 more

       

      When i try security i get other issues. But ok lets just focus on this.

       

      I have attached 7z-iped small application with just pom, web xml, and couple of files.

      If anyone would have time to look into it i would be very greatful.

       

      Thanks in advance,

      B.