|Re: Can Spring be used in host and in snaps? [message #998805 is a reply to message #998785]
||Thu, 10 January 2013 18:11
| Chris Frost
Registered: January 2010
Location: Southampton, England
I can't build it as I'm missing the parent POM. I have spotted a few things just having a look around.|
* I don't know what the 'Webapp-Context: objectverse' manifest entry is for, should be harmless though.
* The host bundle is giving the 'Bundle-Classpath' twice with different values, no way of knowing which one it will actually use.
The host looks to be well setup but the snap has nothing in the web.xml, it's all commented out. I don't know how you expect it to find any of the ***-context.xml files in the snap. I think (if my memory is working) that Blueprint won't look for Spring contexts in the WEB-INF folder and Tomcat won't look for anything as the web.xml is empty. Spring context files should go under META-INF. This may seem annoying but we have to make sure that Blueprint and the Servlet container don't try and read the same context files as you get duplicates/races etc... and it just won't work.
I've also hunted the NPE down, this is a bug on our part but it isn't clear what is causing it. I have raised a bug that you might like to follow,
Sorry I haven't got a straight fix for you.
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
[Updated on: Thu, 10 January 2013 18:12]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03139 seconds