This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Spring and the fly likes How using spring IOC in spring DM ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How using spring IOC in spring DM ?" Watch "How using spring IOC in spring DM ?" New topic

How using spring IOC in spring DM ?

Farshad Zeinali

Joined: Apr 23, 2013
Posts: 17
Hi dears

I want to use of spring ioc in spring dm

I have a META-INF/spring directory that includ a spring.xml file for spring configuration
compile code and create bytecode in bin folder and then copy META-INF folder in bin folder that includs my byteCodes and then create a bundle
now when I start my bundle in osgi container , throws below Execption :

org.osgi.framework.BundleException: Exception in tehran.Activator.start() of bundle SpringDM1.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(
at Source)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/spring/spring.xml]; nested exception is class path resource [META-INF/spring/spring.xml] cannot be opened because it does not exist
I agree. Here's the link:
subject: How using spring IOC in spring DM ?
It's not a secret anymore!