Jboss is the most stupid server I have worked with. It's error messages are at least quirk.
Anyway. I have a bean CMP, and what I'm trying to do is to use Hypersonic SQL identity feature.
When I deploy jbosscmp-jdbc.xml file:
<entity>
<ejb-name>
Test</ejb-name>
<unknown-pk>
</unknown-pk>
<table-name>test</table-name>
<cmp-field>
<field-name>testid</field-name>
<column-name>testid</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>INTEGER</sql-type>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
<column-name>name</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR</sql-type>
</cmp-field>
</entity>
Which is obvoiusly wrong I can see an error:
The content of element type "unknown-pk" is incomplete, it must match "<all subtags written here>".
So I change the content of unknown-pk tag to:
<unknown-pk>
<unknown-pk-class>java.lang.Integer</unknown-pk-class>
<field-name>testid</field-name>
<column-name>testid</column-name>
<jdbc-type>INTEGER</jdbc-type>
<sql-type>INTEGER</sql-type>
<auto-increment/>
</unknown-pk>
And while deploy another error message appears:
The content of element type "entity" must match "<all subtags written here>".
What an I doing wrong???
I tried to add Xdoclet tags to autogenerate this file, but Xdoclet doesn't generate this tag's. I also dont know why??
Any help will be appreciated.