-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Har deployment and entity not found error
PostPosted: Wed Aug 24, 2005 11:59 pm 
Newbie

Joined: Mon Aug 30, 2004 5:15 pm
Posts: 13
I am using jboss 4.0.2 and I am trying to deploy a har. I have tried many different options, with none of them working. Right now I have created a har with just my hbm.xml mappings and my hibernate-server.xml. I placed this har in the deploy folder. I made a jar of all of my *.class files and placed that in the server/default/lib folder. When I start jboss, it looks like the har deploys correctly, but then I get an entity not found error.

Code:
2005-08-24 23:18:55,550 INFO  [org.hibernate.cfg.Configuration] Searching for mapping documents in jar: titansbuzz.har
2005-08-24 23:18:55,552 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: titansbuzz/hibernate/hbm/Channel.hbm.xml
2005-08-24 23:18:55,873 INFO  [org.hibernate.cfg.HbmBinder] Mapping class: titansbuzz.hibernate.entity.Channel -> channel
2005-08-24 23:18:55,943 INFO  [org.hibernate.cfg.HbmBinder] Mapping collection: titansbuzz.hibernate.entity.Channel.excludes -> channel_ex$
2005-08-24 23:18:55,946 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: titansbuzz/hibernate/hbm/Queries.hbm.xml
2005-08-24 23:18:56,230 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: titansbuzz/hibernate/hbm/Story.hbm.xml
2005-08-24 23:18:56,295 INFO  [org.hibernate.cfg.HbmBinder] Mapping class: titansbuzz.hibernate.entity.Story -> story
2005-08-24 23:18:56,321 INFO  [org.hibernate.cfg.Configuration] processing extends queue
2005-08-24 23:18:56,321 INFO  [org.hibernate.cfg.Configuration] processing collection mappings
2005-08-24 23:18:56,323 INFO  [org.hibernate.cfg.HbmBinder] Mapping collection: titansbuzz.hibernate.entity.Channel.stories -> story
2005-08-24 23:18:56,324 INFO  [org.hibernate.cfg.Configuration] processing association property references
2005-08-24 23:18:56,325 INFO  [org.hibernate.cfg.Configuration] processing foreign key constraints
2005-08-24 23:18:56,362 INFO  [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
2005-08-24 23:18:56,366 INFO  [org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:/TitansDS
2005-08-24 23:18:57,037 INFO  [org.hibernate.cfg.SettingsFactory] RDBMS: PostgreSQL, version: 7.2.4
2005-08-24 23:18:57,040 INFO  [org.hibernate.cfg.SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.0 JDBC3 wit$
2005-08-24 23:18:57,130 INFO  [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
2005-08-24 23:18:57,154 INFO  [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATra$
2005-08-24 23:18:57,155 INFO  [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
2005-08-24 23:18:57,160 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibe$
2005-08-24 23:18:57,160 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup
2005-08-24 23:18:57,160 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibe$
2005-08-24 23:18:57,161 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup
2005-08-24 23:18:57,161 INFO  [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): enabled
2005-08-24 23:18:57,161 INFO  [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: enabled
2005-08-24 23:18:57,161 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch size: 20
2005-08-24 23:18:57,161 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: enabled
2005-08-24 23:18:57,165 INFO  [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled
2005-08-24 23:18:57,165 INFO  [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled
2005-08-24 23:18:57,165 INFO  [org.hibernate.cfg.SettingsFactory] Connection release mode: null
2005-08-24 23:18:57,169 INFO  [org.hibernate.cfg.SettingsFactory] Maximum outer join fetch depth: 1
2005-08-24 23:18:57,169 INFO  [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1
2005-08-24 23:18:57,169 INFO  [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled
2005-08-24 23:18:57,170 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled
2005-08-24 23:18:57,170 INFO  [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2005-08-24 23:18:57,182 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
2005-08-24 23:18:57,183 INFO  [org.hibernate.cfg.SettingsFactory] Query language substitutions: {no='N', true=1, yes='Y', false=0}
2005-08-24 23:18:57,183 INFO  [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled
2005-08-24 23:18:57,183 INFO  [org.hibernate.cfg.SettingsFactory] Query cache: enabled
2005-08-24 23:18:57,183 INFO  [org.hibernate.cfg.SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
2005-08-24 23:18:57,197 INFO  [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled
2005-08-24 23:18:57,197 INFO  [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled
2005-08-24 23:18:57,197 INFO  [org.hibernate.cfg.SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
2005-08-24 23:18:57,230 INFO  [org.hibernate.cfg.SettingsFactory] Statistics: disabled
2005-08-24 23:18:57,231 INFO  [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled
2005-08-24 23:18:57,234 INFO  [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo
2005-08-24 23:18:57,585 INFO  [org.hibernate.impl.SessionFactoryImpl] building session factory
2005-08-24 23:18:57,872 ERROR [org.jboss.hibernate.jmx.Hibernate] Starting failed jboss.har:service=HibernateTitansbuzz
org.hibernate.MappingException: entity class not found: titansbuzz.hibernate.entity.Story
        at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:89)
        at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:160)
        at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:42)
        at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:108)
        at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:400)
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
        at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:211)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
        at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:611)
        at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)


I am confused because I placed all my files in the server/lib directory so everything should be visible. Does anyone know why this is happening? I have verified that the jar in the lib folder does contain the missing entity, titansbuzz.hibernate.entity.Story


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 9:09 am 
Newbie

Joined: Mon Aug 30, 2004 5:15 pm
Posts: 13
Sorry about that, I was having a late night lapse. My jar files weren't being packaged correctly and that caused the problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.