-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NoClassDefFoundError: EntityNotFoundDelegate
PostPosted: Mon Jun 26, 2006 2:02 pm 
Newbie

Joined: Sun Jan 08, 2006 4:53 pm
Posts: 6
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;
   }
   
   
}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 2:25 pm 
Newbie

Joined: Sun Jan 08, 2006 4:53 pm
Posts: 6
Okay problem solved.

I swapped the 3.1.3 hibernate3.jar for the hibernate3.jar that comes with the JBoss EJB 3.0 RC8 package and things are working properly now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.