File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Strange deploy error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Strange deploy error" Watch "Strange deploy error" New topic
Author

Strange deploy error

Hrabia Paulus
Greenhorn

Joined: Aug 08, 2002
Posts: 5
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.


Paulus...
 
 
subject: Strange deploy error
 
Threads others viewed
CMP Entity Beans and Pointbase
AutoIncrement primaryKey
Problem with CMP
cmp identity_insert
won't create tables with jaws.xml
developer file tools