Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to specify classpath inside a WAR for the weaver ?

It is what  I did : https://bugs.eclipse.org/bugs/show_bug.cgi?id=379530

Understood - Surfing on the net about having a such thing, there is a real need and many users are facing to this problem.
It will increase the interoperability between the java community and the tools will be more friendly for us.

In our case, the persons who are developping and using AspectJ are not the same as the persons who are building the project to deploy the ear. The competency is not the same. Building/Weaving a project should be "smooth" enough for this king of persons.

Best regards,

JA.






De :        Andy Clement <andrew.clement@xxxxxxxxx>
A :        aspectj-users@xxxxxxxxxxx
Date :        2012-05-14 23:29
Objet :        Re: [aspectj-users] How to specify classpath inside a WAR for the weaver ?
Envoyé par :        aspectj-users-bounces@xxxxxxxxxxx




Hi,

I'm afraid that right now you can't tell AspectJ to look at jars
within jars.  It is probably not toooo difficult to implement though.
Might be worth raising an enhancement request:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ

In the meantime you'll have to extract those into somewhere, but
unfortunately you will need to specify them all on a classpath.  You
can turn off that error (or dial it down to a warning) because it is
an Xlint, but it may mean it is not be weaving what you would like it
to (as it couldn't complete its analysis).

cheers,
Andy

On 14 May 2012 14:30, Jean Andre <Jean.Andre@xxxxxxxxxx> wrote:
> Hello,
>
> We got many, many errors like this :
>
>      [iajc] when batch building BuildConfig[null] #Files=0 AopXmls=#0
>      [iajc]  [Xlint:cantFindType]
>      [iajc] [error  55]: error at (no source information available)
>      [iajc]
> F:\cruisecontrol-service-4\artifacts\MyApplication_01_SYSINT\20120509153156\MyApplication-1.0.0.49\CrmWeb_origine.war:0::0
> can't determine implemented interfaces of missing type
> javax.validation.ConstraintValidator
>      [iajc] when weaving type
> com.intact.crm.web.validator.impl.PostalCodeValidator
>      [iajc] when weaving classes
>      [iajc] when weaving
>
> Looking for on Internet, we found that we have a classpath problem.
>
> We use ANT with the tag (iajc) - something like this: iajc  -inpath
> CrmWeb_origine.war   -outJar CrmWeb.war  -showWeaveInfo
>
> As you can notice, we use a WAR, not a jar file and a WAR as WEB-INF/lib
> which contains all the necessary libraries needed by the application.
> However, the weaver does not find those libraries as we got more that 150
> errors for missing classes.
>
> How do we inform the waver that those file are inside the war itself ?
>
> Best regards,
>
> JA
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top