[JBoss-user] Element type auto-increment must be declared.

2003-02-26 Thread Rene Palad
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-namejsCode/field-name
   column-nameJS_CODE/column-name
   jdbc-typeINTEGER/jdbc-type
   sql-typeINTEGER(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


Re: [JBoss-user] Element type auto-increment must be declared.

2003-02-26 Thread julien viet
your dtd is not the good one, your cmp file doctype must
reference the 3.2 dtd and not the 3.0

julien

RP Hi,

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

RP cmp-field
RPfield-namejsCode/field-name
RPcolumn-nameJS_CODE/column-name
RPjdbc-typeINTEGER/jdbc-type
RPsql-typeINTEGER(11)/sql-type
RPauto-increment/
RP /cmp-field
RP entity-command name=mysql-get-generated-keys/
RP 

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

RP Thanks in advance!

RP Rene

RP The exact error:

RP 2003-02-26 18:15:14,102 INFO 
RP [org.jboss.ejb.EntityContainer] Starting
RP 2003-02-26 18:15:14,713 ERROR
RP [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
RP 
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
RP process error. Line: 8. Error message: Element type
RP entity-command must be declared.
RP 2003-02-26 18:15:24,107 ERROR
RP [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
RP 
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
RP process error. Line: 9. Error message: The content of
RP element type defaults must match
RP 
((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?).
RP 2003-02-26 18:15:24,117 ERROR
RP [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
RP 
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
RP process error. Line: 2092. Error message: Element type
RP auto-increment must be declared.
RP 2003-02-26 18:15:24,117 ERROR
RP [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File
RP 
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
RP process error. Line: 2093. Error message: The content
RP of element type cmp-field must match
RP 
(field-name,read-only?,read-time-out?,column-name?,not-null?,((jdbc-type,sql-type)|property+)?).
RP 2003-02-26 18:15:24,157 ERROR
RP [org.jboss.ejb.EntityContainer] Starting failed


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



-- 
Best regards,
 julienmailto:[EMAIL PROTECTED]

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
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