1 Reply Latest reply on Sep 15, 2005 6:10 PM by bill.burke

    schema failure

    bill.burke

      Ok, I put bean_deployer_1_0.xsd in my classpath and the WARNING I got before about not being able to find it disappeared, however, I got the following exception from the following XML. The XSD looks correct as mixed=true. Do you have any ideas?

      <?xml version="1.0" encoding="UTF-8"?>
      
      <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
       xmlns="urn:jboss:bean-deployer">
       <bean name="jboss.mq:service=JMSProviderLoader,name=JMSProvider" class="org.jboss.jms.jndi.JNDIProviderAdapter">
       <property name="factoryRef">java:/XAConnectionFactory</property>
       <property name="queueFactoryRef">java:/XAConnectionFactory</property>
       <property name="topicFactoryRef">java:/XAConnectionFactory</property>
      


      run:
       [java] Exception in thread "main" java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type. 2.4.b: The content of element 'property' is not complete. One of '{"urn:jboss:bean-deployer":value, "urn:jboss:bean-deployer":collection, "urn:jbos s:bean-deployer":list, "urn:jboss:bean-deployer":set, "urn:jboss:bean-deployer":array, "urn:jboss:bean-deployer":map, "urn:jboss:bean-deployer":inj ect, "urn:jboss:bean-deployer":null, WC[##other:"urn:jboss:bean-deployer"]}' is expected. @ file:/home/wburke/jboss/jboss-head/ejb3/jboss-EJB-3.0_E mbeddable_ALPHA_2/conf/jboss-jms-beans.xml[7,71]
       [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:59)
       [java] at org.jboss.tutorial.mdbstandalone.Main.main(Main.java:35)
       [java] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.b: The content of element 'property' is not complete. One of '{"urn:jboss:bean-deployer":value, "urn:jboss:bean-deployer":collection, "urn:jboss:bean-deployer":list, "urn:jboss:bean-deplo yer":set, "urn:jboss:bean-deployer":array, "urn:jboss:bean-deployer":map, "urn:jboss:bean-deployer":inject, "urn:jboss:bean-deployer":null, WC[##ot her:"urn:jboss:bean-deployer"]}' is expected. @ file:/home/wburke/jboss/jboss-head/ejb3/jboss-EJB-3.0_Embeddable_ALPHA_2/conf/jboss-jms-beans.xml[7 ,71]
       [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:125)
       [java] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:105)
       [java] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:63)
       [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:54)
       [java] ... 1 more
       [java] Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.b: The content of element 'property' is not complete. One of '{"urn:jboss:bea n-deployer":value, "urn:jboss:bean-deployer":collection, "urn:jboss:bean-deployer":list, "urn:jboss:bean-deployer":set, "urn:jboss:bean-deployer":a rray, "urn:jboss:bean-deployer":map, "urn:jboss:bean-deployer":inject, "urn:jboss:bean-deployer":null, WC[##other:"urn:jboss:bean-deployer"]}' is e xpected. @ file:/home/wburke/jboss/jboss-head/ejb3/jboss-EJB-3.0_Embeddable_ALPHA_2/conf/jboss-jms-beans.xml[7,71]
       [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:232)
       [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
       [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source)
       [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source)