4 Replies Latest reply on Jun 29, 2009 9:51 AM by Robert Morse

    JBoss AS 5.1.0 Respect class tag in persistence.xml?

    Robert Morse Apprentice

      I have a Seam 2.1.2 Ear that connects to several data sources and works just fine under 4.2.3.GA. Because different entities correspond to specific data sources, I specify:
      com.entityClassA
      com.entityClassB
      .
      .
      <exclude-unlisted-classes />

      for the entities that belong to a specific data source.
      With specified, under 4.2.3.GA, the tables get created in the correct database. Under 5.1.0.GA, however, entities bound to a specific datasource get created in the correct database, but they also get created in other databases. Has something changed in the syntax of persistence.xml?

        • 1. Re: JBoss AS 5.1.0 Respect class tag in persistence.xml?
          jaikiran pai Master

          Not sure. Can you please post the entire persistence.xml and some of the SQL statements that are fired for table creation.

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: JBoss AS 5.1.0 Respect class tag in persistence.xml?
            Robert Morse Apprentice

            Sure. Below is he persistence.xml followed by messages emitted during 5.1.0.GA startup. I set all of the show and format SQL commands, but didn't see a specifc create table in the log. It does show that it couldn't find a table in a data source while searching another. Let me know if you need more information. After 5.1.0.GA started up, the tables it couldn't find in the cdmDS datasource were created (e.g., USIND_ADDRESS). This doesn't happen under 4.2.3.GA. There's nothing interesting in the class associated with USIND_ADDRESS (or the others). Just an @Entity and @Table annotation with no catalog or schema defined.

            persistence.xml:

            <?xml version="1.0" encoding="UTF-8"?>
            <!-- Persistence deployment descriptor for dev profile -->
            <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="cdm">
             <provider>org.hibernate.ejb.HibernatePersistence</provider>
             <jta-data-source>java:/cdmDS</jta-data-source>
             <class>com.gwl.im.cdm.model.Application</class>
             <class>com.gwl.im.cdm.model.attribute.Attribute</class>
             <class>com.gwl.im.cdm.model.attribute.CommissionAttribute</class>
             <class>com.gwl.im.cdm.model.attribute.IssueAge</class>
             <class>com.gwl.im.cdm.model.attribute.IssueAgeAttribute</class>
             <class>com.gwl.im.cdm.model.attribute.RiskClassificationAttribute</class>
             <class>com.gwl.im.cdm.model.attribute.TextAttribute</class>
             <class>com.gwl.im.cdm.model.AuthorizedLocation</class>
             <class>com.gwl.im.cdm.model.Branch</class>
             <class>com.gwl.im.cdm.model.BusinessLine</class>
             <class>com.gwl.im.cdm.model.Commission</class>
             <class>com.gwl.im.cdm.model.CommissionSaleValue</class>
             <class>com.gwl.im.cdm.model.CommissionStructure</class>
             <class>com.gwl.im.cdm.model.CommissionTermValue</class>
             <class>com.gwl.im.cdm.model.Company</class>
             <class>com.gwl.im.cdm.model.DynamicDocument</class>
             <class>com.gwl.im.cdm.model.DataProvider</class>
             <class>com.gwl.im.cdm.model.Department</class>
             <class>com.gwl.im.cdm.model.Document</class>
             <class>com.gwl.im.cdm.model.DocumentBundle</class>
             <class>com.gwl.im.cdm.model.DocumentTicket</class>
             <class>com.gwl.im.cdm.model.Extra</class>
             <class>com.gwl.im.cdm.model.ExtraType</class>
             <class>com.gwl.im.cdm.model.Feed</class>
             <class>com.gwl.im.cdm.model.FeedEntry</class>
             <class>com.gwl.im.cdm.model.FieldLocation</class>
             <class>com.gwl.im.cdm.model.Fund</class>
             <class>com.gwl.im.cdm.model.Group</class>
             <class>com.gwl.im.cdm.model.Image</class>
             <class>com.gwl.im.cdm.model.InsuranceProduct</class>
             <class>com.gwl.im.cdm.model.MarketingAffiliation</class>
             <class>com.gwl.im.cdm.model.MarketingPartner</class>
             <class>com.gwl.im.cdm.model.NonForfeiture</class>
             <class>com.gwl.im.cdm.model.NonForfeitureType</class>
             <class>com.gwl.im.cdm.model.PageSequence</class>
             <class>com.gwl.im.cdm.model.PlugableText</class>
             <class>com.gwl.im.cdm.model.PlusMenuItem</class>
             <class>com.gwl.im.cdm.preferences.CdmPreferenceValue</class>
             <class>com.gwl.im.cdm.model.PremiumCalcType</class>
             <class>com.gwl.im.cdm.model.PremiumIssueLimit</class>
             <class>com.gwl.im.cdm.model.PremiumPayType</class>
             <class>com.gwl.im.cdm.model.PrintOrder</class>
             <class>com.gwl.im.cdm.model.PrintRequest</class>
             <class>com.gwl.im.cdm.model.PrintRequestStatus</class>
             <class>com.gwl.im.cdm.model.Product</class>
             <class>com.gwl.im.cdm.model.ProductAlias</class>
             <class>com.gwl.im.cdm.model.ProductGroup</class>
             <class>com.gwl.im.cdm.model.Rider</class>
             <class>com.gwl.im.cdm.model.RiderType</class>
             <class>com.gwl.im.cdm.model.RiskClass</class>
             <class>com.gwl.im.cdm.model.RiskClassType</class>
             <class>com.gwl.im.cdm.model.Role</class>
             <class>com.gwl.im.cdm.model.SaleType</class>
             <class>com.gwl.im.cdm.model.State</class>
             <class>com.gwl.im.cdm.model.Ticket</class>
             <class>com.gwl.im.cdm.model.TicketHistory</class>
             <class>com.gwl.im.cdm.model.UnderwritingType</class>
             <class>com.gwl.im.cdm.model.User</class>
             <class>com.gwl.im.cdm.adapter.nbc.mapper.UsindProductMapper</class>
             <exclude-unlisted-classes />
             <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
             <property name="hibernate.transaction.manager_lookup_class"
             value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
            
             <property name="hibernate.hbm2ddl.auto" value="update"/>
            
            
             <!-- Logging -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.use_sql_comments" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
            
             <property name="hibernate.ejb.use_class_enhancer" value="true"/>
             <property name="hibernate.max_fetch_depth" value="1"/>
             <property name="hibernate.jdbc.batch_size" value="20"/>
            
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/cdmEntityManagerFactory" />
             <property name="hibernate.ejb.event.post-insert" value="org.hibernate.ejb.event.EJB3PostInsertEventListener, org.hibernate.envers.event.AuditEventListener" />
             <property name="hibernate.ejb.event.post-update" value="org.hibernate.ejb.event.EJB3PostUpdateEventListener, org.hibernate.envers.event.AuditEventListener" />
             <property name="hibernate.ejb.event.post-delete" value="org.hibernate.ejb.event.EJB3PostDeleteEventListener, org.hibernate.envers.event.AuditEventListener" />
             <property name="hibernate.ejb.event.pre-collection-update" value="org.hibernate.envers.event.AuditEventListener" />
             <property name="hibernate.ejb.event.pre-collection-remove" value="org.hibernate.envers.event.AuditEventListener" />
             <property name="hibernate.ejb.event.post-collection-recreate" value="org.hibernate.envers.event.AuditEventListener" />
             </properties>
             </persistence-unit>
            
             <persistence-unit name="nbc">
             <provider>org.hibernate.ejb.HibernatePersistence</provider>
             <jta-data-source>java:/nbcDS</jta-data-source>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindAddress</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindApplication</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindApprovedForm</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindBeneficiaryDesignation</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindBillingArrangement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProdBranchApproval</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindCode</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindCovProdCommArr</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindExtraRiskCharge</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindFormRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindFundPolicyAllocation</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindOwnershipRole</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindParty</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindPolicy</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindPolicyComponent</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProduct</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProductSynonym</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProdVarFilingApproval</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindRelevantPolicy</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindReqPolicyDistribution</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindSuppFormRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindValidProductCombo</class>
             <exclude-unlisted-classes />
             <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
             <property name="hibernate.transaction.manager_lookup_class"
             value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
            
             <property name="hibernate.hbm2ddl.auto" value="update"/>
            
             <!-- Logging -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.use_sql_comments" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
            
             <property name="hibernate.ejb.use_class_enhancer" value="true"/>
             <property name="hibernate.max_fetch_depth" value="1"/>
             <property name="hibernate.jdbc.batch_size" value="20"/>
            
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/nbcEntityManagerFactory" />
            
             </properties>
             </persistence-unit>
            
            <!--
             <persistence-unit name="nbcTest">
             <provider>org.hibernate.ejb.HibernatePersistence</provider>
             <jta-data-source>java:/nbcTestDS</jta-data-source>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindAddress</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindApplication</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindApprovedForm</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindBeneficiaryDesignation</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindBillingArrangement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProdBranchApproval</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindCode</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindCovProdCommArr</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindExtraRiskCharge</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindFormRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindFundPolicyAllocation</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindOwnershipRole</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindParty</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindPolicy</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindPolicyComponent</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProduct</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProductSynonym</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindProdVarFilingApproval</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindRelevantPolicy</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindReqPolicyDistribution</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindSuppFormRequirement</class>
             <class>com.gwl.im.cdm.adapter.nbc.model.UsindValidProductCombo</class>
             <exclude-unlisted-classes />
             <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
             <property name="hibernate.transaction.manager_lookup_class"
             value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
            
             <property name="hibernate.hbm2ddl.auto" value="update"/>
            
            
             <property name="hibernate.show_sql" value="false"/>
             <property name="hibernate.use_sql_comments" value="false"/>
             <property name="hibernate.format_sql" value="false"/>
            
             <property name="hibernate.ejb.use_class_enhancer" value="true"/>
             <property name="hibernate.max_fetch_depth" value="1"/>
             <property name="hibernate.jdbc.batch_size" value="20"/>
            
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/nbcTestEntityManagerFactory" />
            
             </properties>
             </persistence-unit>
            -->
             <persistence-unit name="palis">
             <provider>org.hibernate.ejb.HibernatePersistence</provider>
             <jta-data-source>java:/palisDS</jta-data-source>
             <class>com.gwl.im.cdm.adapter.palis.model.ActTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.AdrTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.AgeCalTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.AppRsnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.AvoExlTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BenDgnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BenRelTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BenTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BilFrqTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BilTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BnkAccTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BrhTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Btc</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BtcDtl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BtcDtlTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BtcStsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BtcTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.BusChnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CitStaZip</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CmpTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CntJurTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ComCtgTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Con</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ConTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Cov</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CovTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CreCarAccTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Cst</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CstAdr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CstEml</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CstPhn</class>
             <class>com.gwl.im.cdm.adapter.palis.model.CstTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Cty</class>
             <class>com.gwl.im.cdm.adapter.palis.model.DocCtgTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.DocStsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.DocTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Dtproperties</class>
             <class>com.gwl.im.cdm.adapter.palis.model.DtpropertiesId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.EmlTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Evt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.EvtDtl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.EvtEtc</class>
             <class>com.gwl.im.cdm.adapter.palis.model.EvtGrpTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Ext</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FedResRouDir</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FnlTrnCtg</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FnlTrnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FnlTrnTypCtg</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Ftr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FtrTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FtrVal</class>
             <class>com.gwl.im.cdm.adapter.palis.model.FtrValId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.GwlCit</class>
             <class>com.gwl.im.cdm.adapter.palis.model.GwlCty</class>
             <class>com.gwl.im.cdm.adapter.palis.model.GwlSta</class>
             <class>com.gwl.im.cdm.adapter.palis.model.InsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.IntPtyTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.IssTrmTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.LobTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.MedEvdTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcAgnt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcAppl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcBene</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcClad</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcClba</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcCovr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcExtr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcHeader</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcInde</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcOwnr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcRefr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcRepl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcRequ</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcTrailer</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcTypMap</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NbcUwdb</class>
             <class>com.gwl.im.cdm.adapter.palis.model.NonForOptTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Org</class>
             <class>com.gwl.im.cdm.adapter.palis.model.OrgTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.OrgUsr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.OrgUsrId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.OrgWrkQue</class>
             <class>com.gwl.im.cdm.adapter.palis.model.OwnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PhnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Pol</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolAgt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolAgtDtl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBen</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBenHis</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBenSet</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBenSetHis</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBlk</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBlkTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolBnkAcc</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolCovRel</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolCovRelTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolCreCarAcc</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolDoc</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolFnl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolFnlSum</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolInsCov</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolInsExt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolInsRdr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolIntPty</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolLog</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolLogDtl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolLon</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolLonTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolNte</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolNteTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolPrm</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolPrmDtl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolPtp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolPtpAdr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolReq</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolReqChk</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolRpl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolRplTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolSpl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolSts</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolStsRsnTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolStsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolStsTypStx</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PolTrm</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PrmCalTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PrmIssLmt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Pro</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProBrh</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProBrhId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProCmp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProCmpId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProDurTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProExt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProExtId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProGrpTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProNonForOpt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProNonForOptId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProRdr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProRdrId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProRskCls</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProRskClsId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProSta</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProStaCmp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProStaCmpId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ProStaId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.PtpTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.RcvSrcTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Rdr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.RdrEnuFceAmt</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ReiTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ReqStsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.ReqTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.RskClsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.SplCtgTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.SplTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.SplCtgTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Sysdiagrams</class>
             <class>com.gwl.im.cdm.adapter.palis.model.TmpPalCodTbl</class>
             <class>com.gwl.im.cdm.adapter.palis.model.TrfPurTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.TrfSrcTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.UndWrtTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.Usr</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwExtras</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwExtrasId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwIcmF</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwIcmFId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwOfacF</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwOfacFId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwPaliscodes</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwPaliscodesId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwPaliscodeTypes</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwPaliscodeTypesId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwValuationsF00</class>
             <class>com.gwl.im.cdm.adapter.palis.model.VwValuationsF00Id</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItm</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmPri</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmPriId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmPriTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmQue</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmQueId</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmStsTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkItmTyp</class>
             <class>com.gwl.im.cdm.adapter.palis.model.WrkQueTyp</class>
             <exclude-unlisted-classes />
             <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
             <property name="hibernate.transaction.manager_lookup_class"
             value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
            
             <!--
             <property name="hibernate.default_schema" value="${palis.default.schema}"/>
             <property name="hibernate.default_catalog" value="${palis.default.catalog}"/>
             -->
             <property name="hibernate.hbm2ddl.auto" value="update"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/palisEntityManagerFactory"/>
            
             <!-- Logging -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.use_sql_comments" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
            
             <property name="hibernate.jdbc.batch_size" value="20"/>
            
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/palisEntityManagerFactory" />
            
             </properties>
             </persistence-unit>
            
            
            
            </persistence>
            


            Messages emitted during startup:

            04:57:43,356 INFO [TableMetadata] table found: cdm.USER_ROLE
            04:57:43,356 INFO [TableMetadata] columns: [role_id, user_id]
            04:57:43,356 INFO [TableMetadata] foreign keys: [user_role_role_id, user_role_user_id]
            04:57:43,356 INFO [TableMetadata] indexes: [user_role_role_id, user_role_user_id]
            04:57:43,357 INFO [DatabaseMetadata] table not found: USIND_ADDRESS
            04:57:43,358 INFO [DatabaseMetadata] table not found: USIND_APPLICATION
            04:57:43,359 INFO [DatabaseMetadata] table not found: USIND_APPROVED_FORM
            04:57:43,360 INFO [DatabaseMetadata] table not found: USIND_BENEFICIARY_DESIGNATION
            04:57:43,361 INFO [DatabaseMetadata] table not found: USIND_BILLING_ARRANGEMENT
            04:57:43,362 INFO [DatabaseMetadata] table not found: USIND_CODE
            04:57:43,362 INFO [DatabaseMetadata] table not found: USIND_COV_PROD_COMM_ARR
            04:57:43,363 INFO [DatabaseMetadata] table not found: USIND_EXTRA_RISK_CHARGE
            04:57:43,364 INFO [DatabaseMetadata] table not found: USIND_FORM_REQUIREMENT
            04:57:43,364 INFO [DatabaseMetadata] table not found: USIND_FUND_POLICY_ALLOCATION
            04:57:43,365 INFO [DatabaseMetadata] table not found: USIND_OWNERSHIP_ROLE
            04:57:43,365 INFO [DatabaseMetadata] table not found: USIND_PARTY
            04:57:43,366 INFO [DatabaseMetadata] table not found: USIND_POLICY
            04:57:43,367 INFO [DatabaseMetadata] table not found: USIND_POLICY_COMPONENT
            04:57:43,368 INFO [DatabaseMetadata] table not found: USIND_PRODUCT
            04:57:43,369 INFO [DatabaseMetadata] table not found: USIND_PRODUCT_SYNONYM
            04:57:43,370 INFO [DatabaseMetadata] table not found: USIND_PROD_BRANCH_APPROVAL
            04:57:43,370 INFO [DatabaseMetadata] table not found: USIND_PROD_VAR_FILING_APPROVAL
            04:57:43,372 INFO [DatabaseMetadata] table not found: USIND_RELEVANT_POLICY
            04:57:43,381 INFO [DatabaseMetadata] table not found: USIND_REQUIREMENT
            04:57:43,396 INFO [DatabaseMetadata] table not found: USIND_REQ_POLICY_DISTRIBUTION
            04:57:43,397 INFO [DatabaseMetadata] table not found: USIND_SUPP_FORM_REQUIREMENT
            04:57:43,399 INFO [DatabaseMetadata] table not found: USIND_VALID_PRODUCT_COMBO
            04:57:43,429 INFO [TableMetadata] table found: cdm.WIKI_DOCUMENT
            04:57:43,429 INFO [TableMetadata] columns: [name_as_title, footer, content, header_macros, content_macros, enable_comments_on_feeds, enable_comments, footer_macros, enable_comment_form, header, node_id]
            04:57:43,429 INFO [TableMetadata] foreign keys: [fkef88f0caa86700f6, fk_wiki_document_node_id]
            04:57:43,429 INFO [TableMetadata] indexes: [primary, fkef88f0caa86700f6, fk_wiki_document_node_id]
            04:57:43,442 INFO [TableMetadata] table found: cdm.WIKI_FILE



            • 3. Re: JBoss AS 5.1.0 Respect class tag in persistence.xml?
              jaikiran pai Master

               

              <exclude-unlisted-classes />


              Try changing it to
              <exclude-unlisted-classes>true</exclude-unlisted-classes>


              If that does not work then this is a Hibernate issue (we use Hibernate as your entity manager provider). A search in Hibernate JIRA shows similar issue(s) but have been marked as fixed in the version that JBoss AS 5.x already ships with.

              In case the above change does not work then please open a new forum thread in the Hibernate forum https://forum.hibernate.org/viewforum.php?f=1