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>
RP>    <field-name>jsCode</field-name>
RP>    <column-name>JS_CODE</column-name>
RP>    <jdbc-type>INTEGER</jdbc-type>
RP>    <sql-type>INTEGER(11)</sql-type>
RP>    <auto-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,
 julien                            mailto:[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

Reply via email to