-
1. Re: Unable to deploy seam-generated code
allforjava.allforjava.aol.in Dec 29, 2009 6:17 PM (in response to allforjava.allforjava.aol.in)Guy's any clue? I'm really struggling to get through it. Any help will be grateful.
I'm able to reverse-eng the code through eclipse 3.5. However deployment failed by SchemaValidator
-
2. Re: Unable to deploy seam-generated code
allforjava.allforjava.aol.in Dec 30, 2009 2:04 AM (in response to allforjava.allforjava.aol.in)Dear Team,
On debug found that the exception was throw by org.hibernate.tool.hbm2ddl.SchemaValidator when it tried to execute these pre-defined sql 'dialect.getQuerySequencesString()'
as:select sequence_name from user_sequences; select sequence_name from information_schema.system_sequences;
What m'I missing? Kindly assist.
Using Jboss 2.2.0, Jboss 5.1 GA, Eclipse 3.5.
-
3. Re: Unable to deploy seam-generated code
allforjava.allforjava.aol.in Dec 30, 2009 4:44 AM (in response to allforjava.allforjava.aol.in)Dear Team,
Whooo! I was using wrong/default dialect in persistance.xml. Modified to Oracle9iDialect and replaced ojdbc14.jar with new ojdbc6.jar, deployment goes smooth.
1. It worked for Seam 2.2.1 and Jboss 4.2.3 GA!
2. However for Seam 2.2.0 with Jboss 5.1 GA it throws:
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: DbsPhones is not mapped [select dbsPhones from DbsPhones dbsPhones]
If I use the FQN-Fully Qualified Names for an entity, in the ejbql, an empty view is rendered. With the error message on console like 'cannot find persistance class'
What I need to do?
-
4. Re: Unable to deploy seam-generated code
allforjava.allforjava.aol.in Dec 30, 2009 5:42 AM (in response to allforjava.allforjava.aol.in)YeaaaHaa! It was Jboss 5.0 onwards problem. Modified persistance.xml and component.xml to register EnntityManagerFactory with JNDI. w.r.t SeamForum
Now it is working!
However, how/where to modify followings, to take care above correction through seam-gen:
1. Dialect specific to database.
2. EnntityManagerFactory registration with JNDI.
Thank you in advance!