Hi,
I've a little problem when I want to deploy my application on WebLogic 9.1. I think there is a problem whith version compatibility between Core and Annotations. Here is the code that generate the "java.lang.NoSuchMethodError: table" exception :
Ejb3Column : ligne 366
Code:
column.setSecondaryTableName( col.table() );
The "col" variable is an object of type org.hibernate.mapping.Column which doesn't contain any table() method.
For information, when I deploy the same application on JOnAS application server, it works well... strange.
Thanks for your help.
RK
Hibernate version:
- Core : 3.2.2.GA
- Annotations : 3.3.0.GA
- EntityManager : 3.3.1.GA
Full stack trace of any exception that occurs:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gererCataloguesApplicatif' defined in class path resource [dep
endenciesInjectionContext.xml]: Cannot resolve reference to bean 'gererCataloguesMetier' while setting bean property 'gererCataloguesMetier'; nested e
xception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gererCataloguesMetier' defined in class path resou
rce [dependenciesInjectionContext.xml]: Cannot resolve reference to bean 'catalogueDao' while setting bean property 'catalogueDao'; nested exception i
s org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myEntityManagerFactory' defined in class path resource [jpaD
aoContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: table
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:279)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
Truncated. see log file for complete stacktrace
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gererCataloguesMetier' defined in class path resource [depende
nciesInjectionContext.xml]: Cannot resolve reference to bean 'catalogueDao' while setting bean property 'catalogueDao'; nested exception is org.spring
framework.beans.factory.BeanCreationException: Error creating bean with name 'myEntityManagerFactory' defined in class path resource [jpaDaoContext.xm
l]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: table
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:279)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
Truncated. see log file for complete stacktrace
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myEntityManagerFactory' defined in class path resource [jpaDao
Context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: table
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1113)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:431)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)
Truncated. see log file for complete stacktrace
java.lang.NoSuchMethodError: table
at org.hibernate.cfg.Ejb3Column.buildColumnFromAnnotation(Ejb3Column.java:366)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1128)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
Truncated. see log file for complete stacktrace
>
<5 juil. 2007 18 h 12 CEST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'springoo'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:876)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
Truncated. see log file for complete stacktrace
java.lang.NoSuchMethodError: table
at org.hibernate.cfg.Ejb3Column.buildColumnFromAnnotation(Ejb3Column.java:366)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1128)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:733)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:498)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
Truncated. see log file for complete stacktrace
>