3 Replies Latest reply on May 9, 2013 4:27 AM by Yong Hao Gao

    2.3.0.CR2 - Example clustered-jgroups is not working

    Vikram Vis Newbie

      The example/jms/clustered-jgroups is failing on start. Looks like the schema validation for Hornetq-configuration.xml is not updated to include jgroups.

       

      Exception ;

      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'broadcast-period'. One of '{"urn:hornetq":local-bind-address, "urn:hornetq":local-bind-port, "urn:hornetq":group-address}' is expected.

                at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)

                at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)

                at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)

                at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)

                at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)

                at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)

                at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1812)

                at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:711)

                at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:274)

                at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:241)

                at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:187)

                at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:104)

                at javax.xml.validation.Validator.validate(Validator.java:127)

                at org.hornetq.utils.XMLUtil.validate(XMLUtil.java:479)

       

      Thanks,

      Vikram

        • 1. Re: 2.3.0.CR2 - Example clustered-jgroups is not working
          Vikram Vis Newbie

          I am using version 2.3.0.CR2

           

          Basically now I am not able to start server with jgroups configured.

           

          -Vikram

          • 2. Re: 2.3.0.CR2 - Example clustered-jgroups is not working
            Vikram Vis Newbie

            Any information on this would be extremely helpfull.

             

            Thanks,

            -Vikram

            • 3. Re: 2.3.0.CR2 - Example clustered-jgroups is not working
              Yong Hao Gao Master

              There is a problem with the xsd. The fix hasn't been committed yet. You can fix it yourself if you like:

               

              --- a/hornetq-server/src/main/resources/schema/hornetq-configuration.xsd

              +++ b/hornetq-server/src/main/resources/schema/hornetq-configuration.xsd

              @@ -772,13 +772,13 @@

                       <!-- XXX these 2 local-* here...-->

                       <xsd:element ref="local-bind-address"  maxOccurs="1" minOccurs="0" />

                       <xsd:element ref="local-bind-port" maxOccurs="1" minOccurs="0"/>

              -        <xsd:element name="group-address" type="xsd:string" maxOccurs="1" minOccurs="1">

              +        <xsd:element name="group-address" type="xsd:string" maxOccurs="1" minOccurs="0">

                         <xsd:annotation>

                           <xsd:documentation>multicast address to which the data will be broadcast</xsd:documentation>

                         </xsd:annotation>

                       </xsd:element>

               

              -        <xsd:element name="group-port" type="xsd:int" maxOccurs="1" minOccurs="1">

              +        <xsd:element name="group-port" type="xsd:int" maxOccurs="1" minOccurs="0">