Joined: Mon Jul 20, 2009 3:10 am Posts: 9
|
I am getting this error, while trying to deploy beans annotated using JPA. Beans from the second package or referencing beans from the first package and it fails with the following error. What should I do in order to resolve this class loader issue?
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.two.domain.Idea.user references an unknown entity: com.one.domain.User: @OneToOne or @ManyToOne on com.two.domain.Idea.user references an unknown entity: com.one.domain.User ... at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPa ss.java:81) at org.hibernate.cfg.AnnotationConfiguration.processEndOfQueue(Anno tationConfiguration.java:456) at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInO rder(AnnotationConfiguration.java:438) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(Anno tationConfiguration.java:309) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java :1148) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configurat ion.java:1226) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListe nerConfigurator.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.createContainerEntityMana gerFactory(HibernatePersistence.java:131) ... 46 more
|
|