First off - thank you for spotting my type... :-/... lol. That would be VERY helpful having more meaningful exceptions - thank you :)!
Ok, that exception has disappeared. I'm trying the approach where, the war is deployed - with all classes in a jar in: WEB-INF/lib/classes.jar and the *-aop.xml file is deployed seperately. And I've tried deploying with the .aop and .war files inside of a single jar. I changed the *-aop.xml file to be: | <?xml version="1.0" encoding="UTF-8"?> | <aop> | <aspect class="test.dlens.myAspect" scope="PER_VM"/> | <bind pointcut="call(* com.dlens.myServlet->test(..) )"> | <advice name="myAdvice" aspect="test.dlens.myAspect" /> | </bind> | </aop> | Both of these deployments result in the following excetion: anonymous wrote : | 14:21:07,953 INFO [TomcatDeployer] deploy, ctxPath=/test, warUrl=.../tmp/deploy/tmp1962test.jar-contents/test-exp.war/ | 14:21:15,906 INFO [[/test]] Marking servlet testServ as unavailable | 14:21:15,921 ERROR [[testServ]] Allocate exception for servlet testServ | 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 java.lang.Class.newInstance0(Class.java:350) | at java.lang.Class.newInstance(Class.java:303) | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1055) | at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 | at org.jboss.aop.ClassAdvisor.resolveCallerMethodInfo(ClassAdvisor.java:1497) | at org.jboss.aop.ClassAdvisor.resolveCallerMethodInfoAsWeakReference(ClassAdvisor.java:1504) | at com.dlens.myServlet.(myServlet.java) | ... 22 more | Caused by: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 | at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:72) | at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:612) | at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:882) | at org.jboss.aop.ClassAdvisor.bindCallerInterceptorChain(ClassAdvisor.java:876) | at org.jboss.aop.ClassAdvisor.resolveCallerMethodInfo(ClassAdvisor.java:1492) | ... 24 more | Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 | at java.util.ArrayList.RangeCheck(ArrayList.java:546) | at java.util.ArrayList.get(ArrayList.java:321) | at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java:118) | at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:52) | at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:68) | ... 28 more | One thing i'm noticing is I'm not seeing any messages for the aop deployment and when the war is deployed by itself it works just fine. Thanks -Keith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988453#3988453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988453 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user