Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 64729 invoked from network); 25 Jun 2007 12:18:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 12:18:04 -0000 Received: (qmail 29238 invoked by uid 500); 25 Jun 2007 12:18:07 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 29212 invoked by uid 500); 25 Jun 2007 12:18:07 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 29203 invoked by uid 99); 25 Jun 2007 12:18:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 05:18:07 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=MISSING_HEADERS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.205.200.118] (HELO inaccessnetworks.com) (212.205.200.118) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 05:18:02 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by inaccessnetworks.com (8.13.6/8.13.5) with ESMTP id l5PCHcQ6027684 for ; Mon, 25 Jun 2007 15:17:38 +0300 Received: from inaccessnetworks.com ([127.0.0.1]) by localhost (host11.inaccessnetworks.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27172-12 for ; Mon, 25 Jun 2007 15:17:38 +0300 (EEST) Received: from [192.168.1.7] (phoenix.priv.inaccessnetworks.com [192.168.1.7]) by inaccessnetworks.com (8.13.6/8.13.5) with ESMTP id l5PCHbWt027679 for ; Mon, 25 Jun 2007 15:17:37 +0300 Message-ID: <467FB25C.9040605@inaccessnetworks.com> Date: Mon, 25 Jun 2007 15:17:32 +0300 From: "Konstantinos N. Ntermitzoglou" User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 CC: dev@felix.apache.org Subject: Re: java.lang.NoClassDefFoundError with JamVM References: <467A49AC.607@inaccessnetworks.com> <467A6F98.3030700@ungoverned.org> <487a994c0706210540w1b0b164ra190db4d0408a020@mail.gmail.com> <467B92F9.7090701@inaccessnetworks.com> <467BC4FC.6060606@ungoverned.org> <467BD394.3050507@inaccessnetworks.com> In-Reply-To: <467BD394.3050507@inaccessnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.0 (20041102) + Maia Mailguard 1.0.0 RC5 (Debian) at inaccessnetworks.com X-Virus-Checked: Checked by ClamAV on apache.org Hi again, please consider the following scenario (still on felix 0.8.0 *) I have installed another bundle that uses classes from org.w3c.dom package. I have tried to run it using SUN jre. The result was a NoClassDefFoundError for a class of that package. That is correct since I have not included the package to the org.osgi.framework.bootdelegation property. The other bundle that I mention to my previous mails that imports packages from another API bundle, worked just fine. When I have tried the exact same scenario with jamVM, the bundle that uses classes from org.w3c.dom worked without throwing any exception.Moreover, the bundle that imports from the bundle API could not load classes from that imported packages. Could it this be a sign that jamVM is incompatible with the delegation mechanism of Felix? Can I fix it someway ? Thank you for your time. regards, kostas p.s. *Richard, I have tried building the trunk version, but I have faced some trouble. Maybe because I am unfamiliar with Maven... Would it be too much trouble for you providing me with a built jar version? Thank you in advance! Konstantinos N. Ntermitzoglou wrote: > Ok, I will try using the trunk version and see what happens. > If this does not work out either, I shall find a way to provide more > detailed information about my case. Thank you a lot for your concern > :) ,I will keep you posted! > > regards, > Kostas > > Richard S. Hall wrote: >> First of all, you really should try to build from trunk since there >> were significant changes since 0.8.0...if you cannot build from >> trunk, I could email you a build if necessary. >> >> Perhaps you can try to create another bundle that illustrates the >> same issue? >> >> I would imagine that if it worked with Oscar on the same VM that it >> should be possible to get it to work on Felix and that VM, but it is >> difficult for us to help you if you cannot give us any information. :-) >> >> -> richard >> >> Konstantinos N. Ntermitzoglou wrote: >>> Hi, >>> I am using Felix version 0.8.0. >>> Richard, I am really sorry but I can not provide this information >>> because the bundle(s) code I use is under a NDA. However, I am now >>> pretty convinced that it is not a Felix or bundle (manifest) problem >>> after all. I have used jamVM on the same machine I used the Sun JRE >>> and I get the same error. So, it probably has to do with my VM's >>> configuration (or maybe the Classpath? ) and the, obviously modified >>> in Felix, class loading mechanism. On the other hand, all my other >>> bundles seem to work just fine and that is what really confuses me... >>> Thank you all for your replies, if you have any idea even with my >>> limited information I will be glad to hear, >>> regards, >>> >>> Kostas >>> >>> Karl Pauls wrote: >>>> and maybe tell us with which version of Felix you've been trying >>>> (0.8.0 or trunk - if trunk which revision/date)? >>>> >>>> regards, >>>> >>>> Karl >>>> >>>> On 6/21/07, Richard S. Hall wrote: >>>>> Yes. >>>>> >>>>> The biggest issue in switching from Oscar to Felix is that Felix >>>>> generally does NOT give bundles access to anything on the class path, >>>>> whereas Oscar gave them access to everything on the class path. >>>>> However, >>>>> if you tested this bundle on Felix with the Sun JRE and it worked, >>>>> then >>>>> that is odd. >>>>> >>>>> Could you show us your expection, manifest, and bundle content? >>>>> >>>>> -> richard >>>>> >>>>> Felix Meschberger wrote: >>>>> > Hi, >>>>> > >>>>> > NoClassDefFoundError generally indicates a missing class to which a >>>>> > class to >>>>> > be loaded should be linked. For example, if you load the >>>>> StringBuffer >>>>> > class, >>>>> > the String class is required for linking. If the String class would >>>>> > not be >>>>> > found, the NoClassDefFoundError is thrown - whereas a >>>>> > ClassNotFoundException >>>>> > would be thrown if the StringBuffer class itself was not found. >>>>> > >>>>> > So, in your use case, it might be, that there are missing classes >>>>> > expected >>>>> > from the environment (system classes, boot class path or other >>>>> bundles), >>>>> > which are missed. You might want to check the >>>>> > org.osgi.framework.system.packages and >>>>> > org.osgi.framework.bootdelegationproperties of the Felix >>>>> > configuration. >>>>> > >>>>> > Regards >>>>> > Felix >>>>> > >>>>> > On 6/21/07, Konstantinos N. Ntermitzoglou >>>>> >>>>> > wrote: >>>>> >> >>>>> >> Hi everybody, >>>>> >> >>>>> >> I have recently moved from Oscar to Felix, but I am facing the >>>>> >> following issue that keeps me from doing it totally. I have an API >>>>> >> bundle and another one that implements it. I have been using >>>>> them with >>>>> >> Oscar under an arm-linux architecture with JamVM1.4.5, >>>>> classpath 0.92 >>>>> >> and all worked just fine. The same configuration will not >>>>> work with >>>>> >> Felix. When I start the implementer bundle, it seems that the >>>>> wiring is >>>>> >> done correctly but when the time comes for an API class to be >>>>> loaded I >>>>> >> am getting java.lang.NoClassDefFoundError. I have used the >>>>> exact same >>>>> >> configuration on an i686-linux with SUN's JVM and then the >>>>> bundle was >>>>> >> started successfully. >>>>> >> So I believe my bundles are R4 compatible and are bundled >>>>> correctly >>>>> >> (Manifest import-export etc. ), so what can it be wrong ? Any >>>>> ideas how >>>>> >> to solve it ? >>>>> >> >>>>> >> Thank you in advance for any replies, >>>>> >> Ntermitzoglou Konstantinos >>>>> >> >>>>> > >>>>> >>>> >>>> >>> > >