Why JoinPoint interface present in both aspectjrt and aspectj-weaver?

View: New views
4 Messages — Rating Filter:   Alert me  

Why JoinPoint interface present in both aspectjrt and aspectj-weaver?

by Shashikant Kale-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I am currently migrating my application to OSGi environment. I am getting linkage error while classloader is trying to load the class JoinPoint.

 

Caused by: java.lang.LinkageError: loader constraints violated when linking org/aspectj/lang/JoinPoint class

 

I find that both aspectj-weaver and aspectj-runtime have this interface defined. Is there any specific reason why this interface is included in both the jars?

 

Regards,

Shashi


_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Why JoinPoint interface present in both aspectjrt and aspectj-weaver?

by Tahir Akhtar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
For usual compile-time weaving you don't need aspectj-weaver.jar in runtime class path. You need it only during compile-time i-e when you invoke iajc.
aspectj-runtime.jar, as the name suggests, contains the runtime classes and interfaces.

Regards
Tahir Akhtar
Shashikant Kale wrote:

Hi,

 

I am currently migrating my application to OSGi environment. I am getting linkage error while classloader is trying to load the class JoinPoint.

 

Caused by: java.lang.LinkageError: loader constraints violated when linking org/aspectj/lang/JoinPoint class

 

I find that both aspectj-weaver and aspectj-runtime have this interface defined. Is there any specific reason why this interface is included in both the jars?

 

Regards,

Shashi


_______________________________________________ aspectj-users mailing list aspectj-users@... https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Why JoinPoint interface present in both aspectjrt and aspectj-weaver?

by Andy Clement :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Tahir suggests, the jars are supersets of each other. aspectjrt.jar
is the smallest, aspectjweaver is next and aspectjtools after that.
The manifests packaged with each are not really suitable for direct
deployment into an OSGi environment.  I believe the versions hosted in
the SpringSource bundle repo have the correct manifests, see
http://www.springsource.com/repository/app/library/version/detail?name=org.aspectj&version=1.6.5.RELEASE&searchType=librariesByName&searchQuery=aspectj

Andy

2009/10/4 Tahir Akhtar <tahir@...>:

> For usual compile-time weaving you don't need aspectj-weaver.jar in runtime
> class path. You need it only during compile-time i-e when you invoke iajc.
> aspectj-runtime.jar, as the name suggests, contains the runtime classes and
> interfaces.
>
> Regards
> Tahir Akhtar
> Shashikant Kale wrote:
>
> Hi,
>
>
>
> I am currently migrating my application to OSGi environment. I am getting
> linkage error while classloader is trying to load the class JoinPoint.
>
>
>
> Caused by: java.lang.LinkageError: loader constraints violated when linking
> org/aspectj/lang/JoinPoint class
>
>
>
> I find that both aspectj-weaver and aspectj-runtime have this interface
> defined. Is there any specific reason why this interface is included in both
> the jars?
>
>
>
> Regards,
>
> Shashi
>
> ________________________________
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

RE: Why JoinPoint interface present in both aspectjrtand aspectj-weaver?

by Shashikant Kale-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RE: [aspectj-users] Why JoinPoint interface present in both aspectjrtand aspectj-weaver?

Hi Andy/Tahir,

Thanks for your replies.

I had downloaded the bundles from springsource. However I was importing both the bundles in one of my application bundles. This caused a problem. As soon as I remove the weaver bundle from the dependency list the problem is resolved as expected.

However the basic problem remains i.e. if I have to use both the bundles together it wouldn't work since the package of the same version is exported by both the bundles.

Thanks,
Shashi


-----Original Message-----
From: aspectj-users-bounces@... on behalf of Andy Clement
Sent: Mon 10/5/2009 9:19 PM
To: aspectj-users@...
Subject: Re: [aspectj-users] Why JoinPoint interface present in both aspectjrtand aspectj-weaver?

As Tahir suggests, the jars are supersets of each other. aspectjrt.jar
is the smallest, aspectjweaver is next and aspectjtools after that.
The manifests packaged with each are not really suitable for direct
deployment into an OSGi environment.  I believe the versions hosted in
the SpringSource bundle repo have the correct manifests, see
http://www.springsource.com/repository/app/library/version/detail?name=org.aspectj&version=1.6.5.RELEASE&searchType=librariesByName&searchQuery=aspectj

Andy

2009/10/4 Tahir Akhtar <tahir@...>:
> For usual compile-time weaving you don't need aspectj-weaver.jar in runtime
> class path. You need it only during compile-time i-e when you invoke iajc.
> aspectj-runtime.jar, as the name suggests, contains the runtime classes and
> interfaces.
>
> Regards
> Tahir Akhtar
> Shashikant Kale wrote:
>
> Hi,
>
>
>
> I am currently migrating my application to OSGi environment. I am getting
> linkage error while classloader is trying to load the class JoinPoint.
>
>
>
> Caused by: java.lang.LinkageError: loader constraints violated when linking
> org/aspectj/lang/JoinPoint class
>
>
>
> I find that both aspectj-weaver and aspectj-runtime have this interface
> defined. Is there any specific reason why this interface is included in both
> the jars?
>
>
>
> Regards,
>
> Shashi
>
> ________________________________
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users