Hi everybody,
I'm trying to provision a simple service bundle that was generated using
pax-construct with the -Dspring flag. When running on equinox (and felix
too) however I get the following:
Exception in thread "SpringOsgiExtenderThread-1"
java.lang.IllegalStateException: BeanFactory not initialized or
already closed - call 'refresh' before accessing beans via the
ApplicationContext
at
org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
at java.lang.Thread.run(Thread.java:662)
There are no OSGi services registered at that time.
I really don't know what's going wrong, I'm just using the generated
code...
I used the commands listed in the Spring DM Example link on the website,
using version 1.2.0 of the spring-osgi-extender.
pax-add-repository -i com.springsource.repository.bundles.external -u
http://repository.springsource.com/maven/bundles/external
pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender -v
1.2.0 -- -DimportTransitive -DwidenScope
Can anybody tell me what's happening? I love the pax-tools and would
hate to switch back to an IDE...
Thanks!
Niels
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general