I have tried to simplify the trouble-shooting of this problem by cloning the
Eclipse project and breaking down to bare bones classes, xml, etc.
Now the problem I'm having is that the Spring beans config xml does not seem
to be being found and/or parsed b/c I have an invalid bean config in there
(for testing purposes) with a reference to a non-existing bean (which should
cause an exception during parsing/resolution by Spring). No exception is
thrown in the karaf log.
I have the following export-package config in pom.xml:
<Export-Package>
'=WEB-INF.lib',
'=WEB-INF',
'=WEB-INF.lib.classes',
</Export-Package>
The Spring config file is in WEB-INF/classes directory in the WAB.
I have also tried exploding the WAR and moving the Spring config xml to
WEB-INF (this is how it works in another successfully deployed WAB) and
copying exploded directory to deploy dir in karaf. Same behavior, no
exception on startup of karaf.
Here is the partial web.xml:
<servlet>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/workflow-ws-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Finding resources with Spring/karaf seems like such a nightmare....
--
View this message in context:
http://karaf.922171.n3.nabble.com/Does-not-exist-in-file-system-tp4032974p4033001.html
Sent from the Karaf - User mailing list archive at Nabble.com.