I tried to make very simple Spring MVC application with spring-webmvc dependency and maven-bundle-plugin in pom.xml. When deploying the war file to servicemix, get IllegalAccessException of org.springframework.context.support.ApplicationContextAwareProcessor.EmbeddedValueResolver
And I tried to deploy a simple struts 2 application to ServiceMix, it works fine. I guess that is because different ClassLoader of spring ( one is injected from OSGI, another is defined by the war file).
Win 7 Enterprise SP1
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Did you test with the spring-osgi sample provided by Pax Web?
There is also an itest available to verify the correct behavior.
The key for Spring in OSGi is the OsgiBundleXmlWebApplicationContext.