Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » basic jetty configuration question
basic jetty configuration question [message #100553] Mon, 29 October 2007 19:05 Go to next message
Eclipse UserFriend
Originally posted by: twilliams.xanboo.com

Sorry, I'm sure this is a very simple question, I've downloaded and
installed the 3.3.1.1 bundles that are required for the HTTP server
quickstart as listed below, what do I need to load to resolve the jetty
bundle dependencies: javax.net.ssl, javax.security.cert, javax.xml.parsers,
org.xml.sax, org.xml.sax.helpers. Thanks....

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
1 ACTIVE org.eclipse.equinox.log_1.0.100.v20070226
3 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
5 ACTIVE org.apache.commons.logging_1.0.4.v200706111724
7 INSTALLED org.eclipse.equinox.http.jetty_1.0.1.R33x_v20070816
9 INSTALLED org.mortbay.jetty_5.1.11.v200706111724
10 ACTIVE javax.servlet_2.4.0.v200706111738
11 ACTIVE org.eclipse.equinox.http.servlet_1.0.1.R33x_v20070816

osgi> diag 7
file:///opt/equinox/bundles3.3.1.1/org.eclipse.equinox.http. jetty.tim.jar
[7]
Missing imported package org.mortbay.http_[5.1.0,6.0.0).
Missing imported package org.mortbay.jetty.servlet_[5.1.0,6.0.0).
Missing imported package org.mortbay.util_[5.1.0,6.0.0).

osgi> diag 9
file:///opt/equinox/bundles3.3.1.1/org.mortbay.jetty.tim.jar [9]
Missing imported package javax.net.ssl_0.0.0.
Missing imported package javax.security.cert_0.0.0.
Missing imported package javax.xml.parsers_0.0.0.
Missing imported package org.xml.sax_0.0.0.
Missing imported package org.xml.sax.helpers_0.0.0.

osgi>
Re: basic jetty configuration question [message #100567 is a reply to message #100553] Mon, 29 October 2007 19:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: twilliams.xanboo.com

I think I understand what's happening. These components are normally
available under j2se1.4 but my embedded environment seems to lack them. I
guess my only choice would be to try to rebuild jetty with these
dependencies removed right?


"Tim Williams" <twilliams@xanboo.com> wrote in message
news:fg5asu$jo7$1@build.eclipse.org...
> Sorry, I'm sure this is a very simple question, I've downloaded and
> installed the 3.3.1.1 bundles that are required for the HTTP server
> quickstart as listed below, what do I need to load to resolve the jetty
> bundle dependencies: javax.net.ssl, javax.security.cert,
javax.xml.parsers,
> org.xml.sax, org.xml.sax.helpers. Thanks....
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 1 ACTIVE org.eclipse.equinox.log_1.0.100.v20070226
> 3 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
> 5 ACTIVE org.apache.commons.logging_1.0.4.v200706111724
> 7 INSTALLED org.eclipse.equinox.http.jetty_1.0.1.R33x_v20070816
> 9 INSTALLED org.mortbay.jetty_5.1.11.v200706111724
> 10 ACTIVE javax.servlet_2.4.0.v200706111738
> 11 ACTIVE org.eclipse.equinox.http.servlet_1.0.1.R33x_v20070816
>
> osgi> diag 7
> file:///opt/equinox/bundles3.3.1.1/org.eclipse.equinox.http. jetty.tim.jar
> [7]
> Missing imported package org.mortbay.http_[5.1.0,6.0.0).
> Missing imported package org.mortbay.jetty.servlet_[5.1.0,6.0.0).
> Missing imported package org.mortbay.util_[5.1.0,6.0.0).
>
> osgi> diag 9
> file:///opt/equinox/bundles3.3.1.1/org.mortbay.jetty.tim.jar [9]
> Missing imported package javax.net.ssl_0.0.0.
> Missing imported package javax.security.cert_0.0.0.
> Missing imported package javax.xml.parsers_0.0.0.
> Missing imported package org.xml.sax_0.0.0.
> Missing imported package org.xml.sax.helpers_0.0.0.
>
> osgi>
>
>
Re: basic jetty configuration question [message #100655 is a reply to message #100567] Tue, 30 October 2007 14:01 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Tim,

I really like this use-case and I think you should open an enhancement
request.
In a nutshell I think it might be worth looking at making the parser and ssl
stuff optional.

While setting up a demo for last Eclipsecon I was running Jetty on a phone
and can share what I found.
I didn't run into problems with the parsers because I was using the XML
packages from eRCP, but taking a quick glance at Jetty I don't see why we
couldn't make it optional - we'll see. For SSL support what I found was that
Jetty's HttpConnection.close method unfortunately does an instanceof check
to see if the connection is SSL. Without the SSL packages present a
non-fatal CNF exception is thrown and a stacktrace happens -- not really
pretty but...

It was a demo, so what I ended up doing was creating a dummy bundle that
provided all the security packages and a singlestubbed up SSL Connection
class. This worked ok, but again it was a demo so... The other thing I ran
into was JSP support was pretty spotty because of the missing javabean
support. I could for example run some really simple JSPs but anything
involving tag libs or other fanciness would fail.

Since then I've mentioned the HttpConnection close problem to Jan (Jetty)
but haven't got around to formally filing a bug/patch. It's also unclear if
the Jetty folk would accept this in there 5.1 stream. Still, it's worth
trying as it's likely we'll upgrade to the latest and greatest Jetty 5.1
release in the 3.4 cycle.

HTH
-Simon

"Tim Williams" <twilliams@xanboo.com> wrote in message
news:fg5c1g$str$1@build.eclipse.org...
>I think I understand what's happening. These components are normally
> available under j2se1.4 but my embedded environment seems to lack them. I
> guess my only choice would be to try to rebuild jetty with these
> dependencies removed right?
>
>
> "Tim Williams" <twilliams@xanboo.com> wrote in message
> news:fg5asu$jo7$1@build.eclipse.org...
>> Sorry, I'm sure this is a very simple question, I've downloaded and
>> installed the 3.3.1.1 bundles that are required for the HTTP server
>> quickstart as listed below, what do I need to load to resolve the jetty
>> bundle dependencies: javax.net.ssl, javax.security.cert,
> javax.xml.parsers,
>> org.xml.sax, org.xml.sax.helpers. Thanks....
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> 1 ACTIVE org.eclipse.equinox.log_1.0.100.v20070226
>> 3 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
>> 5 ACTIVE org.apache.commons.logging_1.0.4.v200706111724
>> 7 INSTALLED org.eclipse.equinox.http.jetty_1.0.1.R33x_v20070816
>> 9 INSTALLED org.mortbay.jetty_5.1.11.v200706111724
>> 10 ACTIVE javax.servlet_2.4.0.v200706111738
>> 11 ACTIVE org.eclipse.equinox.http.servlet_1.0.1.R33x_v20070816
>>
>> osgi> diag 7
>> file:///opt/equinox/bundles3.3.1.1/org.eclipse.equinox.http. jetty.tim.jar
>> [7]
>> Missing imported package org.mortbay.http_[5.1.0,6.0.0).
>> Missing imported package org.mortbay.jetty.servlet_[5.1.0,6.0.0).
>> Missing imported package org.mortbay.util_[5.1.0,6.0.0).
>>
>> osgi> diag 9
>> file:///opt/equinox/bundles3.3.1.1/org.mortbay.jetty.tim.jar [9]
>> Missing imported package javax.net.ssl_0.0.0.
>> Missing imported package javax.security.cert_0.0.0.
>> Missing imported package javax.xml.parsers_0.0.0.
>> Missing imported package org.xml.sax_0.0.0.
>> Missing imported package org.xml.sax.helpers_0.0.0.
>>
>> osgi>
>>
>>
>
>
Previous Topic:Question on starting Equinox from Java Application
Next Topic:JSP osgi server example : how start the exemple?
Goto Forum:
  


Current Time: Tue Apr 23 14:24:59 GMT 2024

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

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

Back to the top