Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12335

Seam config validation errors not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 4.0.0.Alpha1
    • cdi-extensions
    • None
    • Hide

      You have to import project, not create a new one. In my case project is simple dynamic web project with one java class Report.java:

      package test;
      
      public class Report {
      	
      	private String value;
      
      	public Report() {
      		
      	}
      	
      	public void send(int value) {
      		
      	}
      
      }
      

      and seam-beans.xml:

      <?xml version="1.0"?>
      <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd"
      	xmlns:s="urn:java:ee" xmlns:r="urn:java:test">
      
      	<r:Report>
      		
      		<r:valueBroken>
      		</r:valueBroken>
      		
      		<s:parameters>
      			<s:int/>
      		</s:parameters>
      		
      		<r:send>
      			<s:Produces/>
      			<s:parameters>
      				<s:String/>
      			</s:parameters>
      		</r:send>
      		
      	</r:Report>
      	
      	<r:Broken>
      	</r:Broken>
      		
      </beans>
      

      If you import this project into fresh workspace, clean the project, there are no errors found. However, if you edit seam-beans.xml and save it, 4 errors found are correctly found.

      Show
      You have to import project, not create a new one. In my case project is simple dynamic web project with one java class Report.java: package test; public class Report { private String value; public Report() { } public void send( int value) { } } and seam-beans.xml: <?xml version= "1.0" ?> <beans xmlns= "http: //java.sun.com/xml/ns/javaee" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http: //java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd" xmlns:s= "urn:java:ee" xmlns:r= "urn:java:test" > <r:Report> <r:valueBroken> </r:valueBroken> <s:parameters> <s: int /> </s:parameters> <r:send> <s:Produces/> <s:parameters> <s: String /> </s:parameters> </r:send> </r:Report> <r:Broken> </r:Broken> </beans> If you import this project into fresh workspace, clean the project, there are no errors found. However, if you edit seam-beans.xml and save it, 4 errors found are correctly found.
    • Workaround Exists
    • Hide

      You must edit something in Seam configuration file and save it - this triggers seam validator.

      Show
      You must edit something in Seam configuration file and save it - this triggers seam validator.

      Seam config validation errors are not found when importing the project. Cleaning the build doesn't help either.

            scabanovich Viacheslav Kabanovich (Inactive)
            jjankovi Jaroslav Jankovič (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: