Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Error when using External plugin (re-lanching error )
Error when using External plugin [message #1059217] Fri, 17 May 2013 10:58 Go to next message
Yassine MILHI is currently offline Yassine MILHIFriend
Messages: 11
Registered: March 2013
Junior Member
Hello,
I am trying to solve a strange error.
These are the steps I followed:
I've added a plugin that contains some libraries;
then added it to the server manifest in the required plugins section.
I also added this plugin to the server product dependencies by pressing "add required plugins".
I've put this line inside start method of server Activator:
    IFuture<IExternalAccess> platform = Starter.createPlatform(null);

It is responsible for launching a platform.
(see Attachment Steps.jpg)
Here is the problem:
When I launch the server product for the first time it works perfectly (see Attachment below Launch_firstTime.jpg).
But when I re-launch the server product it doesn't work.

Error code:
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "javax/xml/namespace/QName"


That plugin works fine in a separated stand-alone java project, even if I relaunch it many times.

This problem persists even if I delete the project, switching workspace or even rebooting the PC !
The only solution for now is to change the eclipse instance.

Regards,
Yassine.
Re: Error when using External plugin [message #1059226 is a reply to message #1059217] Fri, 17 May 2013 11:58 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Yassine MILHI wrote on Fri, 17 May 2013 12:58
That plugin works fine in a separated stand-alone java project, even if I relaunch it many times.


Are you sure that the plugin is OSGi ready?

You are not the only one, I just searched "java.lang.LinkageError: loader constraint violation" in google. You get a lot of material.

Your can read:
* http://frankkieviet.blogspot.ch/2009/03/javalanglinkageerror-loader-constraint.html
* http://chamibuddhika.wordpress.com/2012/05/15/learn-by-errors-java-osgi/
Re: Error when using External plugin [message #1060641 is a reply to message #1059226] Mon, 27 May 2013 12:48 Go to previous message
Yassine MILHI is currently offline Yassine MILHIFriend
Messages: 11
Registered: March 2013
Junior Member
Hi,

Thank you Jeremie for your response.

the problem was resolved regarding this Topic:

http://www.eclipse.org/forums/index.php/t/487723/

I think this is related to the scout architecture . It mean that we have for each external access, create a service that does the job.

regards

Yassine
Previous Topic:[Help] How to run external application same time as server runnig
Next Topic:Validating a custom field
Goto Forum:
  


Current Time: Thu Apr 25 21:57:01 GMT 2024

Powered by FUDForum. Page generated in 0.03124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top