[jboss-user] [JBoss AOP] - Exception while loadtime weaving

guericke do-not-reply at jboss.com
Tue Aug 26 05:24:17 EDT 2008

Hi all,

I installed Jboss Server with jems-installer-1.2.0.GA.jar. 

I have developed a small test application that tries to intercept call to ejbs. 

My xml snippet of jboss-aop.xml is

  | <interceptor name="MyEjbInterceptor" 
  | 		   class="interceptors.interceptors.EjbInterceptor"  
  |                    scope="PER_VM" />
  | <bind pointcut="execution(* $instanceof{javax.ejb.EjbHome}->*(..)) 
  |                  OR  execution(* $instanceof{javax.ejb.EJBObject}->*(..))">
  | 	<interceptor-ref name="MyEjbInterceptor" />
  | </bind>   

I put this jboss-aop.xml in META-INF folder of my jar file.

When i tried to run my client application using VM arguments

  | -javaagent:C:\eclipse-3.1.2\plugins\org.jboss.ide.eclipse.jdt.aop.core_1.1.1.GA\jboss-aop-jdk50.jar

i got the following exception:

  | java.lang.reflect.InvocationTargetException
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
  | Caused by: java.lang.NoSuchFieldError: classPoolFactory
  | 	at org.jboss.aop.standalone.Agent.premain(Agent.java:26)
  | 	... 5 moreFATAL ERROR in native method: processing of -javaagent failed
  | Exception in thread "main" 

I have placed all of jar files from AOP on my classpath. 

I tried it with other different AOP versions with eclipse 3.1, 3.3 but always get exceptions.

Can anybody tell me what is missing? and why i am getting this exception

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172516#4172516

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172516

More information about the jboss-user mailing list