working with minuteproject

ron c king
2012-08-19
2012-11-26
  • ron c king
    ron c king
    2012-08-19

    Hi All,

    I apologize for posting a minuteproject / openxava question here, but I don't see any support forum for minuteproject!
    I tried to use MP to build and openxava project, and got this error when attempting to run the generated app. How do I fix this?

    org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: techconf.techconf.domain.techconf.Grouppricingrule.pkId in techconf.techconf.domain.techconf.Pricingrule.grouppricingrulePricingruleViaPkId
    org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:685)
    org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:645)
    org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:65)
    org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1716)
    org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1423)
    org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375)
    org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1519)
    org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:193)
    org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1100)
    org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:282)
    org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:366)
    org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:182)
    org.openxava.jpa.XPersistence.createManager(XPersistence.java:108)
    org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingJPA(AnnotatedClassParser.java:2449)
    org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2365)
    org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2317)
    org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:66)
    org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:47)
    org.openxava.component.ComponentParser.parse(ComponentParser.java:36)
    org.openxava.component.MetaComponent.get(MetaComponent.java:60)
    org.openxava.controller.ModuleManager.setModuleName(ModuleManager.java:1000)
    org.apache.jsp.xava.home_jsp._jspService(home_jsp.java:168)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

     
  • Javier Paniza
    Javier Paniza
    2012-08-20

    Hi Ron,

    it usually means an error in the entities. Maybe, you have a case in your DB not supported by MinuteProject yet and surely with a little modification we achieve to start the application.
    Please, put here the code for Grouppricingrule and Pricingrule in order I can give you a more accurate tip.

    -------
    Help others in this forum as I help you.
    Before posting a question search this forum for the answer,
    and read the OpenXava documentation in openxava.org.

     
  • florian_adler
    florian_adler
    2012-08-21

    Hi,

    If you have questions and suggestions related to Minuteproject 4 Openxava you can send them at minuteproject@googlegroups.com

    Best regards,

    Florian.