Hi all, I'm having problems with Tapestry and JPA together using Hibernate as the provider. When i try to make a connection, tapestry gives me this exception:
org.apache.tapestry.BindingException Exception invoking listener method gravar of component Home: Failure invoking listener method 'public org.apache.tapestry.IPage site.Home.gravar()' on [EMAIL PROTECTED]: javax/persistence/Persistence [EMAIL PROTECTED] parameter action, component=Home, methodName=gravar, location=context:/WEB-INF/Home.html, line 29] java.lang.NoClassDefFoundError javax/persistence/Persistence code: import javax.persistence.*; public final class Connection { private static EntityManagerFactory factory = null; private static EntityManager manager = null; private Connection(){ factory = Persistence.createEntityManagerFactory("exemplo"); //the problem is here manager = factory.createEntityManager(); } ... it seems that the app cannot found the class javax.persistence.Persistence, but the jar is on the lib directory... i don't know why he is giving me this exception because on an non-web environment everything is doing fine. When i switch the provider to Toplink, i can connect fine too, but my db doesn't support it. Am i missing something? Any help will be appreciated! -- Atenciosamente, Marcelo Lotif