• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic