[
http://jira.jboss.com/jira/browse/JBSEAM-2074?page=all ]
Dan Allen resolved JBSEAM-2074.
-------------------------------
Resolution: Done
I will take the heat for this one. In an effort to backport the the metadata dialect to
H2, I added some logic in seam-gen to forcefully set the metadatadialect. I added support
for a metadatadialect that didn't exist in the version of hibernate-tools that is
included with Seam (the postgres one). After a discussion with Max and Pete, we determined
that this should not be set by seam-gen at all, and has since been removed.
Postgres Dialect Bug--PostgressMetaDialect.java
-----------------------------------------------
Key: JBSEAM-2074
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2074
Project: JBoss Seam
Issue Type: Bug
Components: Tools
Affects Versions: 2.0.0.CR2
Environment: Seam 2.0.0-CR2, Jboss 4.2.1, Postgres 8.1, postgresql.jar JDBC 3
Reporter: nathan dennis
Assigned To: Dan Allen
Fix For: 2.0.0.GA
Error Generating Entities with Seam-gen. dealing with the need for a
PostgressMetaDialect.java that appeared in CVS after CR2
[hibernate] An exception occurred while running exporter #2:hbm2java (Generates a set of
.java files
)
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] org.hibernate.cfg.JDBCBinderException: Could not load MetaDataDialect:
org.hibernate.cfg
.reveng.dialect.PostgressMetaDataDialect
[hibernate] java.lang.ClassNotFoundException:
org.hibernate.cfg.reveng.dialect.PostgressMetaDataDial
ect
[hibernate] A class were not found in the classpath of the Ant task.
[hibernate] Ensure that the classpath contains the classes needed for Hibernate and your
code are in
the classpath.
BUILD FAILED
/usr/local/seamcvs/seam100507/jboss-seam/seam-gen/build.xml:986:
org.hibernate.cfg.JDBCBinderExcepti
on: Could not load MetaDataDialect:
org.hibernate.cfg.reveng.dialect.PostgressMetaDataDialect
PostgressMetaDataDialect.class appears in
../seam/examples/wiki/lib/hibernate-tools.jar
678 Thu Nov 09 12:47:22 PST 2006
org/hibernate/cfg/reveng/dialect/PostgressMetaDataDialect.class
but overwriting :seam-gen/lib/hibernate-tools.jar with
examples/wiki/lib/hibernate-tools.jar:
gives error,,
stack trace
java.lang.NullPointerException
at
org.hibernate.cfg.reveng.dialect.PostgressMetaDataDialect.needQuote(PostgressMetaDataDial
ect.java:7)
at
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDi
alect.java:151)
at
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:2
2)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:453)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira