We use asm 1.5.3 in 2.x. You might try adding asm-attrs-1.5.3.jar and see if that helps?
matt On 2/16/07, Ding, Qin <[EMAIL PROTECTED]> wrote:
I use appfuse 1.9.4. I tried to use Spring AOP to do logging and email exception. The aplicationContext-logging.xml is like this: --------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> <aop:config> <aop:pointcut id="serviceMethod" expression="execution(* com. mycompany.service.impl.*.*(..))" /> <aop:aspect ref="exceptionEmailer"> <aop:after-throwing throwing="exception" pointcut-ref="serviceMethod" method="emailException" /> </aop:aspect> </aop:config> <bean id="exceptionEmailer" class="com.vhcnet.util.ExceptionEmailer" /> <bean id="dummy" class="com.mycompany.service.impl.DummyManager" /> </beans> ------------------------------------ After I start tomcat, I got the error: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor Someone suggested I remove asm.jar from hibernate; instead, use asm-all-2.2.3.jar. I did that but got this error: -------------------------------------- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor -------------------------------------- What's the correct version of asm jar should I use? I'd like to hear if anyone has come across this issue and how you have resolved it. Thanks. Qin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
