你的Middlegen目录下的build.xml中关于数据库的部分是不是加上了
schema="${database.schema}",如果没有指定的话就删掉这句话

解决方案 »

  1.   

    schema对oracle有用,有些数据库不用
      

  2.   

    我现在删了schema,还是原来的错误!
      

  3.   

    我的配置:
    mysql.xml
       <!-- =================================================================== -->
       <!-- ant properties/targets for mysql                                    -->
       <!-- note: this is not a proper xml file (there is no root element)      -->
       <!--       it is intended to be imported from a *real* xml file          -->
       <!-- =================================================================== -->   <property name="database.script.file"           value="${src.dir}/sql/${name}-mysql.sql"/>
       <property name="database.driver.file"           value="${lib.dir}/mysql-connector-java-3.0.14-production-bin.jar"/>
       <property name="database.driver.classpath"      value="${database.driver.file}"/>
       <property name="database.driver"                value="com.mysql.jdbc.Driver"/>
       <property name="database.url"                   value="jdbc:mysql://localhost/userright"/>
       <property name="database.userid"                value="root"/>
       <property name="database.password"              value=""/>
       <property name="database.schema"                value=""/>
       <property name="database.catalog"               value=""/>   <property name="jboss.datasource.mapping"       value="mySQL"/>
      

  4.   

    connector-java-3.0.14-production-bin.jar这个connector-java-3.0.6-stable-bin.jar有什么区别