Hello
I'm trying to deploy a simple POC (proof of concept) in several application servers. My POC uses jsf (richfaces) + spring + jpa (hibernate).
So far I was successful in deploying in Tomcat, Glasfish, Weblogic and Websphere. My last application server is Netweaver. And despite the different configuration files (applications.xml and etc) that each application server has, I was able to deploy this POC without any changes in the code. Now in Netweaver I'm getting the following error:
Code:
Caused by: java.lang.NullPointerException: while trying to invoke the method org.hibernate.mapping.PersistentClass.getTable() of an object loaded from local variable 'classMapping'
at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:416)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:309)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1162)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
... 32 more
This doesn't help me. It does suggest that there is something wrong with a relationship mapping, but I can't figure out what and how to fix it.
Can anybody help me with this ?
thanks a lot.
sincerely,
John