Ok the problem was that some of the dependencies in the osgi spring pom were defined as provided, etc. so none of the libs were making it into the web-inf/lib dir, now they're there.
I am able to install and activate the war-spring.war (OSGi spring version). I am able to navigate to http://localhost:8181/war-spring. However, i see the following in the log: Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'contextClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext] at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)[254:org.ops4j.pax.web.samples.spring:4.0.0.SNAPSHOT] at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:62)[254:org.ops4j.pax.web.samples.spring:4.0.0.SNAPSHOT] at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:125)[254:org.ops4j.pax.web.samples.spring:4.0.0.SNAPSHOT] at javax.servlet.GenericServlet.init(GenericServlet.java:161)[73:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0] at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)[79:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031] ... 33 more To use Spring-DM Web, install: spring-osgi-web.jar - Spring-DM web support spring-osgi-web-extender.jar - Spring-DM web extender http://docs.spring.io/osgi/docs/1.1.0-m2/reference/html/web.html are these the correct jar's for org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext? how to fix this? thx. -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032818.html Sent from the Karaf - User mailing list archive at Nabble.com.
