9 Replies Latest reply: Mar 23, 2012 12:08 PM by Ronaldo Campos RSS

CDI Builder error while parse seam-beans.xml

Ronaldo Campos Newbie

I started haven trouble when I added to seam-beans.xml some additional config. My seam-beans.xml:

 

 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:s="urn:java:ee" 
     xmlns:t="urn:java:org.jboss.seam.transaction"
     xmlns:ft="urn:java:org.jboss.seam.faces.transaction"
     xmlns:sc="urn:java:org.jboss.solder.core"
     xsi:schemaLocation="
      http://java.sun.com/xml/ns/javaee
      http://docs.jboss.org/cdi/beans_1_0.xsd">
      
     <t:SeSynchronizations>
          <s:modifies />
     </t:SeSynchronizations>
     
     <t:EntityTransaction>
          <s:modifies />
     </t:EntityTransaction>


          <sc:Veto>
                    <s:Qualifier />
          </sc:Veto>
  
          <ft:TransactionPhaseListener>
                    <s:replaces />
                    <sc:Veto />
          </ft:TransactionPhaseListener>
</beans>

 

 

The error:

 

Errors occurred during the build.
Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'VeereJSF'.
java.lang.NullPointerException

 

Eclipse log:

 

!MESSAGE Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'VeereJSF'.
!STACK 0
java.lang.NullPointerException
          at org.jboss.tools.cdi.seam.config.core.ConfigDefinitionContext.addAnnotation(ConfigDefinitionContext.java:149)
          at org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder.scanAnnotation(SeamDefinitionBuilder.java:140)
          at org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder.scanElement(SeamDefinitionBuilder.java:101)
          at org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder.scanRoot(SeamDefinitionBuilder.java:85)
          at org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder.createDefinition(SeamDefinitionBuilder.java:75)
          at org.jboss.tools.cdi.seam.config.core.CDISeamConfigExtension.buildDefinitions(CDISeamConfigExtension.java:147)
          at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:227)
          at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
          at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
          at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
          at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
          at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
          at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

 

 

My app is running on Tomcat 7 normally, but CDI Builder keeps throwing this error and I havo no code completitions on my JSF pages. Is it a bug?