basic jetty configuration question [message #100553] |
Mon, 29 October 2007 15:05  |
Eclipse User |
|
|
|
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 15:24   |
Eclipse User |
|
|
|
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 10:01  |
Eclipse User |
|
|
|
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>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03882 seconds