3 Replies Latest reply on Jun 5, 2009 2:26 AM by Aslak Knutsen

    can't get started, feel like screaming

    Jason Sachs Newbie

      I am trying to get started using Envers 1.2.0

      The demo does not work:

      C:\bin\install\java\database\test>java -jar envers-console-demo.jar
      Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.hibernate.engine.CascadeStyle.<init>
      ()V from class org.hibernate.engine.EJB3CascadeStyle$1
       at org.hibernate.engine.EJB3CascadeStyle$1.<init>(EJB3CascadeStyle.java:24)
       at org.hibernate.engine.EJB3CascadeStyle.<clinit>(EJB3CascadeStyle.java:19)
       at org.hibernate.ejb.event.EJB3PersistEventListener.<clinit>(EJB3PersistEventListener.java:19)
       at org.hibernate.ejb.EventListenerConfigurator.<init>(EventListenerConfigurator.java:81)
       at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:136)
       at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)
       at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
       at org.jboss.envers.demo.TestConsole.main(TestConsole.java:452)


      Also the docs for envers-1.2.0 chapter 6 reference org.hibernate.tool.ant.EnversHibernateToolTask and I can't for the life of me figure out where the appropriate jar file can be downloaded so i can give "ant" a clue about how to run it. :( Really frustrating.