Re: [aspectwerkz-user] Re: How to point to WEB-INF/aop.xml with offline weaving?

Alexandru Popescu <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote Jing Xue::on 4/24/2005 10:00 PM]
> 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
> 

What i don't get is where are your classes deploeyed if you don't have a WEB-INF/classes. I advise
you to place the aop.xml file under a META-INF dir as explained in a previous mail, as
WEB-INF/aop.xml is only working with Tomcat (afaik).

- --:alex |.::the_mindstorm::.|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCbBIxOCPjdDT2FEURAoFqAKCiBTlybLdYkfEFb3mdxc5ZfoS/0gCgqOjv
hA5XqjFal96uivULJWunE9Q=
=ArW2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.