-->
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.  [ 1 post ] 
Author Message
 Post subject: Classloader problem with AttributeOverrides
PostPosted: Wed Oct 18, 2006 4:29 am 
Newbie

Joined: Wed Oct 18, 2006 3:56 am
Posts: 1
Hello,

I'm getting the exception
Code:
java.lang.IllegalArgumentException: interface javax.persistence.AttributeOverrides is not visible from class loader


When trying to use the following Ant excerpt
Code:
<target name="hbm2dll">
   <hibernatetool>
      <annotationconfiguration configurationfile="${source.root}/hibernate.cfg.xml" />
      <hbm2ddl destdir="${generated.sql.dir}" outputfilename="schemas.ddl" drop="true" console="false" />
   </hibernatetool>
</target>


on a class with the following annotations:
Code:
@Entity
@Table(name = "order_document")
@AttributeOverrides({@AttributeOverride(name = "id", column = @Column(name = "order_id"))})
public class Order extends Document implements Serializable {
...
}


(which inherits from:)
Code:
@MappedSuperclass
public abstract class Document implements Serializable {
  private Long id;

  ...

  @Id
  @GeneratedValue(generator = "increment_id")
  @GenericGenerator(name = "increment_id", strategy = "increment")
  public Long getId() {
   return id;
  }

  ...

}


I've tried running it from within Eclipse and from the command prompt. The jar files concerning Hibernate, Hibernate Annotations and Persistence API are all upgraded to newest versions (Hibernate 3.2.0GA, EJB 3.0 Final). And Google isn't very helpful. :(

Any ideas to what it could be?


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

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.