I am using Jboss 4.2.1, I create an aspect and have the followling exception when deploy in JBoss and compiled from Eclipse:
Pointcut is not well-formed: expecting 'name pattern' at character position 116execution(public com.XXXX.XXXX.backingbean.publish.PublishDAO.publi shDocument(DocumentItem) && args(documentItem))
this is my Aspect class:
package com.XXXX.XXXX.aop;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import com.XXXX.XXXX.bo.DocumentItem;
@Aspect
public class DashBoardAspect {
Log log=LogFactory.getLog(DashBoardAspect.class);
public void saveSuccessLogin(){
}
@After("execution(public com.XXXX.XXXX.backingbean.publish.PublishDAO.publi shDocument(DocumentItem) && args(documentItem))")
public void saveDocumentItem(DocumentItem documentItem){
log.info("-------------documentItemID:"+documentItem.getId());
}
}
This is when I put in the spring configuration file
<aop:aspectj-autoproxy/>
<bean id="dashBoardAspect" class="com.XXXX.XXXX.aop.DashBoardAspect"/>
thanks for your help


Reply With Quote