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/25/2005 2:43 AM] > Alexandru Popescu wrote: > >>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). >> >> > > All of my classes are in a jar file in WEB-INF/lib, as well as other > resource files. So I don't need WEB-INF/classes. I thought that was a > typical setup? > > I have moved the aop.xml to under WEB-INF/classes/META-INF. It works > perfectly now. Thanks for all the help (to Bruno Borges, too). I'm > just still a bit worried about whether a > WEB-INF/classes/META-INF/aop.xml has exactly the same semantics as a > WEB-INF/aop.xml. Also, may I suggest to add to the document that > WEB-INF/aop.xml only works with tomcat? > > Thanks. > --Jing Xue > The usage/loading of aop.xml inside a container are determined by the CL rules. As regards your scenario I guess the best option is to pack the aop.xml into your jar in the META-INF dir. I will check the docs, but afair this hint is already there. - --:alex |.::the_mindstorm::.| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCbE3LOCPjdDT2FEURArR6AJsHzIl+fMOknfFygu6V69mHUmzkrwCcCLQS +FAdq6jMLN4FNWniZrY0EhM= =LtFZ -----END PGP SIGNATURE-----