Entity « Tomcat « JPA Q&A





1. Entity is not weaved. Eclipselink 2.1 + Dynamic Weaving    stackoverflow.com

I have a J2EE application that is running on tomcat with a couple of entity classes and using eclipselink 2.1 and jpa 2.0. The entities are EmailNotification and EmailNotificationQueueRow.

@Entity
public class EmailNotification implements ...

2. Generating entities with Hibernate, Tomcat 6, JEE5    stackoverflow.com

I'm trying to generate a database created from entities. I'm using Hibernate, PostgreSQL, Tomcat6 and Eclipse for development. Here's what one of the entities look like:

package pass.entities;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import ...

3. After deployment to tomcat: entity class not found    forum.hibernate.org

Hello, I've successfully created all hbm,POJO and DAO files using Hibernate tool which is great!!! Once deploy to Tomcat I got the exception: nested exception is org.hibernate.MappingException: entity class not found: MyClass the full stack is: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: ...