It’s there, it’s not, it’s there now, it’s not.

April 24, 2005 – 21:07 | aop, java

This below is done with aspectwerkz 2.0 in Tomcat 5.5.7.

I have a web app, which I offline-wove with the aspectwerkzc ant task. When I deploy the web app to tomcat (in exploded format), the same aop.xml is copied to WEB-INF/aop.xml. Then when I try to run the web app, none of the aspects would kick in. But if I go to the deployed web app directory, create an empty directory WEB-INF/classes (note that the aop.xml is still under WEB-INF), restart the server, and try to access the web app again, everything works fine.

After a few email exchange with Alexandru Popescu from the Aspectwerkz team, it appears that “WEB-INF/aop.xml would only work in tomcat.” So I moved the file to WEB-INF/classes/META-INF/aop.xml. Now everything works fine.

Trackback from your site, or follow the comments in RSS.

Post a Comment