Issue (View Online)

Key: NXP-773
Issue Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Florent Guillaume
Reporter: Vincent Dutat
Environment: Windows XP, JBoss 4.0.4GA

Operations

View all
View comments
View history
nxuidsequencer database not possible with MySQL 
Updated: 22/03/07 16:32   Created: 13/03/07 16:28  

The following comment has been added to this issue: [ Permlink ]

Author: Florent Guillaume
Date: 22/03/07 16:32
Comment:
Ok the unique constraint was forgotten in the conversion, could you confirm this is better now?

Project: Nuxeo Enterprise Platform 5
Components: Core
Affects Versions: 5.1 M1
Fix Versions: 5.1 M2

 Description   
I modified data source nxuidsequencer-ds.xml in deployment dir. so that it connects to a MySQL DB but I get hibernate errors.
Here is my ds file :
<?xml version="1.0" encoding="UTF-8"?>

<datasources>
  <local-tx-datasource>
    <jndi-name>nxuidsequencer</jndi-name>
    <connection-url>jdbc:mysql://Microsrv99:3306/nxuidsequencer&lt;/connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>nxuidsequencer</user-name>
    <password>nxuidsequencer</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    <metadata>
       <type-mapping>mySQL</type-mapping>
    </metadata>
  </local-tx-datasource>
</datasources>


here are the errors :
2007-03-13 16:19:30,782 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: UID_SEQUENCE

2007-03-13 16:19:30,782 INFO [org.hibernate.tool.hbm2ddl.DatabaseMetadata] table not found: UID_SEQUENCE

2007-03-13 16:19:30,782 DEBUG [org.hibernate.tool.hbm2ddl.SchemaUpdate] create table UID_SEQUENCE (ID integer not null auto_increment, key varchar(255), index integer not null, primary key (ID), unique (key))

2007-03-13 16:19:30,782 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] Unsuccessful: create table UID_SEQUENCE (ID integer not null auto_increment, key varchar(255), index integer not null, primary key (ID), unique (key))

2007-03-13 16:19:30,782 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] 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(255), index integer not null, primary key (ID), unique (key))' at line 1

2007-03-13 16:19:30,782 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] schema update complete

2007-03-13 16:19:30,782 DEBUG [org.hibernate.impl.SessionFactoryImpl] obtaining JTA TransactionManager

2007-03-13 16:19:30,782 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

2007-03-13 16:19:30,782 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 0 named HQL queries

2007-03-13 16:19:30,782 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 0 named SQL queries

2007-03-13 16:19:30,782 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Started persistence.units:ear=nuxeo.ear,jar=nxuidsequencer.jar,unitName=NXUIDSequencer

2007-03-13 16:19:30,782 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: persistence.units:ear=nuxeo.ear,jar=nxuidsequencer.jar,unitName=NXUIDSequencer dependent components: []

2007-03-13 16:19:30,782 DEBUG [org.jboss.ejb3.EJBContainer] Initialising interceptors for UIDSequencerManagerBean...

This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to