7 Replies Latest reply on Jan 3, 2008 12:27 PM by mjhammel

    Problem starting service persistence.units (ClassCastExcept

    mjhammel

      Does anyone have any idea where I should look for what's causing this error during deployment of my application EAR file?

      I'm using JBOSS V4.2.2GA.

      My persistence.xml file:

      <persistence>
       <persistence-unit name="Crunch">
       <jta-data-source>java:/CrunchDS</jta-data-source>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
       <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
       <property name="hibernate.connection.url" value="jdbc:mysql://localhost/crunch"/>
       <property name="hibernate.connection.username" value="root"/>
       </properties>
       </persistence-unit>
      </persistence>


      When the ear file is deployed, I get the following error. I don't have any clue what might be causing this as all the code in the EAR (except for one Session bean and its Remote interface - actually a WebServices interface) is generated from Hibernate using reveng.xml.

      17:40:38,109 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CrunchDS' to JNDI name 'java:CrunchDS'
      17:40:38,155 INFO [EARDeployer] Init J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear
      17:40:38,530 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
      17:40:38,530 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Crunch.ear,unitName=Crunch with dependencies:
      17:40:38,530 INFO [JmxKernelAbstraction] jboss.jca:name=CrunchDS,service=DataSourceBinding
      17:40:38,534 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Crunch.ear,unitName=Crunch
      17:40:38,543 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Analysisresult
      17:40:38,547 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Application
      17:40:38,550 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Computeros
      17:40:38,552 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Configdata
      17:40:38,555 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Cpu
      17:40:38,558 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Dir
      17:40:38,563 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fileservice
      17:40:38,567 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Filetype
      17:40:38,570 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionalgorithm
      17:40:38,573 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionalgorithmresult
      17:40:38,576 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionjobsetting
      17:40:38,579 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionrequestorsetting
      17:40:38,582 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionresult
      17:40:38,586 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Groups
      17:40:38,588 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Insertionalgorithm
      17:40:38,591 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Interpreter
      17:40:38,597 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Job
      17:40:38,626 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobfusionresult
      17:40:38,629 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobtask
      17:40:38,632 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobtool
      17:40:38,635 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Organizations
      17:40:38,638 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profileadmin
      17:40:38,641 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profilerequestor
      17:40:38,644 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profiletoolpublisher
      17:40:38,649 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profileworker
      17:40:38,652 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Roles
      17:40:38,658 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Serverstat
      17:40:38,667 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Subscriber
      17:40:38,670 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Subscribersession
      17:40:38,675 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Task
      17:40:38,678 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskanalysisresult
      17:40:38,682 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskdatum
      17:40:38,684 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskfiles
      17:40:38,688 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskinvocation
      17:40:38,692 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tasklogs
      17:40:38,695 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskreject
      17:40:38,700 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskworkerinfo
      17:40:38,703 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Teams
      17:40:38,708 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tool
      17:40:38,711 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolcpu
      17:40:38,714 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolfiletype
      17:40:38,717 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tooloption
      17:40:38,720 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolos
      17:40:38,723 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolparameter
      17:40:38,727 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tooltype
      17:40:38,735 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Usercomputer
      17:40:38,738 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Viewlevels
      17:40:38,798 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
      17:40:38,799 INFO [Ejb3Configuration] [PersistenceUnit: Crunch] no META-INF/orm.xml found
      17:40:38,883 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Analysisresult
      17:40:38,965 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Analysisresult on table analysisresult
      17:40:39,189 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Application
      17:40:39,189 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Application on table application
      17:40:39,195 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Computeros
      17:40:39,195 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Computeros on table computeros
      17:40:39,201 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Configdata
      17:40:39,202 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Configdata on table configdata
      17:40:39,204 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Cpu
      17:40:39,205 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Cpu on table cpu
      17:40:39,233 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Dir
      17:40:39,246 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Dir on table dir
      17:40:39,261 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fileservice
      17:40:39,278 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fileservice on table fileservice
      17:40:39,291 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Filetype
      17:40:39,301 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Filetype on table filetype
      17:40:39,312 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionalgorithm
      17:40:39,327 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionalgorithm on table fusionalgorithm
      17:40:39,334 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionalgorithmresult
      17:40:39,334 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionalgorithmresult on table fusionalgorithmresult
      17:40:39,340 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionjobsetting
      17:40:39,344 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionjobsetting on table fusionjobsetting
      17:40:39,348 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionrequestorsetting
      17:40:39,362 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionrequestorsetting on table fusionrequestorsetting
      17:40:39,367 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionresult
      17:40:39,368 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionresult on table fusionresult
      17:40:39,371 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Groups
      17:40:39,372 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Groups on table groups
      17:40:39,379 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Insertionalgorithm
      17:40:39,397 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Insertionalgorithm on table insertionalgorithm
      17:40:39,402 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Interpreter
      17:40:39,402 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Interpreter on table interpreter
      17:40:39,406 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Job
      17:40:39,406 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Job on table job
      17:40:39,431 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobfusionresult
      17:40:39,431 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobfusionresult on table jobfusionresult
      17:40:39,434 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobtask
      17:40:39,435 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobtask on table jobtask
      17:40:39,439 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobtool
      17:40:39,439 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobtool on table jobtool
      17:40:39,444 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Organizations
      17:40:39,444 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Organizations on table organizations
      17:40:39,450 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profileadmin
      17:40:39,451 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profileadmin on table profileadmin
      17:40:39,454 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profilerequestor
      17:40:39,454 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profilerequestor on table profilerequestor
      17:40:39,460 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profiletoolpublisher
      17:40:39,461 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profiletoolpublisher on table profiletoolpublisher
      17:40:39,464 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profileworker
      17:40:39,464 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profileworker on table profileworker
      17:40:39,480 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Roles
      17:40:39,480 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Roles on table roles
      17:40:39,483 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Serverstat
      17:40:39,484 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Serverstat on table serverstat
      17:40:39,507 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Subscriber
      17:40:39,508 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Subscriber on table subscriber
      17:40:39,544 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Subscribersession
      17:40:39,544 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Subscribersession on table subscribersession
      17:40:39,549 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Task
      17:40:39,549 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Task on table task
      17:40:39,568 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskanalysisresult
      17:40:39,568 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskanalysisresult on table taskanalysisresult
      17:40:39,571 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskdatum
      17:40:39,572 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskdatum on table taskdatum
      17:40:39,577 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskfiles
      17:40:39,577 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskfiles on table taskfiles
      17:40:39,580 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskinvocation
      17:40:39,580 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskinvocation on table taskinvocation
      17:40:39,589 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tasklogs
      17:40:39,589 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tasklogs on table tasklogs
      17:40:39,595 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskreject
      17:40:39,595 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskreject on table taskreject
      17:40:39,599 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskworkerinfo
      17:40:39,599 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskworkerinfo on table taskworkerinfo
      17:40:39,610 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Teams
      17:40:39,611 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Teams on table teams
      17:40:39,616 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tool
      17:40:39,616 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tool on table tool
      17:40:39,633 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolcpu
      17:40:39,634 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolcpu on table toolcpu
      17:40:39,637 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolfiletype
      17:40:39,637 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolfiletype on table toolfiletype
      17:40:39,640 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tooloption
      17:40:39,640 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tooloption on table tooloption
      17:40:39,643 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolos
      17:40:39,643 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolos on table toolos
      17:40:39,646 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolparameter
      17:40:39,646 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolparameter on table toolparameter
      17:40:39,656 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tooltype
      17:40:39,657 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tooltype on table tooltype
      17:40:39,661 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Usercomputer
      17:40:39,661 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Usercomputer on table usercomputer
      17:40:39,709 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Viewlevels
      17:40:39,710 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Viewlevels on table viewlevels
      17:40:39,833 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Analysisresult.taskanalysisresults -> taskanalysisresult
      17:40:39,838 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Computeros.usercomputers -> usercomputer
      17:40:39,849 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Computeros.tooloses -> toolos
      17:40:39,850 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Cpu.usercomputers -> usercomputer
      17:40:39,850 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Cpu.toolcpus -> toolcpu
      17:40:39,851 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.tools -> tool
      17:40:39,851 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.taskfileses -> taskfiles
      17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.fusionalgorithmresults -> fusionalgorithmresult
      17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.fusionrequestorsettings -> fusionrequestorsetting
      17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.analysisresults -> analysisresult
      17:40:39,853 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.toolfiletypes -> toolfiletype
      17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionalgorithm.fusionalgorithmresults -> fusionalgorithmresult
      17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionalgorithm.fusionrequestorsettings -> fusionrequestorsetting
      17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionresult.jobfusionresults -> jobfusionresult
      17:40:39,855 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Insertionalgorithm.analysisresults -> analysisresult
      17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobfusionresults -> jobfusionresult
      17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.fusionjobsettings -> fusionjobsetting
      17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobtasks -> jobtask
      17:40:39,857 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobtools -> jobtool
      17:40:39,857 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Profilerequestor.fusionrequestorsettings -> fusionrequestorsetting
      17:40:39,858 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.usercomputers -> usercomputer
      17:40:39,860 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profilerequestors -> profilerequestor
      17:40:39,861 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.subscribersessions -> subscribersession
      17:40:39,861 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.groupses -> groups
      17:40:39,862 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.organizationses -> organizations
      17:40:39,870 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profileadmins -> profileadmin
      17:40:39,871 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.tasks -> task
      17:40:39,871 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.jobs -> job
      17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.teamses -> teams
      17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.applications -> application
      17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profiletoolpublishers -> profiletoolpublisher
      17:40:39,873 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.roleses -> roles
      17:40:39,873 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profileworkers -> profileworker
      17:40:39,874 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.toolsForToolOwner -> tool
      17:40:39,874 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.toolsForToolValidator -> tool
      17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.taskanalysisresults -> taskanalysisresult
      17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.jobtasks -> jobtask
      17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.taskinvocations -> taskinvocation
      17:40:39,876 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Taskinvocation.taskfileses -> taskfiles
      17:40:39,876 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Taskinvocation.taskdatums -> taskdatum
      17:40:39,877 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.tooloses -> toolos
      17:40:39,877 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolcpus -> toolcpu
      17:40:39,878 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.analysisresults -> analysisresult
      17:40:39,879 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolfiletypes -> toolfiletype
      17:40:39,880 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.jobtools -> jobtool
      17:40:39,881 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.tasks -> task
      17:40:39,889 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolparameters -> toolparameter
      17:40:39,890 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Toolparameter.tooloptions -> tooloption
      17:40:39,890 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tooltype.tools -> tool
      17:40:39,891 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Usercomputer.taskinvocations -> taskinvocation
      17:40:40,440 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      17:40:40,444 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      17:40:40,483 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45
      17:40:40,483 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
      17:40:40,484 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
      17:40:40,485 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      17:40:40,485 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      17:40:40,486 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      17:40:40,486 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      17:40:40,486 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      17:40:40,486 INFO [SettingsFactory] JDBC batch size: 15
      17:40:40,486 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      17:40:40,486 INFO [SettingsFactory] Scrollable result sets: enabled
      17:40:40,486 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      17:40:40,486 INFO [SettingsFactory] Connection release mode: auto
      17:40:40,487 INFO [SettingsFactory] Maximum outer join fetch depth: 2
      17:40:40,487 INFO [SettingsFactory] Default batch fetch size: 1
      17:40:40,487 INFO [SettingsFactory] Generate SQL with comments: disabled
      17:40:40,487 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      17:40:40,487 INFO [SettingsFactory] Order SQL inserts for batching: disabled
      17:40:40,487 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      17:40:40,487 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      17:40:40,488 INFO [SettingsFactory] Query language substitutions: {}
      17:40:40,488 INFO [SettingsFactory] JPA-QL strict compliance: enabled
      17:40:40,488 INFO [SettingsFactory] Second-level cache: enabled
      17:40:40,488 INFO [SettingsFactory] Query cache: disabled
      17:40:40,488 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      17:40:40,489 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      17:40:40,489 INFO [SettingsFactory] Cache region prefix: Crunch_ear,Crunch
      17:40:40,489 INFO [SettingsFactory] Structured second-level cache entries: disabled
      17:40:40,489 INFO [SettingsFactory] Statistics: disabled
      17:40:40,489 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      17:40:40,489 INFO [SettingsFactory] Default entity-mode: pojo
      17:40:40,489 INFO [SettingsFactory] Named query checking : enabled
      17:40:40,571 INFO [SessionFactoryImpl] building session factory
      17:40:42,047 WARN [ServiceController] Problem starting service persistence.units:ear=Crunch.ear,unitName=Crunch
      java.lang.ClassCastException: org.hibernate.type.StringType
       at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:84)
       at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:168)
       at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
       at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
       at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
       at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy71.start(Unknown Source)
       at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
       at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      17:40:42,048 INFO [EJB3Deployer] Deployed: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/tmp/deploy/tmp64392Crunch.ear-contents/crunch-ejb.jar
      17:40:42,054 INFO [TomcatDeployer] deploy, ctxPath=/Crunch, warUrl=.../tmp/deploy/tmp64392Crunch.ear-contents/crunch-web-exp.war/
      17:40:42,331 INFO [EARDeployer] Started J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear
      17:40:42,332 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=Crunch.ear,unitName=Crunch
       State: FAILED
       Reason: java.lang.ClassCastException: org.hibernate.type.StringType
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=CrunchDS
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:ear=Crunch.ear,unitName=Crunch
       State: FAILED
       Reason: java.lang.ClassCastException: org.hibernate.type.StringType
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=CrunchDS
      


        • 1. Re:  Problem starting service persistence.units (ClassCastEx
          jaikiran

          Have you packaged hibernate and its related jar files in your ear? If so, remove them for the ear (the simplest solution). Also, see this http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions, specifically the jmx-console method mentioned there.

          • 2. Re:  Problem starting service persistence.units (ClassCastEx
            mjhammel

            Thanks for the reply. I removed all jar files from the ear file. Only the EJB class files are in the EAR now (other than XML config files). I also ran the jmx-console suggestion, plugging in org.hibernate.type.StringType as the class to search for. Only one occurance was found, in the server/default/lib/hibernate3.jar file. Unfortunately, I'm still getting the same error.

            FWIW, here are the contents of the EAR file:

            mjhammel(tty10)$ jar tvf Crunch.ear
             0 Mon Dec 31 15:53:24 MST 2007 META-INF/
             106 Mon Dec 31 15:53:22 MST 2007 META-INF/MANIFEST.MF
             100 Mon Dec 31 15:53:24 MST 2007 META-INF/jboss-app.xml
             4800 Mon Dec 31 15:53:24 MST 2007 crunch-web.war
            171960 Mon Dec 31 15:53:18 MST 2007 crunch-ejb.jar
             350 Mon Dec 31 15:53:18 MST 2007 crunch-common.jar
             555 Mon Dec 31 15:53:24 MST 2007 META-INF/application.xml
            mjhammel(tty10)$ cat META-INF/application.xml
            <?xml version="1.0" encoding="ISO-8859-1"?>
            
            <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
            
            <application>
             <display-name>crunch</display-name>
             <description>crunch EAR </description>
             <module>
             <ejb>crunch-ejb.jar</ejb>
             </module>
             <module>
             <java>crunch-common.jar</java>
             </module>
             <module>
             <web>
             <web-uri>crunch-web.war</web-uri>
             <context-root>/Crunch</context-root>
             </web>
             </module>
            </application>
            mjhammel(tty10)$ cat META-INF/jboss-app.xml
            <jboss-app>
             <loader-repository>
             Crunch:archive=Crunch.ear
             </loader-repository>
            </jboss-app>
            mjhammel(tty10)$ jar tvf crunch-ejb.jar
             0 Mon Dec 31 15:53:18 MST 2007 META-INF/
             106 Mon Dec 31 15:53:18 MST 2007 META-INF/MANIFEST.MF
             0 Mon Dec 31 15:53:16 MST 2007 com/
             0 Mon Dec 31 15:53:16 MST 2007 com/cei/
             0 Mon Dec 31 15:53:16 MST 2007 com/cei/crunch/
             0 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/
             4349 Mon Dec 31 15:53:16 MST 2007 com/cei/crunch/ejb/Analysisresult.class
             4781 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/AnalysisresultHome.class
             2385 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Application.class
             4727 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ApplicationHome.class
             2974 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Computeros.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ComputerosHome.class
             1305 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Configdata.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ConfigdataHome.class
             2956 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Cpu.class
             4583 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/CpuHome.class
             2580 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Dir.class
             4583 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/DirHome.class
             5810 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fileservice.class
             4727 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FileserviceHome.class
             5018 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Filetype.class
             4673 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FiletypeHome.class
             3439 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fusionalgorithm.class
             4799 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FusionalgorithmHome.class
             2651 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fusionalgorithmresult.class
             4907 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FusionalgorithmresultHome.class
             2132 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fusionjobsetting.class
             4817 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FusionjobsettingHome.class
             2853 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fusionrequestorsetting.class
             4925 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FusionrequestorsettingHome.class
             2238 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Fusionresult.class
             4745 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/FusionresultHome.class
             3347 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Groups.class
             4637 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/GroupsHome.class
             2458 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Insertionalgorithm.class
             4853 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/InsertionalgorithmHome.class
             1598 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Interpreter.class
             4727 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/InterpreterHome.class
             10615 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Job.class
             4583 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/JobHome.class
             1935 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Jobfusionresult.class
             4799 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/JobfusionresultHome.class
             1839 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Jobtask.class
             4655 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/JobtaskHome.class
             2384 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Jobtool.class
             4655 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/JobtoolHome.class
             2844 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Organizations.class
             4763 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/OrganizationsHome.class
             1859 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Profileadmin.class
             4745 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ProfileadminHome.class
             3551 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Profilerequestor.class
             4817 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ProfilerequestorHome.class
             1832 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Profiletoolpublisher.class
             4889 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ProfiletoolpublisherHome.class
             7022 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Profileworker.class
             4763 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ProfileworkerHome.class
             1773 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Roles.class
             4619 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/RolesHome.class
             9852 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Serverstat.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ServerstatHome.class
             15991 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Subscriber.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/SubscriberHome.class
             2486 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Subscribersession.class
             4835 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/SubscribersessionHome.class
             9566 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Task.class
             4601 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskHome.class
             1971 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskanalysisresult.class
             4853 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskanalysisresultHome.class
             3068 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskdatum.class
             4691 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskdatumHome.class
             1984 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskfiles.class
             4691 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskfilesHome.class
             5266 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskinvocation.class
             4781 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskinvocationHome.class
             3050 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Tasklogs.class
             4673 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TasklogsHome.class
             2124 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskreject.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskrejectHome.class
             6247 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Taskworkerinfo.class
             4781 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TaskworkerinfoHome.class
             2812 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Teams.class
             4619 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TeamsHome.class
             9969 Mon Dec 31 15:53:16 MST 2007 com/cei/crunch/ejb/Tool.class
             4601 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ToolHome.class
             1832 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Toolcpu.class
             4655 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ToolcpuHome.class
             1892 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Toolfiletype.class
             4745 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ToolfiletypeHome.class
             1819 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Tooloption.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TooloptionHome.class
             1876 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Toolos.class
             4637 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ToolosHome.class
             3729 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Toolparameter.class
             4763 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ToolparameterHome.class
             2429 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Tooltype.class
             4673 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/TooltypeHome.class
             14036 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Usercomputer.class
             4745 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/UsercomputerHome.class
             1813 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/Viewlevels.class
             4709 Mon Dec 31 15:53:18 MST 2007 com/cei/crunch/ejb/ViewlevelsHome.class
             658 Fri Dec 28 17:25:00 MST 2007 META-INF/persistence.xml
            <persistence>
             <persistence-unit name="Crunch">
             <jta-data-source>java:/CrunchDS</jta-data-source>
             <properties>
             <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
             <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
             <property name="hibernate.connection.url" value="jdbc:mysql://localhost/crunch"/>
             <property name="hibernate.connection.username" value="root"/>
            <!--
             <property name="hibernate.connection.password" value="rods"/>
            -->
             </properties>
             </persistence-unit>
            </persistence>
            mjhammel(tty10)$ jar tvf crunch-web.war
             0 Mon Dec 31 16:13:26 MST 2007 META-INF/
             106 Mon Dec 31 16:13:24 MST 2007 META-INF/MANIFEST.MF
             0 Mon Dec 31 15:53:00 MST 2007 WEB-INF/
             0 Thu Dec 27 09:58:30 MST 2007 WEB-INF/classes/
             361 Mon Dec 31 15:51:34 MST 2007 WEB-INF/jboss-web.xml
             4980 Mon Dec 31 16:13:24 MST 2007 WEB-INF/server-config.wsdd
             4261 Mon Dec 31 15:53:00 MST 2007 WEB-INF/web.xml
            mjhammel(tty10)$ cat WEB-INF/jboss-web.xml
            <?xml version="1.0" encoding="ISO-8859-1"?>
            <jboss-web>
             <context-root>Crunch</context-root>
             <!-- <security-domain>java:/jaas/defaultAuth</security-domain> -->
             <security-domain>java:/jaas/CrunchDBRealm</security-domain>
            
             <resource-ref>
             <res-ref-name>jdbc/CrunchDS</res-ref-name>
             <jndi-name>java:/CrunchDS</jndi-name>
             </resource-ref>
            
            </jboss-web>
            mjhammel(tty10)$ cat WEB-INF/web.xml
            <!DOCTYPE web-app PUBLIC
             "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
             "http://java.sun.com/dtd/web-app_2_3.dtd">
            
            <web-app>
            
             <servlet>
             <servlet-name>AxisServlet</servlet-name>
             <display-name>Apache-Axis Servlet</display-name>
             <servlet-class>
             org.apache.axis.transport.http.AxisServlet
             </servlet-class>
             </servlet>
            
             <servlet-mapping>
             <servlet-name>AxisServlet</servlet-name>
             <url-pattern>/servlet/AxisServlet</url-pattern>
             </servlet-mapping>
            
             <servlet-mapping>
             <servlet-name>AxisServlet</servlet-name>
             <url-pattern>*.jws</url-pattern>
             </servlet-mapping>
            
             <servlet-mapping>
             <servlet-name>AxisServlet</servlet-name>
             <url-pattern>/services/*</url-pattern>
             </servlet-mapping>
            
            
             <session-config>
             <!-- Default to 5 minute session timeouts -->
             <session-timeout>5</session-timeout>
             </session-config>
            
             <!-- currently the W3C havent settled on a media type for WSDL;
             http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
             for now we go with the basic 'it's XML' response -->
             <mime-mapping>
             <extension>wsdl</extension>
             <mime-type>text/xml</mime-type>
             </mime-mapping>
            
            
             <mime-mapping>
             <extension>xsd</extension>
             <mime-type>text/xml</mime-type>
             </mime-mapping>
            
            
             <!-- Define which parts of the server are protected by authentication features. -->
             <security-constraint>
            
             <web-resource-collection>
             <web-resource-name>Crunch META INF</web-resource-name>
             <description>Require users to authenticate</description>
             <url-pattern>/*</url-pattern>
             <http-method>POST</http-method>
             <http-method>GET</http-method>
             </web-resource-collection>
            
             <auth-constraint>
             <description>Only allow Authenticated_users role</description>
             <role-name>Authenticated_users</role-name>
             <role-name>BASIC</role-name>
             <role-name>ADMIN</role-name>
             <role-name>GUEST</role-name>
             <role-name>REQUESTOR</role-name>
             <role-name>WORKER</role-name>
             <role-name>TOOL-PUBLISHER</role-name>
             <role-name>REGISTRAR</role-name>
             </auth-constraint>
            
             <user-data-constraint>
             <description>Encryption is not required for the application in general.
             </description>
             <transport-guarantee>NONE</transport-guarantee>
             </user-data-constraint>
            
             </security-constraint>
            
             <security-role>
             <description>Crunch Authenticated Subscribers</description>
             <role-name>Authenticated_users</role-name>
             </security-role>
             <security-role>
             <description>Crunch Basic Subscriber</description>
             <role-name>BASIC</role-name>
             </security-role>
             <security-role>
             <description>Crunch Guest Subscriber</description>
             <role-name>GUEST</role-name>
             </security-role>
             <security-role>
             <description>Crunch Admin</description>
             <role-name>ADMIN</role-name>
             </security-role>
             <security-role>
             <description>Crunch Requestor Subscriber</description>
             <role-name>REQUESTOR</role-name>
             </security-role>
             <security-role>
             <description>Crunch Worker Subscriber</description>
             <role-name>WORKER</role-name>
             </security-role>
             <security-role>
             <description>Crunch Tool Publisher Subscriber</description>
             <role-name>TOOL-PUBLISHER</role-name>
             </security-role>
             <security-role>
             <description>Registrar</description>
             <role-name>REGISTRAR</role-name>
             </security-role>
            
            <!-- BASIC authentication pops up a login dialog box -->
             <login-config>
             <auth-method>BASIC</auth-method>
             <realm-name>defaultAuth</realm-name>
            <!--
             <form-login-config>
             <form-login-page>/jsp/login.jsp</form-login-page>
             <form-error-page>/login_error.html</form-error-page>
             </form-login-config>
            -->
             </login-config>
            
             <resource-ref>
             <res-ref-name>jdbc/CrunchDS</res-ref-name>
             <res-type>javax.sql.DataSource</res-type>
             <res-auth>Container</res-auth>
             </resource-ref>
            
            </web-app>
            mjhammel(tty10)$ cat WEB-INF/server-config.wsdd
            <?xml version="1.0" encoding="UTF-8"?>
            <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
             <globalConfiguration>
             <parameter name="adminPassword" value="admin"/>
             <parameter name="enableNamespacePrefixOptimization" value="false"/>
             <parameter name="dotNetSoapEncFix" value="true"/>
             <parameter name="disablePrettyXML" value="true"/>
             <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
             <parameter name="sendXsiTypes" value="true"/>
             <parameter name="sendMultiRefs" value="true"/>
             <parameter name="sendXMLDeclaration" value="true"/>
             <requestFlow>
             <handler type="java:org.apache.axis.handlers.JWSHandler">
             <parameter name="scope" value="session"/>
             </handler>
             <handler type="java:org.apache.axis.handlers.JWSHandler">
             <parameter name="scope" value="request"/>
             <parameter name="extension" value=".jwr"/>
             </handler>
             </requestFlow>
             </globalConfiguration>
             <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
             <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
             <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
             <service name="AdminService" provider="java:MSG">
             <parameter name="allowedMethods" value="AdminService"/>
             <parameter name="enableRemoteAdmin" value="false"/>
             <parameter name="className" value="org.apache.axis.utils.Admin"/>
             <namespace>http://xml.apache.org/axis/wsdd/</namespace>
             </service>
             <service name="Version" provider="java:RPC">
             <parameter name="allowedMethods" value="getVersion"/>
             <parameter name="className" value="org.apache.axis.Version"/>
             </service>
             <service name="SubscriberServices" provider="java:RPC">
             <operation name="createSubscriber" qname="ns1:createSubscriber" soapAction="" xmlns:ns1="urn:Crunch">
             <parameter name="in0" type="ns2:Subscriber" xmlns:ns2="http://ejb.crunch.cei.com"/>
             </operation>
             <operation name="findSubscriber" qname="ns4:findSubscriber" returnQName="findSubscriberReturn" returnType="ns3:Subscriber" soapAction="" xmlns:ns3="http://ejb.crunch.cei.com" xmlns:ns4="urn:Crunch">
             <parameter name="in0" type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
             </operation>
             <operation name="createSubscriberSession" qname="ns5:createSubscriberSession" soapAction="" xmlns:ns5="urn:Crunch">
             <parameter name="in0" type="ns6:Subscribersession" xmlns:ns6="http://ejb.crunch.cei.com"/>
             </operation>
             <operation name="findSubscriberSession" qname="ns8:findSubscriberSession" returnQName="findSubscriberSessionReturn" returnType="ns7:Subscribersession" soapAction="" xmlns:ns7="http://ejb.crunch.cei.com" xmlns:ns8="urn:Crunch">
             <parameter name="in0" type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>
             </operation>
             <parameter name="wsdlServicePort" value="SubscriberServices"/>
             <parameter name="className" value="com.cei.crunch.server.SubscriberServices.SubscriberServicesEndpoint"/>
             <parameter name="typeMappingVersion" value="1.2"/>
             <parameter name="allowedMethods" value="findSubscriber createSubscriber findSubscriberSession createSubscriberSession"/>
             <parameter name="wsdlServiceElement" value="SubscriberServicesService"/>
             <parameter name="wsdlTargetNamespace" value="urn:Crunch"/>
             <parameter name="wsdlPortType" value="SubscriberServices"/>
             <parameter name="scope" value="Session"/>
             <parameter name="schemaUnqualified" value="http://ejb.crunch.cei.com,urn:Crunch"/>
             <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns9:Subscribersession" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.cei.crunch.ejb.Subscribersession" xmlns:ns9="http://ejb.crunch.cei.com"/>
             <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns10:Subscriber" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:com.cei.crunch.ejb.Subscriber" xmlns:ns10="http://ejb.crunch.cei.com"/>
             <arrayMapping innerType="xsd:anyType" languageSpecificType="java:java.lang.Object[]" qname="ns11:ArrayOf_xsd_anyType" xmlns:ns11="urn:Crunch" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
             </service>
             <transport name="http">
             <requestFlow>
             <handler type="URLMapper"/>
             <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
             </requestFlow>
             <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
             <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
             <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
             </transport>
             <transport name="local">
             <responseFlow>
             <handler type="LocalResponder"/>
             </responseFlow>
             </transport>
            </deployment>
            mjhammel(tty10)$ jar tvf crunch-common.jar
             0 Mon Dec 31 16:13:20 MST 2007 META-INF/
             106 Mon Dec 31 16:13:18 MST 2007 META-INF/MANIFEST.MF
            


            • 3. Re:  Problem starting service persistence.units (ClassCastEx
              jaikiran

              Looks like you have a problem in your hbm mapping files (or the annotated entities, depending on what you are using). More details can be found in this (invalid) bug http://opensource.atlassian.com/projects/hibernate/browse/HHH-3002. See, if you are having the same problem in your mapping.

              • 4. Re:  Problem starting service persistence.units (ClassCastEx
                mjhammel

                Excellent catch, jaikiran! I had several "version" fields in various tables, one of which (and only one) was defined as a varchar. Checking the generated hbm I found that this was being defined as a Hibernate version element, which it didn't need to be. Changing that one field to a name different than "version" cleared the problem. I've now changed all "version" fields to be prefixed with a table identifier to avoid this issue in the future.

                Many thanks. It sure is nice to start the new year with a completely unclear problem clarified. :-)

                I have one more minor issue that cropped up on deployment after fixing this problem. I get a number of messages like this:

                10:14:41,326 ERROR [SchemaExport] Unsuccessful: create table crunch.tool (guid varchar(50) not null, state integer, displayName text, Application varchar(50), lastUpdate datetime, wrapperGuid varchar(50), helpGuid varchar(50), toolVersion text, interpreter varchar(50), addDate datetime, lastUse datetime, toolOwner varchar(50), fileGuid varchar(50), toolTypeGuid varchar(50), toolValidator varchar(50), primary key (guid))
                10:14:41,326 ERROR [SchemaExport] Table 'tool' already exists


                I believe this is because my persistence.xml includes this line:

                <property name="hibernate.hbm2ddl.auto" value="create-drop"/>


                And because I've already loaded the db prior to deployment (as part of the build process in order to do the Hibernate reverse engineering). Removing this line from persistence.xml causes other problems. These messages are only informative as far as I can tell, but it would be nice to eliminate them to make a clean deployment. Do you know how I might be able to do this?


                • 5. Re:  Problem starting service persistence.units (ClassCastEx
                  mjhammel

                  I just noticed that if I shutdown JBOSS and restart it, these "create table" errors do not show up. They only show up on a redeploy of the EAR file.

                  • 6. Re:  Problem starting service persistence.units (ClassCastEx
                    jaikiran

                    The documentation for hibernate.hbm2ddl.auto says this:

                    Automatically validate or export schema DDL to the database when the SessionFactory is created. With create-drop, the database schema will be dropped when the SessionFactory is closed explicitly.


                    When you redeploy your EAR file, do you see any logs which suggest that the sessionfactory is being closed and the schema being dropped? Looks like the tables are not dropped when you are redeploying which results in these error messages. Compare the server.log file to see if there's any difference in the way your application is undeployed, when your redeploy the application as compared to when you stop JBoss.

                    • 7. Re:  Problem starting service persistence.units (ClassCastEx
                      mjhammel

                      I'm not sure what I was doing previously that caused errors when I removed auto, but removing hibernate.hbm2ddl.auto from persistence.xml has now cleared this problem. I've got a clean deployment and I've even managed to get my initial JAX-WS based web service to show up in http://localhost:8080/jbossws/services.

                      I have more questions, but they are now related to client WS issues migrating from java2wsdl/wsdl2java generated classes to wsconsume generated classes. I'll start a different thread (after searching for similar posts first, of course) for those questions.

                      Thanks for you help jaikiran.