8 Replies Latest reply on Dec 9, 2011 1:46 AM by archimagealex

    Hibernate classes are unavailable at WEB tier

    archimagealex

      I've a project, that uses JBoss AS7.0.2.Final as deployment target, Metawidget 1.30 as CRUD faces generator, PrimeFaces 3.0.M4 as presentation simplifier, Hibernate 4.0.0.CR2 as JPA provider.

       

      There is a problem to access from Metawidget to class org.hibernate.collection.PersistentBag, that encloses my entity's List property.

      In close collaboration with Richard Kennard we're found a solution, but it is a workaround, nor a final!

       

      Metawidget's library realization for default action Class.forName( "....PersistentBag" ) fails in the web tier when hibernate-core-4.0.0.CR2.jar is available in the app server!

       

      What is a cause of this and how to avoid at the future?

       

      Thanks for any advice, Alexander.