[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-09 Thread [EMAIL PROTECTED]
nathandennis: did you try my suggestion with overriding the 
hibernatetool.metadatadialect ?

btw. it has nothing to do with the db; somehow PostgressDialect made it into 
the hibernatetools build in seam - I have no idea how (since it is not on my 
build machine ;(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092858#4092858

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092858
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-09 Thread nathandennis
yes and the build was successful. thanks for the good idea.

but one question, if a generic JDBC dialect will work, how was i benefiting 
from using a postgres specific dialect??  


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093098#4093098

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093098
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread atarbes
I had the same problem.  Something changed in hibernate-tools.jar

$ jar tvf ./seam-gen/lib/hibernate-tools.jar | grep ostgr
  | $ jar tvf ../seam.old/seam-gen/lib/hibernate-tools.jar | grep ostgr
  |678 Thu Nov 09 12:47:22 PST 2006 
org/hibernate/cfg/reveng/dialect/PostgressMetaDataDialect.class
  | 


In 


  | ../seam/examples/wiki/lib/hibernate-tools.jar
  |678 Thu Nov 09 12:47:22 PST 2006 
org/hibernate/cfg/reveng/dialect/PostgressMetaDataDialect.class
  | 

PostgressMetaDataDialect is included but I get errors when running seam-gen 
after overriting :seam-gen/lib/hibernate-tools.jar with 
examples/wiki/lib/hibernate-tools.jar:


  | $ bash seam generate-entities
  | ...
  | [hibernate] Oct 8, 2007 5:33:10 AM 
org.hibernate.connection.DriverManagerConnectionProvider close
  | [hibernate] INFO: cleaning up connection pool: jdbc:postgresql:cpdb
  | [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] java.lang.NullPointerException
  | 
  | BUILD FAILED

The stack trace was


  | java.lang.NullPointerException
  | at 
org.hibernate.cfg.reveng.dialect.PostgressMetaDataDialect.needQuote(PostgressMetaDataDialect.java:7)
  | at 
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:151)
  | at 
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
  | at 
org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:453)
  | at 
org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
  | 

Could anyone comment further on what happened in hibername-tools.org and how to 
fix this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092548#4092548

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092548
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread nathandennis
hey thanks for the response. nothing knew over this way.

i guess we are waiting on one of the gurus to take a look.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092620#4092620

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092620
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread nathandennis
Would Gavin or someone else experience in hibernate please comment on this 
issue.. i suspect it could be the cause of another hibernate related phenomena 
that i am experiencing with this new revision...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092740#4092740

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092740
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread trickyvail
I am also unable to generate-entities with seam 2.0.0.CR2 and postgresql.

I have a possible work around for the time being:

1. Create the new project with seam-2.0.0.CR2,
2. Generate the entities with seam-2.0.0.CR1.

Appears to work fine after some casual testing. I don't know if there are any 
changes to the seam-gen jsf facelet templates, so there may be some subtle 
differences. Hope this helps. Cheers.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092760#4092760

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092760
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread [EMAIL PROTECTED]
Dan is away atm, but sent me this

anonymous wrote : Interesting...when I added the H2MetadataDialect I just added 
all the ones that are available. Looks like there is some sort of problem with 
the postgres one (aside from the spelling error in the class name). We might 
want to see if this is a hibernate-tools issue or whether there is something 
about this person's database that is strange. 

Please file a JIRA issue so we get this fixed for the GA.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092798#4092798

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092798
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread [EMAIL PROTECTED]
I don't recall any PostgressMetaDialect.java been added...something might be 
fishy with the build.

Anyway until I get near the machine that did this build you can work around it 
by setting

hibernatetool.metadatadialect  
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect

hence overriding any defaulting of postgressdialects.

See  
http://www.hibernate.org/hib_docs/tools/reference/en/html/reverseengineering.html#d0e1770
 for what it does.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092805#4092805

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092805
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread nathandennis
[EMAIL PROTECTED] wrote : Dan is away atm, but sent me this
  | 
  | anonymous wrote : Interesting...when I added the H2MetadataDialect I just 
added all the ones that are available. Looks like there is some sort of problem 
with the postgres one (aside from the spelling error in the class name). We 
might want to see if this is a hibernate-tools issue or whether there is 
something about this person's database that is strange. 
  | 
  | Please file a JIRA issue so we get this fixed for the GA.

A little more info on the database..
postgres 8.1.5-13 
postgresql.jar (JDBC 3) downloaded from postgresql.org

im not sure that there is anything strange about the database. it has been 
running like a rock using the same jar since seam 1.2. 

i tell you what i have found that is strange.. entities that i had already 
written to this same database before the upgrade were working fine with RC1 but 
after the upgrade ,, they will no long persist or update. WITH NO ERROR 
MESSAGE.  but they retrieve just fine. im not sure if the two problems are 
related. i have some serious red eye going on over here.. i will be glad when 
all the dust settles. i really want all this new structure in place... because 
i have a sneaky suspicion it will make all the future upgrades that much 
easier. 


i'll go make an attempt at the JIRA on the Dialect issue,,, 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092815#4092815

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092815
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0.CR2 Seam-gen Error

2007-10-08 Thread nathandennis
http://jira.jboss.org/jira/browse/JBSEAM-2074

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092819#4092819

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092819
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user