Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340184

Summary: Deployed applications don't work starting from the shell
Product: [RT] Virgo Reporter: Carlos Salinas <devel>
Component: jettyAssignee: Project Inbox <virgo-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, glyn.normington
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
An app example that shows the error descripbed in the bug item none

Description Carlos Salinas CLA 2011-03-16 12:32:54 EDT
Build Identifier: Eclipse Plataform 3.6.1 & STS Version: 2.5.2.RELEASE

When i start Virgo Jetty Server from shell by startup.sh script. I can run the web console, but not the deplyed applications. There is a jetty 404 error.

Reproducible: Always

Steps to Reproduce:
1.Run startup.sh in the shell
2.Type http://localhost:8080/youtDeployedAppContext
3.Appear a 404 error
Comment 1 Glyn Normington CLA 2011-03-17 06:01:52 EDT
Please could you provide a small example application that exhibits the problem?
Comment 2 Carlos Salinas CLA 2011-03-17 06:20:22 EDT
Created attachment 191396 [details]
An app example that shows the error descripbed in the bug item

U should enable an httpservice in the OSGi framework, because the app only consume the service to register a servlet with the web-contextpath '/test' and shows a message ' Hello, world!'.
Comment 3 Glyn Normington CLA 2011-03-17 07:54:35 EDT
So that we can reproduce your exact environment, please could you detail how you set up a HTTP Service? Sorry for being picky, but we want to reproduce the bug you are seeing.
Comment 4 Carlos Salinas CLA 2011-03-17 07:57:19 EDT
I describe how i configured the httpservice in the following forum thread:

http://www.eclipse.org/forums/index.php?t=msg&th=206189&start=0&S=8120c905b0992dbc1ed0b8cd8eb9e278

(In reply to comment #3)
> So that we can reproduce your exact environment, please could you detail how
> you set up a HTTP Service? Sorry for being picky, but we want to reproduce the
> bug you are seeing.
Comment 5 Glyn Normington CLA 2011-03-17 07:59:05 EDT
Perfect. Thanks!
Comment 6 Chris Frost CLA 2011-03-17 08:18:13 EDT
There is a known issue with the version of Pax-Web you are using, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=331370

As such could you re-test with Pax-Web 1.0.0 where this issue has been fixed.
Comment 7 Carlos Salinas CLA 2011-03-17 13:39:36 EDT
(In reply to comment #6)
> There is a known issue with the version of Pax-Web you are using, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=331370
> 
> As such could you re-test with Pax-Web 1.0.0 where this issue has been fixed.

I have just tested, replacing the Pax-Web bundles version 0.8.0 for ones in the version 1.0.1, and the bug doesnt be fixed.

By the i also try using the equinox httpService implemented for jetty 7, as you told in the forum thread

http://www.eclipse.org/forums/index.php?t=rview&goto=660064#msg_660064 

Bu i couldnt retrieve the httpservice using the same test bundle i attached.
Can you point the exact list of bundles i have to deploy besides the org.eclipse.equinox.http.jetty?
Comment 8 Chris Frost CLA 2011-04-19 07:24:57 EDT
Hi,

Apologies for the slow reply, I've been away on vacation. I can't advise on the Jetty 7 HttpService as I've never had it running myself but I do know it requires most of the Jetty bundles to be present as it's built on top on the WAB support. This is quite different from the way the Jetty 6 HttpService worked. 

I've only used the Equinox implementation. What extra features do you require from the HttpService as the Equinox one may well meet them. For example there is a Jasper bundle that can provide JSP support for the Equinox HttpService.

I think it's worth taking a step back to look at your requirements as you are tying out some quite untested code/combinations and there may well be something much more stable and proven that provides what your after.

Thanks, 
Chris.
Comment 9 Glyn Normington CLA 2011-05-10 07:37:56 EDT
Dear Raiser

Please can you say where you are at with this bug? The Jetty guys are not shipping the Http Service in Jetty 7 as part of Indigo and the use of Pax Web further complicates diagnosis due to some complex repackaging of multiple bundles into a single bundle.

Unless we can get to a specific stable configuration, we are not going to be able to diagnose this bug,

Regards,
Glyn
Comment 10 Glyn Normington CLA 2011-05-16 05:10:28 EDT
Since we have nothing specific to go on, closing.