使用Hibernate导出schema到数据库的问题
用ant hibernate生成数据库
返回的错误为
hibernate:
[schemaupdate] log4j:WARN No appenders could be found for logger (org.hi
bernate.
cfg.Environment).
[schemaupdate] log4j:WARN Please initialize the log4j system properly.
BUILD FAILED
I:\Program\J2EE\aib\workspace\company\build.xml:382: Schema text failed:
JDBC Driver class not found:
build.xml的相关部分为
<!-- Hibernate -->
<target name="hibernate" if="Hibernate"
description="Generating DB schema using Hibernate">
<taskdef name="schemaupdate"
classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
classpathref="class.path"/>
<schemaupdate
config="${hibernate.cfg.file}"
quiet="no">
</schemaupdate>
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="class.path"/>
<schemaexport
config="${hibernate.cfg.file}"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="${root}/hibernate-schema-export.sql">
</schemaexport>
</target>
mysql的jdbc驱动已经装好,自己写代码连数据库也没问题
请问这有可能是什么方面的问题?