Rebecabfv opened a new issue, #1159:
URL: https://github.com/apache/camel-website/issues/1159

   ### What happened?
   
   I'm getting this error:
   `org.xml.sax.SAXParseException; lineNumber: 4268; columnNumber: 51; 
cos-nonambig: "http://camel.apache.org/schema/spring":onFallback and 
"http://camel.apache.org/schema/spring":onFallback (or elements from their 
substitution group) violate "Unique Particle Attribution". During validation 
against this schema, ambiguity would be created for those two particles.`
   
   It complains about duplicate "onFallback" in camel-spring.xsd.  I opened a 
question on Stack Overflow for it, follow it for more information: 
https://stackoverflow.com/questions/78156558/saxparseexception-with-camel-4/78158626#78158626
   
   ### Steps to reproduce
   
   ```
   import com.google.common.io.Resources;
   
   import javax.xml.XMLConstants;
   import javax.xml.transform.Source;
   import javax.xml.transform.stream.StreamSource;
   import javax.xml.validation.SchemaFactory;
   import java.io.ByteArrayInputStream;
   import java.net.URL;
   import java.util.ArrayList;
   import java.util.List;
   
   
   public class Camel
   {
   
       public static void main( String[] args ) throws Exception
       {
          SchemaFactory schemaFactory = 
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
   
          List<Source> tmp = new ArrayList();
   
          String loc = "camel-spring.xsd";
   
          URL url = Resources.getResource(loc);
          byte[] bytes = Resources.toByteArray(url);
          StreamSource src = new StreamSource(new ByteArrayInputStream(bytes));
          tmp.add(src);
   
          schemaFactory.newSchema((Source[]) tmp.toArray(new 
Source[tmp.size()]));
       }
   }
   ```
   ### Camel K version
   
   Getting this error with all versions after Camel 4


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to