Re: [aspectwerkz-user] Re: How to point to WEB-INF/aop.xml with offline weaving?
Jing Xue <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Alexandru Popescu wrote: >I am not sure I understood what you're trying to achieve. >If you try to use offline weaving you still need the aop.xml at runtime. So after compile step, you >run the aspectwerkz.bat using -offiline mode, and at runtime you provide the aop.xml in either >META-INF dir or throught the system property -Daspectwerkz.definition.file= > > I understand I still need aop.xml at runtime. I have a web app, which I offline weaved with the aspectwerkzc ant task (which I assume does the same the bat file does). 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, restart the server, and try to access the web app again, everything works fine. I hope I made myself clearer. Thanks. --Jing Xue