|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Undeploying app: classpath.earHello,
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 ? |
|
|
Re: Undeploying app: classpath.earIs 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 <aboussoror@...> 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 ? > |
|
|
Re: Undeploying app: classpath.earOr 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 <quintin@...> 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 > <aboussoror@...> 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 ? >> > |
|
|
Re: Undeploying app: classpath.earBy "standalone" you mean that I didn't use an app server ?
2009/10/21 Quintin Beukes <quintin@...> > 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 > <aboussoror@...> 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 ? > > > |
|
|
Re: Undeploying app: classpath.earI'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 <quintin@...> > 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 <quintin@...> > 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 > > <aboussoror@...> 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 ? > >> > > > |
|
|
Re: Undeploying app: classpath.earYes, you get the WAR for Tomcat, OpenEJB in Geronimo, embedded run by
creating an InitialContext using LocalInitialContextFactory, and standalone (which is a client/server you start by running bin/openejb in the distribution). By default the standalone starts an agent. So I figure your's is embedded? Further, you can just do -javaagent:[agent-jar]. You [agentjar] has to found in the path you give. So in your case it would have to be in the same directory you're running the java command from. Try giving it a full path to an existing openejb-javaagent jar. Check your "lib/" directory in the OpenEJB distribution, or give me your OpenEJB version and I'll give you it's filename. Quintin Beukes On Wed, Oct 21, 2009 at 6:16 PM, El Arbi Aboussoror <aboussoror@...> wrote: > By "standalone" you mean that I didn't use an app server ? > > 2009/10/21 Quintin Beukes <quintin@...> > >> 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 >> <aboussoror@...> 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 ? >> > >> > |
|
|
Re: Undeploying app: classpath.earThanks ! it works.
|
| Free embeddable forum powered by Nabble | Forum Help |