Results 1 to 5 of 5

Thread: STS 3.1.0 and Sprng Dynamic Modules (OSGI)

  1. #1
    Join Date
    Jan 2012
    Posts
    10

    Default STS 3.1.0 and Sprng Dynamic Modules (OSGI)

    Hello,

    I've only switched to STS 3.1.0 and am trying a few things, among them Spring Dynamic Modules. I have imported all the modules from the dist and lib directories and before doing anything else created an OSGI Framework test configuration, where I selected the org.springframework.bundle.osgi.extender bundle and clicked on �Add Required Bundles�. When I ran the configuration I got this huge list of errors that I trimmed (below). It appears to be a basic configuration, not much room for error. Any advice? TIA,

    -a

    Code:
    osgi> !SESSION 2012-10-18 15:56:37.407 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.7.0_03
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Command-line arguments:  -dev file:C:/Users/StromA/workspace/.metadata/.plugins/org.eclipse.pde.core/Test/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -console
    
    !ENTRY org.eclipse.equinox.common 4 0 2012-10-18 15:56:38.161
    !MESSAGE FrameworkEvent.ERROR
    !STACK 0
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
    	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
    
    !ENTRY org.aopalliance 4 0 2012-10-18 15:56:38.168
    !MESSAGE FrameworkEvent.ERROR
    !STACK 0
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.4
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
    	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
    
    !ENTRY org.springframework.core 4 0 2012-10-18 15:56:38.177
    !MESSAGE FrameworkEvent.ERROR
    !STACK 0
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.commons.logging; version="[1.0.4,2.0.0)"
    	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
    	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
    	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
    	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
    	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
    	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
    
    
    .....
    
    
    !SUBENTRY 2 org.springframework.osgi.io 2 0 2012-10-18 15:56:38.498
    !MESSAGE Missing imported package org.apache.commons.logging_[1.0.0,2.0.0).
    !SUBENTRY 2 org.springframework.osgi.io 2 0 2012-10-18 15:56:38.498
    !MESSAGE Missing imported package org.springframework.core.io_[2.5.6,4.0.0).
    !SUBENTRY 2 org.springframework.osgi.io 2 0 2012-10-18 15:56:38.499
    !MESSAGE Missing imported package org.springframework.core.io.support_[2.5.6,4.0.0).
    !SUBENTRY 2 org.springframework.osgi.io 2 0 2012-10-18 15:56:38.499
    !MESSAGE Missing imported package org.springframework.util_[2.5.6,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.499
    !MESSAGE Bundle initial@reference:file:../../Users/StromA/workspace/org.springframework.osgi.extender/ [19] was not resolved.
    ....
    
    
    !SUBENTRY 2 org.springframework.osgi.extender 2 0 2012-10-18 15:56:38.505
    !MESSAGE Missing imported package org.xml.sax_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.505
    !MESSAGE Bundle initial@reference:file:../../Users/StromA/workspace/org.springframework.aop/ [20] was not resolved.
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.505
    !MESSAGE Missing imported package com.jamonapi_[2.4.0,3.0.0).
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.506
    !MESSAGE Missing imported package org.aopalliance.aop_[1.0.0,2.0.0).
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.506
    !MESSAGE Missing imported package org.aopalliance.intercept_[1.0.0,2.0.0).
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.507
    !MESSAGE Missing imported package org.apache.commons.logging_[1.0.4,2.0.0).
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.507
    !MESSAGE Missing imported package org.apache.commons.pool_[1.3.0,2.0.0).
    .... 
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.516
    !MESSAGE Missing imported package org.springframework.core_[2.5.6.SEC01,2.5.6.SEC01].
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.516
    !MESSAGE Missing imported package org.springframework.core.annotation_[2.5.6.SEC01,2.5.6.SEC01].
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.517
    !MESSAGE Missing imported package org.springframework.util_[2.5.6.SEC01,2.5.6.SEC01].
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.517
    !MESSAGE Missing imported package org.springframework.util.xml_[2.5.6.SEC01,2.5.6.SEC01].
    !SUBENTRY 2 org.springframework.aop 2 0 2012-10-18 15:56:38.517
    !MESSAGE Missing imported package org.w3c.dom_0.0.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.517
    !MESSAGE Bundle initial@reference:file:plugins/org.apache.felix.gogo.command_0.8.0.v201108120515.jar/ [21] was not resolved.
    !SUBENTRY 2 org.apache.felix.gogo.command 2 0 2012-10-18 15:56:38.518
    !MESSAGE Missing imported package org.apache.felix.bundlerepository_0.0.0.
    !SUBENTRY 2 org.apache.felix.gogo.command 2 0 2012-10-18 15:56:38.518
    !MESSAGE Missing imported package org.apache.felix.bundlerepository.*_0.0.0.
    !SUBENTRY 2 org.apache.felix.gogo.command 2 0 2012-10-18 15:56:38.518
    !MESSAGE Missing imported package org.osgi.framework_1.5.0.
    !SUBENTRY 2 org.apache.felix.gogo.command 2 0 2012-10-18 15:56:38.519
    !MESSAGE Missing imported package org.osgi.service.log_1.3.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.519
    !MESSAGE Bundle initial@reference:file:plugins/org.apache.commons.logging_1.1.1.v201101211721.jar/ [22] was not resolved.
    !SUBENTRY 2 org.apache.commons.logging 2 0 2012-10-18 15:56:38.519
    !MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.520
    !MESSAGE Bundle initial@reference:file:plugins/javax.el_2.2.0.v201108011116.jar/ [23] was not resolved.
    !SUBENTRY 2 javax.el 2 0 2012-10-18 15:56:38.528
    !MESSAGE Missing imported package javax.servlet_2.5.0.
    !SUBENTRY 2 javax.el 2 0 2012-10-18 15:56:38.528
    !MESSAGE Missing imported package javax.servlet.http_2.5.0.
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-18 15:56:38.529
    !MESSAGE Bundle initial@reference:file:plugins/org.apache.commons.collections_3.2.0.v201005080500.jar/ [24] was not resolved.
    !SUBENTRY 2 org.apache.commons.collections 2 0 2012-10-18 15:56:38.529
    !MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.3

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    I would like to suggest to you to go with the newer versions of the Spring support for OSGi, which is part of the Eclipse Gemini project, as far as I know. The successor of the Spring Dynamic Modules project is the OSGi Blueprint specification and its reference implementation that is part of the Gemini project at Eclipse (http://www.eclipse.org/gemini/blueprint/).

    They also have forums and newsgroups to discuss issues and ask questions around that. I think that is a much better choice because more OSGi people are hanging around to help you with those issues.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Jan 2012
    Posts
    10

    Default STS 3.1 & Spring DM

    Quote Originally Posted by Martin Lippert View Post
    Hey!

    I would like to suggest to you to go with the newer versions of the Spring support for OSGi, which is part of the Eclipse Gemini project, as far as I know. The successor of the Spring Dynamic Modules project is the OSGi Blueprint specification and its reference implementation that is part of the Gemini project at Eclipse (http://www.eclipse.org/gemini/blueprint/).

    They also have forums and newsgroups to discuss issues and ask questions around that. I think that is a much better choice because more OSGi people are hanging around to help you with those issues.

    HTH,
    Martin
    Thank you for the suggestion. I'm a bit overwhelmed by the complexity of figuring out what is where and what it needs. It appears that you are implying that Spring 3.1 is too old and I need to move to 3.2?

    Thanks again,

    -a

  4. #4
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    No, you don't need to move to Spring 3.2. All I am suggesting is to use Gemini Blueprint (see above) instead of Spring DM and ask questions regarding OSGi support on their forums in order to get support for it. Since Gemini Blueprint is the successor of Spring DM, I would strongly recommend to use that instead of Spring Dynamic Modules.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  5. #5
    Join Date
    Jan 2012
    Posts
    10

    Default STS 3.1.0 and Sprng Dynamic Modules (OSGI)

    Oh, I see now. Thank you for clearing this up for me.

    -a

    Quote Originally Posted by Martin Lippert View Post
    Hey!

    No, you don't need to move to Spring 3.2. All I am suggesting is to use Gemini Blueprint (see above) instead of Spring DM and ask questions regarding OSGi support on their forums in order to get support for it. Since Gemini Blueprint is the successor of Spring DM, I would strongly recommend to use that instead of Spring Dynamic Modules.

    HTH,
    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •