Thomas Watson | 1 Dec 15:33
Picon
Favicon

Re: Problem with adding comm.jar as a library inside my bundle

This should work. You need to make sure the the bundle jar contains the lib/comm.jar jar file inside of it. How are you building your bundle? If you are using an eclipse plug-in project, does it work when you launch an Equinox/Eclipse instance from eclipse?

Tom



Ali Naddaf ---11/29/2009 01:41:35 AM---Hello all.


From:

Ali Naddaf <ali.naddaf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

To:

Equinox development mailing list <equinox-dev <at> eclipse.org>

Date:

11/29/2009 01:41 AM

Subject:

[equinox-dev] Problem with adding comm.jar as a library inside my bundle



Hello all.

I am trying to add comm.jar (javax.comm implementation) inside my bundle
by putting it inside a directory in my bundle (called lib) and adding
the following to my manifest.mf (no other bundle uses this comm.jar
library so I prefer keeping it just inside my bundle instead of making
it a separate bundle):

Bundle-ClassPath: ., lib/comm.jar

However, the classes inside the  javax.comm package are not available
inside my bundle. Are there any other steps that I need to take to make
that library added to my bundle's classpath?

Many thanks
Ali
_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


fox | 3 Dec 02:24

How to register listener & filter?

Hello all.
    I want to build a bundle of a web project , but I found the org.eclipse.equinox.http.registry extension just only support the servlet.
    can I register the listener by org.osgi.service.http.HttpService.registerServlet method,and how if it is possible?
 
Many Thanks.
Fox
fox | 3 Dec 02:25

java.lang.LinkageError: loader constraint violation

Hello all.
    I trying to build a bundle,when deploy into osgi and run,it throw an error:
java.lang.LinkageError: loader constraint violation: when resolving overridden method "oracle.j2ee.ws.saaj.soap.SOAPPartImpl.appendChild(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, oracle/j2ee/ws/saaj/soap/SOAPPartImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type org/w3c/dom/Node used in the signature,
    the  oracle.j2ee.ws.saaj.soap.SOAPPartImpl is in orasaaj.jar and it is used by parlayX,I found that the orasaaj.jar and rt.jar both have this class SOAPPartImpl,
To solve this problem ,what do I have to do,
in addition, it is normal and successful that the project just run as a application ,
 
Many Thanks
Fox
David M Williams | 3 Dec 08:59
Picon
Favicon

Re: java.lang.LinkageError: loader constraint violation


Here's some information to give you some hints, some possible things to explore, but I doubt it will help directly.

You don't say what version of equinox, or VM, you are using, but if it is pre 3.6 M2, I'd suggest you try with the latest milestone just to see if it works.
I say this because in 3.6 M2, Bug 285505 was fixed which _might_ be indirectly related.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285505.

Especially if it does solve your problem, and you need to use a released version, you can employ a work around in your own code, by
using the threads threads context classloader. Something like

Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());

_before_ your code calls (directly or indirectly) SOAPPartImpl.
(with all the right resets/trys/finallys, etc.)

But this type of problem is pretty complicated, and depends on many things (e.g. which JVM you are using, which and how many versions of "Node" you have on your classpath,  how and where orasaaj.jar gets its version of 'Node'). There's quite a few things on the internet that describe or address the issue in different contexts, one such example is
http://www.ibm.com/developerworks/websphere/library/techarticles/0310_searle/searle.html.

But, I think, its fundamentally a DOM implementation and JVM issue, and OSGi just finds the problem early, before it gets to a runtime problem?
But, you say it happens while "trying to build a bundle" so if you mean that literally ... then my advise won't really help at all (since it is a runtime solution).
In any case, I hope the information gives you some things to look at, or to frame the question more precisely.

Good luck,







From: fox-xoEL0lr7YXyakBO8gow8eQ@public.gmane.org
To: "equinox-dev" <equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>
Date: 12/02/2009 08:25 PM
Subject: [equinox-dev] java.lang.LinkageError: loader constraint violation
Sent by: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org




Hello all.
    I trying to build a bundle,when deploy into osgi and run,it throw an error:
java.lang.LinkageError: loader constraint violation: when resolving overridden method "oracle.j2ee.ws.saaj.soap.SOAPPartImpl.appendChild(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, oracle/j2ee/ws/saaj/soap/SOAPPartImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type org/w3c/dom/Node used in the signature,
    the  oracle.j2ee.ws.saaj.soap.SOAPPartImpl is in orasaaj.jar and it is used by parlayX,I found that the orasaaj.jar and rt.jar both have this class SOAPPartImpl,
To solve this problem ,what do I have to do,
in addition, it is normal and successful that the project just run as a application ,
 
Many Thanks
Fox_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Simon Kaegi | 3 Dec 15:32
Picon

Re: How to register listener & filter?

The Http Service and subsequently the extension points in http.registry do not "directly" support either Filters or Listeners. The current idiom is to use a special wrapping Servlet that will perform the Filtering and support the various Listener events. You can see various examples of this technique in /cvsroot/rt/org.eclipse.equinox/incubator/server-side/bundles/org.eclipse.equinox.http.helper
 
For Filters there is work planned in theis release to offer support in the Equinox implementations of the Http Service. For more formal support for filters and listeners support you might want to follow along with OSGi's RFC 66 as once fully spec'ed and released this will let us use web.xml and all it's various deployment descriptor characteristics in OSGi applications.
 
HTH
-Simon
 
----- Original Message -----
Sent: Wednesday, December 02, 2009 8:24 PM
Subject: [equinox-dev] How to register listener & filter?

Hello all.
    I want to build a bundle of a web project , but I found the org.eclipse.equinox.http.registry extension just only support the servlet.
    can I register the listener by org.osgi.service.http.HttpService.registerServlet method,and how if it is possible?
 
Many Thanks.
Fox

_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
Thomas Watson | 4 Dec 04:41
Picon
Favicon

Equinox tagged for Helios M4 warmup build.

The map file has been updated for the following Bug changes:
+ Bug 292980. Need an option to suppress "NLS unused message: " messages (FIXED)
+ Bug 293331. API to determine when preference settings have been overridden (FIXED)
+ Bug 295744. pluginCustomization argument should be removed from nonFrameworkArgs after being processed (FIXED)
+ Bug 296750. [DS] SCRManager's Resolver.serviceReferenceTable has race condition (FIXED)
+ Bug 296822. NullProgressMonitor is not thread safe for expected usage (FIXED)
+ Bug 296846. [tests] assert bundle resolution happens (FIXED)

The following projects have changed:
org.eclipse.equinox.ds
org.eclipse.equinox.registry
org.eclipse.equinox.supplement
org.eclipse.equinox.preferences
org.eclipse.equinox.servletbridge
org.eclipse.equinox.app
org.eclipse.equinox.common
org.eclipse.osgi.tests
org.eclipse.osgi

Tom

fox | 4 Dec 08:18

Re: Equinox tagged for Helios M4 warmup build.

Dear Tom:
Thanks.
 
 
2009-12-04
fox
发件人: Thomas Watson
发送时间: 2009-12-04  11:42:23
收件人: equinox-dev
抄送:
主题: [equinox-dev] Equinox tagged for Helios M4 warmup build.

The map file has been updated for the following Bug changes:
+ Bug 292980. Need an option to suppress "NLS unused message: " messages (FIXED)
+ Bug 293331. API to determine when preference settings have been overridden (FIXED)
+ Bug 295744. pluginCustomization argument should be removed from nonFrameworkArgs after being processed (FIXED)
+ Bug 296750. [DS] SCRManager's Resolver.serviceReferenceTable has race condition (FIXED)
+ Bug 296822. NullProgressMonitor is not thread safe for expected usage (FIXED)
+ Bug 296846. [tests] assert bundle resolution happens (FIXED)

The following projects have changed:
org.eclipse.equinox.ds
org.eclipse.equinox.registry
org.eclipse.equinox.supplement
org.eclipse.equinox.preferences
org.eclipse.equinox.servletbridge
org.eclipse.equinox.app
org.eclipse.equinox.common
org.eclipse.osgi.tests
org.eclipse.osgi

Tom

Picon

Re: Equinox tagged for Helios M4 warmup build.

Hi Thomas,

I has posted a question on equinox-dev, but I got no answer. Maybe you can help me.
I have cvs co org.eclipse.equinox, but how do I build it? There is no build.xml in the root directory or something. (By the way, mostly I work on the command line).

Thanks,

Eric J.

On Fri, Dec 4, 2009 at 4:41 AM, Thomas Watson <tjwatson-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> wrote:

The map file has been updated for the following Bug changes:
+ Bug 292980. Need an option to suppress "NLS unused message: " messages (FIXED)
+ Bug 293331. API to determine when preference settings have been overridden (FIXED)
+ Bug 295744. pluginCustomization argument should be removed from nonFrameworkArgs after being processed (FIXED)
+ Bug 296750. [DS] SCRManager's Resolver.serviceReferenceTable has race condition (FIXED)
+ Bug 296822. NullProgressMonitor is not thread safe for expected usage (FIXED)
+ Bug 296846. [tests] assert bundle resolution happens (FIXED)

The following projects have changed:
org.eclipse.equinox.ds
org.eclipse.equinox.registry
org.eclipse.equinox.supplement
org.eclipse.equinox.preferences
org.eclipse.equinox.servletbridge
org.eclipse.equinox.app
org.eclipse.equinox.common
org.eclipse.osgi.tests
org.eclipse.osgi

Tom


_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Thomas Watson | 4 Dec 15:26
Picon
Favicon

Re: build equinox

All developers of Equinox (that I know of at least :-)) use Eclipse to develop and build Equinox. Typically we simply check out the code as eclipse projects and then export the projects we want to build using the PDE tooling in Eclipse. All of the Equinox projects have been setup to use PDE-Build for building bundle jars.

HTH.

Tom



"Eric J. Van der Velden" ---11/29/2009 12:22:35 PM---Hello,


From:

"Eric J. Van der Velden" <ericjvandervelden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

To:

equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Date:

11/29/2009 12:22 PM

Subject:

[equinox-dev] build equinox



Hello,

I have cvs co org.eclipse.equinox, but how do I build it? Can I read somewhere how it should be done?

Thanks,

Eric J._______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Thomas Watson | 4 Dec 23:58
Picon
Favicon

Equinox tagged for next Helios M4 build.

The map file has been updated for the following Bug changes:
+ Bug 284397. Plugin.isDebugging does not deliver true after Plugin.setDebugging has been called. (FIXED)
+ Bug 296933. security tests should clean up temp directories (FIXED)

The following projects have changed:
org.eclipse.equinox.supplement
org.eclipse.osgi.tests
org.eclipse.osgi

Tom


Gmane