Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Webapp is started, but only delivers 404
Webapp is started, but only delivers 404 [message #661629] Fri, 25 March 2011 15:42 Go to next message
Jean-Pierre Bergamin is currently offline Jean-Pierre BergaminFriend
Messages: 51
Registered: March 2011
Location: Zürich, CH
Member
Hello everyone

We are developing an OSGi based webapp with STS and Virgo. The web app
worked fine on Virgo within STS so far.

I now checked out a fresh copy of the project and tried to set is up in
eclipse again. Since there is no proper way to configure a maven based
eclipse project out of the box, I did it by hand. I added the OSGi
Bundle Nature and added the Dynamic Web Module facet.

Now when I start up the web app by dragging it onto thy virgo 3.0.0.M3
instance in STS, the webapp starts fine, but when I access it, I only
get back 404s. When I look at the log files, I see the following lines:

[2011-03-25 16:22:10.480] TCP Connection(10)-127.0.0.1
org.eclipse.virgo.medic.eventlog.default DE0004I Starting bundle
'net.junisphere.eranger.ui.web' version '0.0.1.SNAPSHOT'.
[2011-03-25 16:22:10.481] TCP Connection(10)-127.0.0.1
org.eclipse.virgo.kernel.core.internal.BundleStartTracker Non-Spring DM
powered bundle 'net.junisphere.eranger.ui.web_0.0.1.SNAPSHOT [129]' has
started. Driving signals
'[org.eclipse.virgo.kernel.install.artifact.internal.Abstrac tInstallArtifact$StateMonitorSignal@48b4776]'.

....

[2011-03-25 16:22:10.673] start-signalling-3
org.eclipse.virgo.medic.eventlog.default WE0001I Started web bundle
'net.junisphere.eranger.ui.web' version '0.0.1.SNAPSHOT' with context
path '/er'.

It seems as if this web bundle is not recognized as a spring dm bundle
("Non-Spring DM powered bundle").

What am I missing or what do I have to configure in STS to make the
webapp work again?


Best regards,
James
Re: Webapp is started, but only delivers 404 [message #662149 is a reply to message #661629] Tue, 29 March 2011 14:15 Go to previous messageGo to next message
Martin Lippert is currently offline Martin LippertFriend
Messages: 124
Registered: July 2009
Senior Member
Hi James!

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.

Cheers,
-Martin
Re: Webapp is started, but only delivers 404 [message #662574 is a reply to message #662149] Thu, 31 March 2011 07:38 Go to previous message
Jean-Pierre Bergamin is currently offline Jean-Pierre BergaminFriend
Messages: 51
Registered: March 2011
Location: Zürich, CH
Member
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"/>
....


Best regards,
James
Previous Topic:Virgo GIT Repository Down?
Next Topic:Loading ActiveMQ Spring client on Virgo
Goto Forum:
  


Current Time: Sun Dec 08 06:32:15 GMT 2024

Powered by FUDForum. Page generated in 0.03304 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top