I haven en error deploying the news module on mysql: Created table 'nuke_news_topics' successfully. | 2004-06-24 14:00:22,937 INFO [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.TopicEJB] Created index 'nuke_news_topics_idx0' on 'nuke_news_topics' success | fully. | 2004-06-24 14:00:22,943 INFO [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.TopicEJB] issuePostCreateSQL::sql: [CREATE UNIQUE name ON nukes_news_topics ( | name);] on table nuke_news_topics | 2004-06-24 14:00:22,955 INFO [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.TopicEJB] Executing SQL: CREATE UNIQUE name ON nukes_news_topics (name); | 2004-06-24 14:00:22,962 WARN [org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.TopicEJB] Issuing sql CREATE UNIQUE name ON nukes_news_topics (name); failed: | java.sql.SQLException: Syntax error or access violation, message from server: "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 'name ON nukes_news_topics (name)' at line 1" | 2004-06-24 14:00:22,983 ERROR [org.jboss.ejb.EntityContainer] Starting failed | org.jboss.deployment.DeploymentException: Error while issuing sql in post-table-create; - nested throwable: (java.sql.SQLException: Syntax error or access v | iolation, message from server: "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 'name ON nukes_news_topics (name)' at line 1") | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.issuePostCreateSQL(JDBCStartCommand.java:392) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartCommand.java:110) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:484) |
It seems the table name is false, but that's not all. The complete statement isn't correct, it must be "ALTER TABLE `nuke_news_topics` ADD UNIQUE (`name`)". This works fine. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839808#3839808 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839808 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
