Hi,

I'm using jboss-3.2.0RC2 and I want to auto-increment
my PK in MySql.  I followed the format in
jbosscmp-jdbc.xml:

<cmp-field>
   <field-name>jsCode</field-name>
   <column-name>JS_CODE</column-name>
   <jdbc-type>INTEGER</jdbc-type>
   <sql-type>INTEGER(11)</sql-type>
   <auto-increment/>
</cmp-field>
<entity-command name="mysql-get-generated-keys"/>
....

and I keep getting the errors 'Element type
"auto-increment" must be declared'.  Any hints?

Thanks in advance!

Rene

The exact error:

2003-02-26 18:15:14,102 INFO 
[org.jboss.ejb.EntityContainer] Starting
2003-02-26 18:15:14,713 ERROR
[org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
file:/C:/opt/jboss-3.2.0RC2/server/default/tmp/deploy/server/default/deploy/omega.ear/30.omega.ear-contents/ejb-test.jar!/META-INF/jbosscmp-jdbc.xml
process error. Line: 8. Error message: Element type
"entity-command" must be declared.
2003-02-26 18:15:24,107 ERROR
[org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
file:/C:/opt/jboss-3.2.0RC2/server/default/tmp/deploy/server/default/deploy/omega.ear/30.omega.ear-contents/ejb-test.jar!/META-INF/jbosscmp-jdbc.xml
process error. Line: 9. Error message: The content of
element type "defaults" must match
"((datasource,datasource-mapping)?,create-table?,remove-table?,read-only?,read-time-out?,row-locking?,pk-constraint?,fk-constraint?,preferred-relation-mapping?,read-ahead?,list-cache-max?,fetch-size?)".
2003-02-26 18:15:24,117 ERROR
[org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
file:/C:/opt/jboss-3.2.0RC2/server/default/tmp/deploy/server/default/deploy/omega.ear/30.omega.ear-contents/ejb-test.jar!/META-INF/jbosscmp-jdbc.xml
process error. Line: 2092. Error message: Element type
"auto-increment" must be declared.
2003-02-26 18:15:24,117 ERROR
[org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
file:/C:/opt/jboss-3.2.0RC2/server/default/tmp/deploy/server/default/deploy/omega.ear/30.omega.ear-contents/ejb-test.jar!/META-INF/jbosscmp-jdbc.xml
process error. Line: 2093. Error message: The content
of element type "cmp-field" must match
"(field-name,read-only?,read-time-out?,column-name?,not-null?,((jdbc-type,sql-type)|property+)?)".
2003-02-26 18:15:24,157 ERROR
[org.jboss.ejb.EntityContainer] Starting failed


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to