[jboss-user] [JBoss Seam] - Re: Trouble Using <s:convertEntity/> on Glassfish
soluble
do-not-reply at jboss.com
Mon Jun 4 18:08:49 EDT 2007
My persistence layer uses Hibernate as the provider and is the exact one from the Glassfish example that comes with the jboss-seam-1.2.1.GA download:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
| <persistence-unit name="bookingDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>jdbc/__default</jta-data-source>
| <properties>
|
| <property name="hibernate.dialect"
| value="org.hibernate.dialect.DerbyDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.transaction.flush_before_completion" value="true"/>
|
| <property name="hibernate.cache.provider_class"
| value="org.hibernate.cache.HashtableCacheProvider"/>
| </properties>
| </persistence-unit>
| </persistence>
|
In fact the only difference my app has to the glassfish example is that I have added a few more session beans and facelets.
I should also mention that a few more stack traces also come up such as:
Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader at ce16ad
| was requested to find class org.hibernate.event.EventListenersBeanInfo after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:707)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
| ...
|
and
| Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader at ce16ad
| was requested to find class org.hibernate.util.CloneableBeanInfo after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:707)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
| ...
|
and
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not instantiate dialect class
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
| ...
| Caused by: java.lang.ClassCastException: org.hibernate.dialect.DerbyDialect cannot be cast to org.hibernate.dialect.Dialect
| at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:78)
| ...
|
I hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051129#4051129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051129
More information about the jboss-user
mailing list