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