私はこのバインディングファイルを持っています
<?xml version="1.0"?>
<xml-bindings
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm"
package-name="com">
<java-types>
<java-type name="com.test.Root">
<xml-root-element name="root"/>
<java-attributes>
<xml-element java-attribute="element" xml-path="element" type="com.Element"/>
</java-attributes>
</java-type>
<java-type name="com.Element"></java-type>
</java-types>
パッケージ構造とクラスの場所は、このバインディング ファイルから読み取ることができます。非整列化すると、次の例外が発生します。問題を解決する理由と方法を教えてもらえますか? パッケージ構造を変更したくありません。
JAXBException: The java-type with package [com.test] is not allowed in the bindings file keyed on package [com].