0 Replies Latest reply on Jan 28, 2006 2:53 PM by Anthony Sciola

    Exception thrown when attempting to create table

    Anthony Sciola Newbie

      I've configured jboss 4.0.3SP1 to use mysql (5.0.18) and am using netbeans 5.0 as my IDE.

      I'm attempting to use CMP to have jboss manage my entity beans with mysql and when I try to create a minimal Entity Bean, when deployed, I receive the following error:

      19:51:43,593 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=local/UserInfoBean@10534009,service=EJB
      org.jboss.deployment.DeploymentException: Error while creating table userinfobean; - nested throwable: (com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VARCHAR(250) BINARY NOT NULL, CONSTRAINT pk_userinfobean PRIMARY KEY (key))' at line 1)

      I have created a jbosscmp-jdbc.xml file (Is this necessary in addition to the standardjbosscmp-jdbc.xml file if it's using the same datastore?) which looks like this:




      <entity-command name="default"/>


      Are there any suggestions as to what would cause the syntax error? It doesn't appear I'm using any reserved words or anything.