0 Replies Latest reply on Jun 7, 2006 3:39 PM by sbalmos

    Deploying doesn't map associations & schema

    sbalmos

      Hi all,

      I'm trying to move over to EJB3 entities, and was attempting a test deployment to the Hypersonic database. The ejb3 deployer recognizes my entity beans, but then does nothing to process the annotations, map associations, or pump out schema updates to the database.

      Any recommendations? My persistence.xml is below, along with the deployment log. All the entities involved are too lengthy to paste here. But they are all marked as @Entity, implement Serializable, have @Id, etc etc etc.

      Thanks!

      --Scott

      persistence.xml:

      <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="simunex">
       <jta-data-source>java:/DefaultDS</jta-data-source>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="update"/>
       </properties>
       </persistence-unit>
      </persistence>
      


      deploy log:

      14:58:32,344 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=SimuNex-Backend.ear,unitName=simunex with dependencies:
      14:58:32,344 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
      14:58:32,354 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.IRCAttendance
      14:58:32,354 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.IRCAttendancePointValue
      14:58:32,384 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.IRCAttendanceRequirement
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.IRCAttendanceType
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.Participant
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.PlotArc
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.PlotEpisode
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.PlotMessage
      14:58:32,394 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.PlotMessagePointValue
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.arcrecmgr.types.PlotMessageRequirement
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.AccountAction
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.AccountActivity
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.ACHAccount
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.ActionPackage
      14:58:32,404 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.BillingAccount
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.ChargeAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.CreditAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.CreditCard
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.DisbursementAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.FinanceChargeAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.FixedChargeAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.FixedCreditAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.Invoice
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.PaymentAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.PaymentMethod
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.RecurringAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.VariableChargeAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.billing.types.VariableCreditAccountAction
      14:58:32,414 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.Attribute
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.AttributeClass
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.AttributeType
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.ClientProfile
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.Group
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.NotificationEmail
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.Preference
      14:58:32,424 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.SecurityEntity
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.SecurityRight
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.SecurityRightDelegation
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.core.types.User
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.discussnet.types.Watch
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.eventscal.types.Event
      14:58:32,434 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.eventscal.types.EventAttendee
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.eventscal.types.EventCalendar
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.eventscal.types.EventReminder
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.eventscal.types.GroupEventCalendar
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Character
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Department
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Game
      14:58:32,444 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PendingPersonnelAction
      14:58:32,454 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PersonnelAction
      14:58:32,454 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PlayAssignment
      14:58:32,454 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Player
      14:58:32,454 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PlayGroup
      14:58:32,464 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PlayGroupType
      14:58:32,464 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.PlayRecordEntry
      14:58:32,464 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Position
      14:58:32,464 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Rank
      14:58:32,464 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.RankGroup
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.StaffDepartment
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.StaffPosition
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.Trainee
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.TrainingClass
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.TrainingCourse
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.TrainingQualification
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.TrainingQualificationType
      14:58:32,474 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.gamemgr.types.TrainingSection
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.DNSDomain
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.DNSDomainEntry
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.EmailAccount
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.IRCChannel
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.LDAPDirectory
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.MailingList
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.ShellAccount
      14:58:32,484 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.SQLDatabase
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.networkmgr.types.Website
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.newsmgr.types.GameGroupNewsChannel
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.newsmgr.types.GameNewsChannel
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.newsmgr.types.GroupNewsChannel
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.newsmgr.types.NewsChannel
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.newsmgr.types.NewsItem
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.playermatch.types.GameProfile
      14:58:32,494 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.playermatch.types.GameReview
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.playermatch.types.GenreCategory
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.playermatch.types.UserProfile
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.GameGroupPoll
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.GamePoll
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.GroupPoll
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.Poll
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.PollOption
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.pollmgr.types.Vote
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.Answer
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.Clarification
      14:58:32,504 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.Comment
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.Expert
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.Question
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.QuestionCategory
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.simqa.types.SimQAMessage
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.GameSimStore
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.SimStore
      14:58:32,514 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.SimStoreCategory
      14:58:32,524 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.SimStoreItem
      14:58:32,524 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.SimStoreItemReview
      14:58:32,524 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.SimStoreShoppingCart
      14:58:32,524 INFO [Ejb3Configuration] found EJB3 Entity bean: com.simunex.snx.store.types.UserSimStore
      14:58:32,524 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
      14:58:32,744 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml
      14:58:32,744 INFO [Ejb3Configuration] [PersistenceUnit: simunex] no META-INF/orm.xml found
      14:58:32,764 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      14:58:32,764 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      14:58:32,764 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
      14:58:32,764 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      14:58:32,764 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
      14:58:32,764 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      14:58:32,764 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      14:58:32,764 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      14:58:32,764 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      14:58:32,764 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      14:58:32,764 INFO [SettingsFactory] JDBC batch size: 15
      14:58:32,764 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      14:58:32,764 INFO [SettingsFactory] Scrollable result sets: enabled
      14:58:32,764 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      14:58:32,764 INFO [SettingsFactory] Connection release mode: auto
      14:58:32,764 INFO [SettingsFactory] Default batch fetch size: 1
      14:58:32,764 INFO [SettingsFactory] Generate SQL with comments: disabled
      14:58:32,764 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      14:58:32,764 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      14:58:32,774 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      14:58:32,774 INFO [SettingsFactory] Query language substitutions: {}
      14:58:32,774 INFO [SettingsFactory] Second-level cache: enabled
      14:58:32,774 INFO [SettingsFactory] Query cache: disabled
      14:58:32,774 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      14:58:32,774 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      14:58:32,774 INFO [SettingsFactory] Structured second-level cache entries: disabled
      14:58:32,774 INFO [SettingsFactory] Statistics: disabled
      14:58:32,774 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      14:58:32,774 INFO [SettingsFactory] Default entity-mode: pojo
      14:58:32,774 INFO [SessionFactoryImpl] building session factory
      14:58:32,774 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      14:58:32,774 INFO [SchemaUpdate] Running hbm2ddl schema update
      14:58:32,774 INFO [SchemaUpdate] fetching database metadata
      14:58:32,774 INFO [SchemaUpdate] updating schema
      14:58:32,774 INFO [SchemaUpdate] schema update complete
      14:58:32,774 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      14:58:32,774 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.4.GA/server/default/tmp/deploy/tmp29648SimuNex-Backend.ear-contents/Backend-Types2.jar