0 Replies Latest reply on Oct 10, 2003 11:52 AM by fbonsignori

    auto-increment template not found

    fbonsignori Newbie

      Hi to all,
      I have a problem deploying my .jar file on JBoss.

      My environment is composed by:
      JBoss 3.2.1
      MySQL 4.0.13
      MySQL JDBC Connector 3.0.8

      When I go to deploy my .jar file I get the following error:
      java.lang.IllegalStateException: auto-increment template not found

      Follow the significant part of my jbosscmp-jdbc.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd">
      <jbosscmp-jdbc>

      <entity-command name="mysql-get-generated-keys" />

      <enterprise-beans>

      <ejb-name>CourierArticle</ejb-name>
      <table-name>courier_article</table-name>
      <cmp-field>
      <field-name>courierArticleID</field-name>
      <column-name>Courier_Article_ID</column-name>
      <auto-increment/>
      </cmp-field>
      <cmp-field>
      <field-name>code</field-name>
      <column-name>Code</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>description</field-name>
      <column-name>Description</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>price</field-name>
      <column-name>Price</column-name>
      </cmp-field>

      ....

      Does someone know where is the error ?

      Thanks in advance, Filippo.