Hi, 

I deployed an ear the aop is present in the ear has an .aop archive with the 
meta-inf folder containing the jboss-aop.xml containing all the point cuts . 

However when i run the EJB client to access the EJB deployed in the ear am 
getting a class cast exception for the interceptor 


  | Exception in thread "main" java.lang.ExceptionInInitializerError
  |     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  |     at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  |     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  |     at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:514)
  |     at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
  |     at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
  |     at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)
  |     at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
  |     at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |     at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  |     at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |     at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |     at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |     at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
  |     at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |     at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  |     at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
  |     at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
  |     at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
  |     at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
  | Caused by: java.lang.ClassCastException: com.src.platform.aop.AopInterceptor
  | 
  | 

This is the packaging of the ear 

EAR 
      -> META-INF
                     -> application.xml
                     -> jboss-aop.xml
          Lib
                  -> common jar
         EJBModule.jar
         MySample.aop

-Chandra 







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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132871
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to