|Re: Webapp is started, but only delivers 404 [message #662574 is a reply to message #662149]
||Thu, 31 March 2011 07:38
| Jean-Pierre Bergamin
Registered: March 2011
Location: Zürich, CH
Am 29.03.2011 16:15, schrieb Martin Lippert:|
> Sorry for not coming back to you earlier. Do you still have the problem?
> I am not sure I understand the problem correctly. Does your project have
> a MANIFEST.MF file? (maybe generated by Bundlor). Typically there is
> nothing special needed to be recognized as a Spring-DM bundle (as far as
> I know).
> In case you still have problems, it would be great to get an example
> project that can be used to reproduce the problem. I am sure we will
> find out what is missing here.
I could solve the problem.
When checking out a fresh copy of the project, we have to set the
eclipse project facets and natures manually.
I added the "Dynamic Web Modules" facet to the web project, but forgot
to set the content directory to src/main/webapp in the "Further
configuration available..." dialog. So the content directory was set to
WebContent, which was empty of course. This also explains why the bundle
have not been recognized as a spring dm powered bundle, because the
config files were not present.
I had to change the path of the content directory from "WebContent" to
"src/main/webapp" in the .settings/org.eclipse.wst.common.component file:
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
Powered by FUDForum
. Page generated in 0.01389 seconds