ajc to compile the servlets,
and deploy the classes as usual into
{WebRoot}/WEB-INF/classes.
aspectjrt.jar into
{WebRoot}/WEB-INF/lib.
${CATALINE_BASE}/shared/lib.
aspectjtools.jar in
${CATALINA_HOME}/common/lib so that it can be loaded
by Jasper.
${CATALINA_HOME}/conf/web.xml to tell Ant to use
ajc by setting the compiler property to the
AspectJ compiler adapter:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
...
<init-param>
<param-name>compiler</param-name>
<param-value>org.aspectj.tools.ant.taskdefs.Ajc11CompilerAdapter</param-value>
</init-param>
aspectjrt.jar should be in
{webapp}/WEB-INF/lib or some shared or common
directory supported by the server.
web.xml file
with the Jasper-generated servlet mappings.