title: expected rules for TYPE_MESSAGE but got TYPE_ENUM
body: <p>I have isolated my code with the following, and still got this error:
  &quot;expected rules for TYPE_MESSAGE but got TYPE_ENUM&quot; on ValidateAppDataAndGeneratePDFReply, VerificationResult.</p>
  <pre><code>&lt;xs:complexType name=&quot;VerificationResultType&quot;&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name=&quot;VerificationPassed&quot; type=&quot;xs:boolean&quot;/&gt;
          &lt;xs:element name=&quot;FunctionalError&quot; type=&quot;xs:string&quot; nillable=&quot;true&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
          &lt;xs:element name=&quot;ErrorPointer&quot; type=&quot;xs:string&quot;/&gt;
          &lt;xs:element name=&quot;ErrorType&quot; type=&quot;xs:string&quot;/&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name=&quot;ValidateApplicationDataReply&quot;&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name=&quot;ApplicationVerificationResult&quot; type=&quot;this:VerificationResultType&quot;/&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name=&quot;ValidateAppDataAndGeneratePDFReply&quot;&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name=&quot;VerificationResult&quot; type=&quot;this:VerificationResultType&quot;/&gt;
          &lt;xs:element name=&quot;Url&quot; type=&quot;xs:string&quot;/&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  <p>I have tried to reorder the VerificationResultType or comment out the complexTypes that using it one by one. but the issue persists.</p>
  <p>Pom.xml dependencies:</p>
  <pre><code>    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt;
          &lt;artifactId&gt;protobuf-java&lt;/artifactId&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
          &lt;artifactId&gt;jaxb2-basics&lt;/artifactId&gt;
          &lt;version&gt;0.12.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  <p>Proto version 2</p>