Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Error when using External plugin (re-lanching error )
Error when using External plugin [message #1059217] Fri, 17 May 2013 06:58 Go to next message
Yassine MILHI is currently offline Yassine MILHI
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 07:58 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 649
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 08:48 Go to previous message
Yassine MILHI is currently offline Yassine MILHI
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 Jul 31 22:03:54 EDT 2014

Powered by FUDForum. Page generated in 0.01556 seconds