5 Replies Latest reply on Sep 12, 2008 10:17 PM by Jus Yes

    java.lang.ClassCastException when starting jboss with a seam gen app

    David Cloutier Newbie

      Hi, I ran into a weird error when starting a seam application created by seam-gen within JBOSS.


      OS: windows xp
      App server: JBoss App Server 4.2
      DB: Oracle 9i


      If anyone can help me out I'd be very happy.


      java.lang.ClassCastException: org.hibernate.type.DateType cannot be cast to org.hibernate.type.VersionType


      Here's the complete message:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=catalogAdmin.ear,unitName=catalogAdmin
        State: FAILED
        Reason: java.lang.ClassCastException: org.hibernate.type.DateType cannot be cast to org.hibernate.type.VersionType
        I Depend On:
          jboss.jca:service=DataSourceBinding,name=catalogAdminDatasource

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:ear=catalogAdmin.ear,unitName=catalogAdmin
        State: FAILED
        Reason: java.lang.ClassCastException: org.hibernate.type.DateType cannot be cast to org.hibernate.type.VersionType
        I Depend On:
         jboss.jca:service=DataSourceBinding,name=catalogAdminDatasource