I've set the provider to: org.eclipse.persistence.jpa.PersistenceProvider But I still have this error: ERROR - JAVA AGENT NOT INSTALLED. The JPA Persistence Provider requested installation of a ClassFileTransformer which requires a JavaAgent. See http://openejb.apache.org/3.0/javaagent.html I tried lauching the junit test with the parameter : java -javaagent:openejb-javaagent-3.0-beta-2.jar But no way* :(
* 2009/10/21 Quintin Beukes <[email protected]> > Or maybe it is just that the JPA provider you're using requires one - > since the error says that. Either way, try setting up the openejb > JavaAgent. It's available in the lib/ directory of the standalone > distribution. > Then just point the -javaagent argument of the VM to this jar. > > Also, as far as I know classpath.ear is a "virtual" EAR, which > internally wraps all directory classpaths, where an EJB jar is wrapped > in a "virtual" EAR matching it's application name. > > Can you perhaps provide the full output? > > Quintin Beukes > > > > On Wed, Oct 21, 2009 at 4:47 PM, Quintin Beukes <[email protected]> > wrote: > > Is this the standalone? I assume so from the Java Agent error - at > > least, I don't see how the Java Agent could work in embedded unless > > you explicitly tell it to? > > > > Quintin Beukes > > > > > > > > On Wed, Oct 21, 2009 at 4:08 PM, El Arbi Aboussoror > > <[email protected]> wrote: > >> Hello, > >> > >> > >> I've a problem with the "classpath.ear". I've added the OpenEJB lib to > my > >> EJB eclipse project. And I'v started a JUnit test. And this is the > trace: > >> > >> *... > >> ERROR - Application could not be deployed: classpath.ear > >> org.apache.openejb.OpenEJBException: Creating application failed: > >> classpath.ear: ParsedName{path=openejb/client/javassist/comp/env, > >> component=env} > >> ....* > >> > >> I have also an error using the PersistenceProvider, I've put > >> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> > >> in my pesistence.xml but I still have this error: > >> *ERROR - JAVA AGENT NOT INSTALLED. The JPA Persistence Provider > requested > >> installation of a ClassFileTransformer which requires a JavaAgent. See > >> http://openejb.apache.org/3.0/javaagent.html* > >> > >> Any help ? > >> > > >
