I am having a problem where my class files aren't being read by the ASM compiler correctly. This problem only occurs when I run my application from within Tomcat and not from a jUnit test case.
My setup has the asm jars (2.2.1) in tomcat's common/lib folder, along with cglib jar. I had to move these out from the webapps/lib folder due to some other dependency issues.
My AOP advice classes actually live within my web application's lib folder (no asm/cglib jars there since they are in common/lib).
My problem is I keep receiving this stack track on startup.
I assume my problem is because my asm and cglib jars are at the common/lib level but my actual auditing java classes live within my web application. If this is the problem, is there any way to fix this or another solution anyone can think of?
Thanks!
--Grant
My setup has the asm jars (2.2.1) in tomcat's common/lib folder, along with cglib jar. I had to move these out from the webapps/lib folder due to some other dependency issues.
My AOP advice classes actually live within my web application's lib folder (no asm/cglib jars there since they are in common/lib).
My problem is I keep receiving this stack track on startup.
Code:
INFO: Bean 'userActionAspect' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) INFO: IOException whilst attempting to read .class file for class com.vodori.bluebird.component.audit.aspects.AdviceUserActionAspect - unable to determine parameter names for meth od auditNewRegistration java.io.IOException: Class not found at org.objectweb.asm.ClassReader.a(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.objectweb.asm.ClassReader.<init>(Unknown Source) at org.springframework.core.LocalVariableTableParameterNameDiscover.visitMethod(LocalVariableTableParameterNameDiscover.java:109) at org.springframework.core.LocalVariableTableParameterNameDiscover.getParameterNames(LocalVariableTableParameterNameDiscover.java:53) at org.springframework.core.PrioritizedParameterNameDiscoverer.getParameterNames(PrioritizedParameterNameDiscoverer.java:54) at org.springframework.aop.aspectj.AbstractAspectJAdvice.bindArgumentsByName(AbstractAspectJAdvice.java:368) at org.springframework.aop.aspectj.AbstractAspectJAdvice.calculateArgumentBindings(AbstractAspectJAdvice.java:330) at org.springframework.aop.aspectj.AbstractAspectJAdvice.afterPropertiesSet(AbstractAspectJAdvice.java:292) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:861) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:830) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:410) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:102) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:765) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:406) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:152) at org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator.findCandidateAdvisors(DefaultAdvisorAutoProxyCreator.java:114) .............
Thanks!
--Grant
Comment