Hello all,
I want to place my hibernate jars(particular version)which may be different from the jars
placed in jboss/deploy/lib.
If i place them in my ear:i get classcast exception:
Caused by: java.lang.ClassCastException
| at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:78)
org.hibernate.HibernateException: Could not instantiate dialect class
| at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:84)
| at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:42)
| at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:397)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
| at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:231)
| at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:155)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| ---------------------------------
|
I have placed jboss-app.xml in ear meta-inf:
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
| <jboss-app>
| <loader-repository>abc:loader=abc.ear
| </loader-repository>
| <module>
| <har>abc.har</har>
| </module>
| </jboss-app>
|
Please tell how can i achieve this!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965435#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...