Spring Dynamic Modules 2.0.0.M1 / OSGi 4.2 Blueprint Service RI Released
Dear Spring community,
I'm pleased to announce that Spring Dynamic Modules for OSGi(tm) Service Platforms (formerly known as Spring OSGi) 2.0.0 M1 final has been released.
Downloads | JavaDocs | Reference Documentation | FAQ | Changelog
The first release in the 2.x branch, M1 provides the first, complete OSGi 4.2 Blueprint Service Reference Implementation (RI).
Other noticeable improvements:
* migration to JDK 5 and Spring 3.x
* updated documentation on Blueprint Service
* enhanced tooling support
* new service exporter/importer options
* improved proxy performance and generation
* importer support for collection of service references
* faster shutdown algorithm
and numerous enhancements and bug fixes. Please consult the changelog for detailed information.
For using OSGi 4.2 Blueprint Service, JDK 5 or Spring 3 in an OSGi environment, we recommend Spring Dynamic Modules 2.0.0.M1!
Note that compatibility with OSGi 4.0 and 4.1 platforms has been preserved (please consult the reference documentation for more details).
Feedback and suggestions are welcome!
Cheers,
Costin Leau
Lead, Spring Dynamic Modules
installing spring bundles in server
Hi Costin,
Iam trying to install spring OSGI bundles in geronimo container. I was able to succesfully install all the bundles except spring-osgi-test. when i start that bundle iam seeing the below exception. Could you advise if iam missing something. Is it possible to install osgi test bundle.
Below is the snippet for the installed spring osgi bundles.
[ 251] [Active ] [ ] [ ] [ 60] Spring Beans (3.0.0.RELEASE)
[ 252] [Active ] [ ] [ ] [ 60] Spring Core (3.0.0.RELEASE)
[ 253] [Active ] [ ] [ ] [ 60] Spring Context (3.0.0.RELEASE)
[ 254] [Active ] [ ] [ ] [ 60] Spring ASM (3.0.0.RELEASE)
[ 255] [Active ] [ ] [ ] [ 60] Spring AOP (3.0.0.RELEASE)
[ 256] [Active ] [ ] [ ] [ 60] AOP Alliance API (1.0.0)
[ 257] [Active ] [ ] [ ] [ 60] Spring Expression Language (3.0.0.RELEASE)
[ 258] [Active ] [ ] [ ] [ 60] Spring Test (3.0.0.RELEASE)
[ 259] [Active ] [ ] [ ] [ 60] JUnit (3.8.2)
[ 260] [Active ] [ ] [ ] [ 60] spring-osgi-core (1.2.1)
[ 261] [Active ] [ ] [ ] [ 60] spring-osgi-io (1.2.1)
[ 262] [Active ] [ ] [ ] [ 60] spring-osgi-annotation (1.2.1)
[ 263] [Active ] [ ] [ ] [ 60] spring-osgi-extender (1.2.1)
geronimo> start 264
Error executing command: Exception in org.springframework.osgi.test.internal.support.Act ivator.start
() of bundle org.springframework.osgi.test.
geronimo>
Detailed stacktrace
org.osgi.framework.BundleException: Exception in org.springframework.osgi.test.internal.support.Act ivator.start() of bundle org.springframework.osgi.test.
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:806 )
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:284)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:276)
at org.apache.karaf.shell.osgi.StartBundle.doExecute( StartBundle.java:29)
at org.apache.karaf.shell.osgi.BundlesCommand.doExecu te(BundlesCommand.java:49)
at org.apache.karaf.shell.console.OsgiCommandSupport. execute(OsgiCommandSupport.java:38)
at org.apache.felix.gogo.commands.basic.AbstractComma nd.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.shell.CommandProxy.e xecute(CommandProxy.java:50)
at org.apache.felix.gogo.runtime.shell.Closure.execut e(Closure.java:229)
at org.apache.felix.gogo.runtime.shell.Closure.execut eStatement(Closure.java:162)
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe. java:101)
at org.apache.felix.gogo.runtime.shell.Closure.execut e(Closure.java:79)
at org.apache.felix.gogo.runtime.shell.CommandSession Impl.execute(CommandSessionImpl.java:71)
at org.apache.karaf.shell.console.jline.Console.run(C onsole.java:169)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ExceptionInInitializerError
at org.springframework.osgi.test.internal.support.Act ivator.start(Activator.java:45)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:774 )
... 16 more
Caused by: java.lang.IllegalStateException: spring-osgi-test.jar is not available on the boot class path; are you deploying the test frameworkas a bundle by any chance?
at org.springframework.osgi.test.internal.holder.Hold erLoader.<init>(HolderLoader.java:61)
at org.springframework.osgi.test.internal.holder.Hold erLoader.<clinit>(HolderLoader.java:47)
... 20 more
Caused by: java.lang.ClassNotFoundException: org.springframework.osgi.test.internal.holder.Osgi TestInfoHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
at org.springframework.osgi.test.internal.holder.Hold erLoader.<init>(HolderLoader.java:57)
... 21 more