Access Methods of Plugin [message #814877] |
Wed, 07 March 2012 01:05 |
Raj Messages: 74 Registered: August 2011 |
Member |
|
|
I have plugin A which uses activation-1.0.2.jar for sending the email.
I am using RAP 1.5 and when i try to access the plugin A from another plugin B and pass the 'javax.activation.DataSource' I am getting the below error
java.lang.LinkageError: loader constraint violation: when resolving
method "test.email.EmailMessage.addAttachment(Ljavax/activation/DataSource;)V" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, ztest/View$1, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, test/email/EmailMessage, have different Class objects for the type javax/activation/DataSource used in the signature
When i run the server with -verbose command i notice
[Loaded javax.activation.DataSource from C:\jdk1.6.0_13\jre\lib\rt.jar]
[Loaded javax.activation.DataSource from file:/C:/dev/workspace01March/pluginA/lib/activation-1.0.2.jar]
[Loaded test.email.ByteArrayDataSource from file:/C:/dev/workspace01March/pluginA/]
My plugins are all in the active state.
Any pointers why i am getting the java.lang.LinkageError:
|
|
|
Powered by
FUDForum. Page generated in 0.02636 seconds