Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] how to do Tomcat 5.0.12 do the ajc compiler ?

Hi Valter, we have done that for Tomcat 4.1. What we have done is 
to modify Tomcat 4.1 code in order to properly use AspectJ Ant 
tasks.

I have not looked into Tomcat 5, and I do not know wether it is  
necessary or not to go into Tomcat code (I am not sure about that).

Maybe I am wrong, but I think that the problem with your  
modifications is that: AspectJ compiler produces the same result 
as the Java compiler does, because it only receives as input the 
Java file corresponding to the .jsp servlet.

I guess you need to tell to the executed ant task which aspects 
you want to compile/weave with the servlet java file. One 
possibility that could work fine is to define your own Ant task 
extending the AspectJ Ant task. With this extension you could try 
to fill these gaps and set the appropiate parameters for the 
extended Ant task (I do not know if this would work for your 
situation... but you can try/evaluate it).

greetings,
Jordi

:Hi All,
:
:
:   I am working with aspect-development to Web, thus I need
:to do the Tomcat
:5 use the ajc compiler....
:  I have modified the web.xml file the way showed below.
:After this, I
:copied the aspectjtools.jar to the common/lib directory and
:the
:aspectjrt.jar to jakarta-tomcat/bin. However, it´s not
:working.... I think
:that Tomcat is still using javac.
:
:  Somebody knows what´s wrong ?
:
:  <servlet>
:        <servlet-name>jsp</servlet-name>
:          ...
:                <init-param>
:                      <param-name>compiler</param-name>
:
:<param-value>org.aspectj.tools.ant.taskdefs.Ajc11CompilerAd
:apter</param-value>
:              </init-param>
:
:        <init-param>
:          ...
:        </init-param>
:
:	  <load-on-startup>3</load-on-startup>
:    </servlet>
:
:
:Thanks in advance,
:
:
:
:Valter Camargo
:
:
:
:
:>From: André Dantas Rocha <ad-rocha@xxxxxxxxxx>
:>Reply-To: aspectj-users@xxxxxxxxxxx
:>To: <aspectj-users@xxxxxxxxxxx>
:>Subject: RES: [aspectj-users] AspectJ 1.2 release
:candidate 2 now
:>available.
:>Date: Thu, 13 May 2004 09:42:16 -0300
:>
:>I'm currently using AJDT 1.1.8 and AspectJ 1.2rc1. How do
:I install the new
:>AspectJ version (1.2rc2) for use with AJDT/eclipse?
:>
:>Thanks
:>
:>-----Mensagem original-----
:>De: aspectj-users-admin@xxxxxxxxxxx
:>[mailto:aspectj-users-admin@xxxxxxxxxxx]
:>Em nome de Adrian Colyer
:>Enviada em: quinta-feira, 13 de maio de 2004 05:44
:>Para: aspectj-users@xxxxxxxxxxx;
:aspectj-announce@xxxxxxxxxxx
:>Cc: aspectj-dev@xxxxxxxxxxx
:>Assunto: [aspectj-users] AspectJ 1.2 release candidate 2
:now available.
:>
:>We are pleased to announce that the second release
:candidate for
:>AspectJ-1.2 is now available from the download page at
:>http://eclipse.org/aspectj or directly from
:>http://download.eclipse.org/technology/ajdt/aspectj-1.2rc2
:.jar
:>
:>We hope to release 1.2 shortly. As ever, please upgrade
:any old 1.1.1 or
:>1.2rc1 projects and help us flush out any remaining bugs
:before the final
:>release.
:>
:>The definition of the AspectJ language is unchanged in the
:1.2 release.
:>Instead, AspectJ 1.2 provides major improvements to the
:functionality of
:>the
:>supporting tools. Compilation times are greatly reduced,
:error messages
:>have
:>been improved, incremental compilation support is
:extended, and the ajdoc
:>tool is back. Detailed release notes for all these updates
:and more are
:>available at:
:>
:>http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/as
:pectj-home/doc/REA
:>DME-12.html
:>
:>
:>The biggest change since 1.2rc1 has been the provision of
:a new cflow
:>implementation that exploits ThreadLocals on JVMs that
:support them. This
:>results in a performance boost and memory usage reduction
:for heavily
:>threaded programs making use of cflow.
:>
:>Patches and contributions were submitted by George Harley,
:Matthew Webster,
:>Martin Lippert, and Arno Schmidmeier. We are always very
:grateful for these
:>contributions that help improve the compiler and
:supporting tools.
:>
:>Easy to reproduce bugs were submitted by Nicholas
:Lesiecki, Ramnivas
:>Laddad,
:>Ron Bodkin, Sian Whiting, Eric Bodden, Mariano Ceccato,
:Antti Karanta, Umit
:>Vardar, Nick Brett, Miguel Monteiro, Rafael Chaves, Eric
:Jain, Arno
:>Schmidmeier, Attila Lendvai, Daniel McAllansmith, Laurie
:Hendren and Oege
:>De
:>Moor.  We recognize the difficulty of producing clear
:minimal test cases
:>from bugs found in large systems and appreciate the work
:that goes into
:>these reports.
:>
:>We appreciate your help in squashing any bugs in this
:release before 1.2.0
:>(please also try out the new ajdoc on your projects).  If
:you find any
:>bugs,
:>please submit a reproducible test case to
:http://dev.eclipse.org (-> Bug
:>Reports) (product AspectJ, component Compiler).
:>
:>Thanks and stay in touch,
:>The AspectJ Team
:>_______________________________________________
:>aspectj-users mailing list
:>aspectj-users@xxxxxxxxxxx
:>http://dev.eclipse.org/mailman/listinfo/aspectj-users
:>_______________________________________________
:>aspectj-users mailing list
:>aspectj-users@xxxxxxxxxxx
:>http://dev.eclipse.org/mailman/listinfo/aspectj-users
:>
:>_______________________________________________
:>aspectj-users mailing list
:>aspectj-users@xxxxxxxxxxx
:>http://dev.eclipse.org/mailman/listinfo/aspectj-users
:
:___________________________________________________________
:______
:MSN Hotmail, o maior webmail do Brasil. 
:http://www.hotmail.com
:
:_______________________________________________
:aspectj-users mailing list
:aspectj-users@xxxxxxxxxxx
:http://dev.eclipse.org/mailman/listinfo/aspectj-users

Back to the top