I am getting the same error. I am not sure what it means and would really appreciate a quick explanation. However, as I do have log4j set up properly, I get the full trace:
[schemaexport] 0 [main] INFO net.sf.hibernate.cfg.Environment - Hibernate 2.1.7
[schemaexport] 20 [main] INFO net.sf.hibernate.cfg.Environment - hibernate.properties not found
[schemaexport] 30 [main] INFO net.sf.hibernate.cfg.Environment - using CGLIB reflection optimizer
[schemaexport] 40 [main] INFO net.sf.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
[schemaexport] 80 [main] INFO net.sf.hibernate.cfg.Configuration - Mapping file: ...Action.hbm.xml
[schemaexport] 261 [main] DEBUG net.sf.hibernate.util.DTDEntityResolver - trying to locate http://hibernate.sourceforge.net/hibern ... ng-1.1.dtd in classpath under net/sf/hibernate/
[schemaexport] 271 [main] DEBUG net.sf.hibernate.util.DTDEntityResolver - http://hibernate.sourceforge.net/hibern ... 1.1.dtdnot found in classpath
[schemaexport] 1633 [main] INFO net.sf.hibernate.cfg.Binder - Mapping class: com. ... .Action -> Actions
[schemaexport] 1823 [main] DEBUG net.sf.hibernate.cfg.Binder - Mapped property: id -> id, type: long
[schemaexport] 1883 [main] ERROR net.sf.hibernate.cfg.Configuration - Could not configure datastore from file: ...Action.hbm.xml
[schemaexport] java.lang.NullPointerException
[schemaexport] at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:241)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:510)
[schemaexport] at net.sf.hibernate.cfg.Binder$2.create(Binder.java:1435)
[schemaexport] at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1029)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:363)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1257)
[schemaexport] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
[schemaexport] at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:195)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
BUILD FAILED
D:\eclipse\workspace\getonthejob\build.xml:61: Schema text failed: java.lang.NullPointerException
I am not sure what is meant by "datastore"? Is it the database? If so, I am not sure why this needs to be configured, as I have drop="no" and text="yes" attributes specified in my SchemaExport taskdef, my intention being that I only want to generate the text of the schema, and not actually upload it to the DB.
I am also vaguely worried about the warning at the top that says that it cannot find hibernate.properties, which is reasonable, as I use a hibernate.cfg.xml, which it finds OK. Is this a bug in 2.1.7 or am I doing something daft?
If any more details are required to answer this question about the datastore that cannot be found, please please let me know and I will provide them. Thanks in advance...