Hibernate version: 3.1.3
I just started playing around with EJB 3.0 annotations... wrote my first HelloWorld-type EAR, deployed it into JBoss, but I'm getting NoClassDefFoundError for org/hibernate/proxy/EntityNotFoundDelegate... google is proving useless. What's going on here?
Full stack trace of any exception that occurs:
Code:
13:51:18,183 WARN [ServiceController] Problem starting service persistence.units:ear=urbacon-config.ear,jar=urbacon-config.jar,unitName=config
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/hibernate/proxy/EntityNotFoundDelegate
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:105)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
... and so on
My persistence.xml file is (not that it really matters):
Code:
<persistence>
<persistence-unit name="config">
<jta-data-source>java:jdbc/AS</jta-data-source>
</persistence-unit>
</persistence>
And my entity bean is:
Code:
package net.urbacon.as.config;
import javax.persistence.*;
@Entity
@Table(name="local_config")
public class LocalConfig {
private int id;
private String name;
@Id
@Column(name="id")
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Column(name="name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}