-->
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: AnnotationConfiguration/Configuration problem
PostPosted: Wed Oct 15, 2008 10:07 am 
Newbie

Joined: Wed Oct 15, 2008 9:53 am
Posts: 2
Location: Netherlands
Hi,

When running the app on OSX 10.5.4 all works great and combining xml mappings and Annotated mappings is no problem. When deployed on FEDORA 2 i686 the below exception occurs however. It seems to point to wrong versioning but I tried a number of combinations that all worked locally and none on fedora.

Does anyone have more pointers for us?

Thank you,
Joost Schouten

Hibernate version:
hibernate-core: 3.3.0.GA
hibernate-annotations:3.4.0.GA
hibernate-commons-annotations:3.1.0.GA

Full stack trace of any exception that occurs:
Code:
java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Configuration.xmlHelper
from class org.hibernate.cfg.AnnotationConfiguration
   at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:760)
   at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:64)
   at com.joostschouten.common.service.db.hibernate.TransactionalHibernateServiceManager.setupConfiguration(TransactionalHibernateServiceManager.java:203)
   at com.joostschouten.common.service.db.hibernate.TransactionalHibernateServiceManager.getSessionFactory(TransactionalHibernateServiceManager.java:173)
   at com.joostschouten.common.service.db.hibernate.HibernateTransactionBranch.start(HibernateTransactionBranch.java:63)
   at com.joostschouten.common.transactionmanagement.TransactionalService.monitorNewTransaction(TransactionalService.java:267)
   at com.joostschouten.common.transactionmanagement.TransactionalService.start(TransactionalService.java:181)
   at com.joostschouten.common.service.db.hibernate.TransactionalHibernateServiceManager.start(TransactionalHibernateServiceManager.java:302)
   at com.joostschouten.common.transactionmanagement.TransactionalService.getBranch(TransactionalService.java:208)
   at com.joostschouten.common.transactionmanagement.TransactionalService.getBranch(TransactionalService.java:188)
   at com.joostschouten.common.service.db.hibernate.TransactionalHibernateServiceManager.getHibernateBranch(TransactionalHibernateServiceManager.java:311)
   at com.joostschouten.common.service.db.hibernate.TransactionalHibernateServiceManager.getSession(TransactionalHibernateServiceManager.java:315)
   at com.joostschouten.common.service.db.hibernate.GenericHibernateService.getSession(GenericHibernateService.java:34)
   at com.joostschouten.businessadmin.service.db.hibernate.HibernateLicenseService.getAllActiveLocalLicenses(HibernateLicenseService.java:55)
   at com.joostschouten.businessadmin.context.BAApplicationContext.loadContextChildren(BAApplicationContext.java:108)
   at com.joostschouten.common.http.tapestrybase.services.BaseModule.buildApplicationContext(BaseModule.java:55)
   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.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:75)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:233)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.access$100(ModuleImpl.java:35)
   at org.apache.tapestry5.ioc.internal.ModuleImpl$1.invoke(ModuleImpl.java:168)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:138)
   at org.apache.tapestry5.ioc.internal.ModuleImpl$2.invoke(ModuleImpl.java:185)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:192)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.getService(ModuleImpl.java:89)
   at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:303)
   at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getService(ObjectLocatorImpl.java:39)
   at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameterValue(InternalUtils.java:189)
   at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:235)
   at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParametersForMethod(InternalUtils.java:214)
   at org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:90)
   at org.apache.tapestry5.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:56)
   at org.apache.tapestry5.ioc.internal.RegistryImpl.addToUnorderedConfiguration(RegistryImpl.java:481)
   at org.apache.tapestry5.ioc.internal.RegistryImpl.getUnorderedConfiguration(RegistryImpl.java:355)
   at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getUnorderedConfiguration(ServiceResourcesImpl.java:72)
   at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.addUnorderedConfigurationParameter(AbstractServiceCreator.java:140)
   at org.apache.tapestry5.ioc.internal.AbstractServiceCreator.getParameterDefaultsWithConfiguration(AbstractServiceCreator.java:106)
   at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.getParameterDefaultsWithConfigurations(ServiceBuilderMethodInvoker.java:46)
   at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:67)
   at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
   at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:52)
   at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:50)
   at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
   at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:65)
   at $Alias_11cf744a474.delegate($Alias_11cf744a474.java)
   at $Alias_11cf744a474.getObjectProvider($Alias_11cf744a474.java)
   at org.apache.tapestry5.services.TapestryModule$1.provide(TapestryModule.java:556)
   at org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObjectProviderImpl.java:38)
   at $MasterObjectProvider_11cf744a471.provide($MasterObjectProvider_11cf744a471.java)
   at org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:626)
   at org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:733)
   at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:49)
   at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameterValue(InternalUtils.java:205)
   at org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:235)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.constructModuleBuilder(ModuleImpl.java:337)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.access$400(ModuleImpl.java:35)
   at org.apache.tapestry5.ioc.internal.ModuleImpl$3.run(ModuleImpl.java:274)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:198)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:196)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:138)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:204)
   at org.apache.tapestry5.ioc.internal.ModuleImpl$4.invoke(ModuleImpl.java:282)
   at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83)
   at org.apache.tapestry5.ioc.internal.ModuleImpl.getModuleBuilder(ModuleImpl.java:290)
   at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getModuleBuilder(ServiceResourcesImpl.java:105)
   at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:59)
   at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
   at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:52)
   at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:50)
   at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
   at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:65)
   at $ServletApplicationInitializer_11cf744a470.delegate($ServletApplicationInitializer_11cf744a470.java)
   at $ServletApplicationInitializer_11cf744a470.initializeApplication($ServletApplicationInitializer_11cf744a470.java)
   at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:91)
   at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:134)
   at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:169)
   at com.caucho.server.webapp.Application.buildInvocation(Application.java:1830)
   at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:728)
   at com.caucho.server.host.Host.buildInvocation(Host.java:459)
   at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:353)
   at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:653)
   at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:198)
   at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:415)
   at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
   at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
   at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
   at java.lang.Thread.run(Thread.java:595)


Name and version of the database you are using:
MySQL 5.0


Top
 Profile  
 
 Post subject: RE: AnnotationConfiguration/Configuration problem
PostPosted: Thu Oct 16, 2008 4:33 am 
Newbie

Joined: Wed Oct 15, 2008 9:53 am
Posts: 2
Location: Netherlands
After some more searching my suspicion of a version problem was correct. I found an older hibernat3.jar on the classpath hidden away from me because it was owned by the root user and thus hidden away from us when searching the lib's.

find / -name '*hibernate*'

pointed executed by root showed us the hidden jar.

Cheers,
Joost


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.