• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Strange deploy error

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic