ClassCastException « JBoss « JPA Q&A





1. JPA + JBoss = java.lang.ClassCastException    coderanch.com

Dear experts, I developed a web application that uses JPA provided by TopLink. It is deployed to Tomcat 6 and everything work perfectly but now I need to migrate to JBoss. While deploying to JBoss I have following error: 12:09:32,229 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=JiraReport.war/#JiraReportPU 12:09:32,229 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=JiraReport.war/#JiraReportPU state=Create java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to ...

2. ClassCastException deploying .sar jboss-3.2.1    forum.hibernate.org

Hi - I get the following exception while trying to deploy a sar to jboss 14:39:19,469 INFO [Binder] Mapping class: com.generator.dom.hibernate.Company -> companies 14:39:19,783 INFO [ReflectHelper] reflection optimizer disabled for: com.generator.dom.hibernate.Address, ClassCastException: null 14:39:19,791 ERROR [Configuration] Could not configure datastore from input stream java.lang.ClassCastException at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:90) at net.sf.cglib.reflect.FastClass.create(FastClass.java:72) at net.sf.hibernate.type.ComponentType.(ComponentType.java:113) at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:817) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:963) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:321) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1173) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:245) at ...

3. HAR JBoss 4.0 Hibernate 2.1.6 ClassCastException    forum.hibernate.org

I am trying to get HAR working with JBoss 4.0, Hibernate 2.1.6, Oracle 8.1.7. I am using Oracle driver ojdbc14.jar. J2SE 5.0 I read a wiki http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate I followed the instructions on the wiki but I am getting java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource I have no clue to what's going on here. I see the HAR file being deployed without any problem. I can ...

4. buildSessionFactory() throwing ClassCastException on JBoss 4    forum.hibernate.org

Author Message searl001 Post subject: buildSessionFactory() throwing ClassCastException on JBoss 4 Posted: Mon May 23, 2005 8:03 am Newbie Joined: Fri Oct 29, 2004 4:20 pm Posts: 16 Location: Grand Rapids, MI I'm getting a ClassCastException when trying to initialize Hibernate 3.0.3 on JBoss 4.0.2. Has anyone else seen this behaviour? Hibernate version: 3.0.3 Mapping documents: ...

5. ClassCastException when initing Hibernate in JBoss 4.0.2    forum.hibernate.org

Author Message searl001 Post subject: ClassCastException when initing Hibernate in JBoss 4.0.2 Posted: Thu Jun 02, 2005 11:17 am Newbie Joined: Fri Oct 29, 2004 4:20 pm Posts: 16 Location: Grand Rapids, MI Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp I'm getting a ClassCastException thrown when attempting to initialize Hibernate 3.0.5 on JBoss 4.0.2 - Default ...

7. JBoss deployment - ClassCastException: BigDecimalType    forum.hibernate.org

Beginner Joined: Thu Jan 12, 2006 4:44 pm Posts: 22 hello: using JBoss 4.0.3SP1, i'm getting a strange exception when trying to deploy a .har file as a jboss service. the exception stack trace as reported to the jboss console: Code: 17:35:24,593 INFO [SessionFactoryImpl] building session factory 17:35:25,171 WARN [ServiceController] Problem starting service generations:service=Hibernate java.lang.ClassCastException: org.hibernate.type.BigDecimalType ...

9. Jboss ClassCastException    forum.hibernate.org

I've been wading through a lot of docs in this forum to figure out an exception I'm getting while trying to integrate Hibernate into my J2EE application that I'm deploying to jboss 4.2. I've got a simple pojo named Job, from which xdoclet creates the mapping document below. I create an ear file, which contains a war, and a har. It ...