java - IllegalAccess Error JPA -
hey take illegalaccess error, entitymanager
caused by: java.lang.illegalaccesserror: sessionbean/accounts
the client starts methode on
public static void main(string args[]) { sessionbean.connect(); sessionbean.create(); }
the sessionbean
@override public void create() { em.persist(new accounts("test", "test")); }
you have old copy of accounts.class
floating around, or it's defined differently in more 1 jar on runtime classpath.
Comments
Post a Comment