[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs
kabir.khan@jboss.com
do-not-reply at jboss.com
Mon Jul 16 06:53:23 EDT 2007
I believe that the problem stems from the fact that your classes start with the com.sun prefix. When weaving we ignore a bunch of classes
| public boolean isNonAdvisableClassName(String classname)
| {
| if (ignoreClass(classname)) return true;
| if (includeClass(classname)) return false;
| if (excludeClass(classname)) return true;
| return (classname.startsWith("org.jboss.aop") ||
| classname.endsWith("$aop") ||
| classname.startsWith("javassist") ||
| classname.startsWith("org.jboss.util.") ||
| classname.startsWith("gnu.trove.") ||
| classname.startsWith("EDU.oswego.cs.dl.util.concurrent.") ||
| // System classes
| classname.startsWith("org.apache.tools.ant") ||
| classname.startsWith("org.apache.crimson") ||
| classname.startsWith("org.apache.xalan") ||
| classname.startsWith("org.apache.xml") ||
| classname.startsWith("org.apache.xpath") ||
| classname.startsWith("org.ietf.") ||
| classname.startsWith("org.omg.") ||
| classname.startsWith("org.w3c.") ||
| classname.startsWith("org.xml.sax.") ||
| classname.startsWith("sunw.") ||
| classname.startsWith("sun.") ||
| classname.startsWith("java.") ||
| classname.startsWith("javax.") ||
| classname.startsWith("com.sun.") ||
| classname.startsWith("junit") ||
| classname.startsWith("jrockit.") ||
| classname.startsWith("com.bea.vm.") ||
| classname.startsWith("$Proxy")
| );
| }
|
You will have to refactor your application to use another root package. While unfortunate, this is the simplest way we have at the moment to avoid weaving the com.sun classes internal to the JDK...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064486#4064486
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064486
More information about the jboss-user
mailing list