Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problem with http.jetty and static content...
Problem with http.jetty and static content... [message #96804] Mon, 10 September 2007 03:18 Go to next message
Eclipse UserFriend
Originally posted by: kitplummer.gmail.com

I'm following the instructions for embedded HTTP into Equinox for static
content here:

http://www.eclipse.org/equinox/server/http_in_equinox.php
http://www.eclipse.org/equinox/server/http_writing_applicati on.php

A couple of problems. Jetty by defaults tries to use port 80. I've changed
this by setting a VM argument in the Run configuration:

-Dorg.eclipse.equinox.http.jetty.http.port=8080

Now, the framework seems to launch the server successfully:

osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
INFO:
Version Jetty/5.1.x
Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
start
INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
Sep 9,
2007 7:56:15 AM org.mortbay.util.Container start
INFO: Started
HttpContext[/,/]
Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
start
INFO: Started SocketListener on 0.0.0.0:8080
Sep 9, 2007 7:56:15 AM
org.mortbay.util.Container start
INFO: Started
org.mortbay.http.HttpServer@aca5e2

But, my test bundle doesn't work. I get:

HTTP ERROR: 404

ProxyServlet: /files/index.html

RequestURI=/files/index.html

Powered by Jetty://

Here's the 'ss':

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE
org.eclipse.osgi_3.3.0.v20070530
977 ACTIVE
org.mortbay.jetty_5.1.11.v200706111724
978 ACTIVE
org.eclipse.equinox.http.jetty_1.0.0.v20070607
979 ACTIVE
org.apache.commons.logging_1.0.4.v200706111724
980 ACTIVE
org.eclipse.osgi.services_3.1.200.v20070605
981 ACTIVE
org.eclipse.equinox.http.servlet_1.0.0.v20070606
982 ACTIVE
javax.servlet_2.4.0.v200706111738
983 ACTIVE
org.eclipse.equinox.registry_3.3.0.v20070522
984 ACTIVE
org.eclipse.equinox.common_3.3.0.v20070426
986 ACTIVE
org.eclipse.equinox.http.registry_1.0.0.v20070608
991 ACTIVE
org.rvooz.http.testapp_0.1.0

osgi>


Any ideas? I'm following the directions verbatim, save for the package name
of the bundle - which probably shouldn't matter.

TIA,
Kit
Re: Problem with http.jetty and static content... [message #96820 is a reply to message #96804] Mon, 10 September 2007 05:32 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hmm... that looks fine.
Can you zip up your project and attach it. (e.g. export->archive).

-Simon

"Kit Plummer" <kitplummer@gmail.com> wrote in message
news:C30A0589.565%kitplummer@gmail.com...
> I'm following the instructions for embedded HTTP into Equinox for static
> content here:
>
> http://www.eclipse.org/equinox/server/http_in_equinox.php
> http://www.eclipse.org/equinox/server/http_writing_applicati on.php
>
> A couple of problems. Jetty by defaults tries to use port 80. I've
> changed
> this by setting a VM argument in the Run configuration:
>
> -Dorg.eclipse.equinox.http.jetty.http.port=8080
>
> Now, the framework seems to launch the server successfully:
>
> osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
> INFO:
> Version Jetty/5.1.x
> Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
> start
> INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
> Sep 9,
> 2007 7:56:15 AM org.mortbay.util.Container start
> INFO: Started
> HttpContext[/,/]
> Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
> start
> INFO: Started SocketListener on 0.0.0.0:8080
> Sep 9, 2007 7:56:15 AM
> org.mortbay.util.Container start
> INFO: Started
> org.mortbay.http.HttpServer@aca5e2
>
> But, my test bundle doesn't work. I get:
>
> HTTP ERROR: 404
>
> ProxyServlet: /files/index.html
>
> RequestURI=/files/index.html
>
> Powered by Jetty://
>
> Here's the 'ss':
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE
> org.eclipse.osgi_3.3.0.v20070530
> 977 ACTIVE
> org.mortbay.jetty_5.1.11.v200706111724
> 978 ACTIVE
> org.eclipse.equinox.http.jetty_1.0.0.v20070607
> 979 ACTIVE
> org.apache.commons.logging_1.0.4.v200706111724
> 980 ACTIVE
> org.eclipse.osgi.services_3.1.200.v20070605
> 981 ACTIVE
> org.eclipse.equinox.http.servlet_1.0.0.v20070606
> 982 ACTIVE
> javax.servlet_2.4.0.v200706111738
> 983 ACTIVE
> org.eclipse.equinox.registry_3.3.0.v20070522
> 984 ACTIVE
> org.eclipse.equinox.common_3.3.0.v20070426
> 986 ACTIVE
> org.eclipse.equinox.http.registry_1.0.0.v20070608
> 991 ACTIVE
> org.rvooz.http.testapp_0.1.0
>
> osgi>
>
>
> Any ideas? I'm following the directions verbatim, save for the package
> name
> of the bundle - which probably shouldn't matter.
>
> TIA,
> Kit
>
Re: Problem with http.jetty and static content... [message #96892 is a reply to message #96820] Mon, 10 September 2007 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kitplummer.gmail.com

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3272249925_3686509
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit

Attached. Thanks Simon...I'm just not seeing anything that doesn't make
sense. Maybe Jetty version?

On 9/9/07 10:32 PM, in article fc2kte$vpb$1@build.eclipse.org, "Simon Kaegi"
<simon_kaegi@ca.ibm.com> wrote:

> Hmm... that looks fine.
> Can you zip up your project and attach it. (e.g. export->archive).
>
> -Simon
>
> "Kit Plummer" <kitplummer@gmail.com> wrote in message
> news:C30A0589.565%kitplummer@gmail.com...
>> I'm following the instructions for embedded HTTP into Equinox for static
>> content here:
>>
>> http://www.eclipse.org/equinox/server/http_in_equinox.php
>> http://www.eclipse.org/equinox/server/http_writing_applicati on.php
>>
>> A couple of problems. Jetty by defaults tries to use port 80. I've
>> changed
>> this by setting a VM argument in the Run configuration:
>>
>> -Dorg.eclipse.equinox.http.jetty.http.port=8080
>>
>> Now, the framework seems to launch the server successfully:
>>
>> osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
>> INFO:
>> Version Jetty/5.1.x
>> Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
>> start
>> INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
>> Sep 9,
>> 2007 7:56:15 AM org.mortbay.util.Container start
>> INFO: Started
>> HttpContext[/,/]
>> Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
>> start
>> INFO: Started SocketListener on 0.0.0.0:8080
>> Sep 9, 2007 7:56:15 AM
>> org.mortbay.util.Container start
>> INFO: Started
>> org.mortbay.http.HttpServer@aca5e2
>>
>> But, my test bundle doesn't work. I get:
>>
>> HTTP ERROR: 404
>>
>> ProxyServlet: /files/index.html
>>
>> RequestURI=/files/index.html
>>
>> Powered by Jetty://
>>
>> Here's the 'ss':
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE
>> org.eclipse.osgi_3.3.0.v20070530
>> 977 ACTIVE
>> org.mortbay.jetty_5.1.11.v200706111724
>> 978 ACTIVE
>> org.eclipse.equinox.http.jetty_1.0.0.v20070607
>> 979 ACTIVE
>> org.apache.commons.logging_1.0.4.v200706111724
>> 980 ACTIVE
>> org.eclipse.osgi.services_3.1.200.v20070605
>> 981 ACTIVE
>> org.eclipse.equinox.http.servlet_1.0.0.v20070606
>> 982 ACTIVE
>> javax.servlet_2.4.0.v200706111738
>> 983 ACTIVE
>> org.eclipse.equinox.registry_3.3.0.v20070522
>> 984 ACTIVE
>> org.eclipse.equinox.common_3.3.0.v20070426
>> 986 ACTIVE
>> org.eclipse.equinox.http.registry_1.0.0.v20070608
>> 991 ACTIVE
>> org.rvooz.http.testapp_0.1.0
>>
>> osgi>
>>
>>
>> Any ideas? I'm following the directions verbatim, save for the package
>> name
>> of the bundle - which probably shouldn't matter.
>>
>> TIA,
>> Kit
>>
>
>


--B_3272249925_3686509
Content-type: application/octet-stream; name="http.testapp.zip"
Content-disposition: attachment;
filename="http.testapp.zip"
Content-transfer-encoding: base64

UEsDBBQACAAIAOsxKjcAAAA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AAAAAA ANIHAABvcmcu
cnZvb3ouaHR0cC50ZXN0YXBwL3NyYy9vcmcvcnZvb3ovaHR0cC90ZXN0YXBw L0FjdGl2YXRv
ci5qYXZhUEsBAhQAFAAIAAgA6zEqN8d4+fIYAAAAGAAAAC8AAAAAAAAAAAAA AAAA/QgAAG9y
Zy5ydm9vei5odHRwLnRlc3RhcHAvc3JjL3dlYl9maWxlcy9pbmRleC5odG1s UEsFBgAAAAAK
AAoAmQMAAHIJAAAAAA==

--B_3272249925_3686509--
Re: Problem with http.jetty and static content... [message #96902 is a reply to message #96892] Mon, 10 September 2007 14:51 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hi Kit,

The web_files directory should just sit at the root of the directory instead
of inside /src.
I've done a quick update to a structure I would suggest.

-Simon


"Kit Plummer" <kitplummer@gmail.com> wrote in message
news:C30A9244.579%kitplummer@gmail.com...
> Attached. Thanks Simon...I'm just not seeing anything that doesn't make
> sense. Maybe Jetty version?
>
> On 9/9/07 10:32 PM, in article fc2kte$vpb$1@build.eclipse.org, "Simon
> Kaegi"
> <simon_kaegi@ca.ibm.com> wrote:
>
>> Hmm... that looks fine.
>> Can you zip up your project and attach it. (e.g. export->archive).
>>
>> -Simon
>>
>> "Kit Plummer" <kitplummer@gmail.com> wrote in message
>> news:C30A0589.565%kitplummer@gmail.com...
>>> I'm following the instructions for embedded HTTP into Equinox for static
>>> content here:
>>>
>>> http://www.eclipse.org/equinox/server/http_in_equinox.php
>>> http://www.eclipse.org/equinox/server/http_writing_applicati on.php
>>>
>>> A couple of problems. Jetty by defaults tries to use port 80. I've
>>> changed
>>> this by setting a VM argument in the Run configuration:
>>>
>>> -Dorg.eclipse.equinox.http.jetty.http.port=8080
>>>
>>> Now, the framework seems to launch the server successfully:
>>>
>>> osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
>>> INFO:
>>> Version Jetty/5.1.x
>>> Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
>>> start
>>> INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
>>> Sep 9,
>>> 2007 7:56:15 AM org.mortbay.util.Container start
>>> INFO: Started
>>> HttpContext[/,/]
>>> Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
>>> start
>>> INFO: Started SocketListener on 0.0.0.0:8080
>>> Sep 9, 2007 7:56:15 AM
>>> org.mortbay.util.Container start
>>> INFO: Started
>>> org.mortbay.http.HttpServer@aca5e2
>>>
>>> But, my test bundle doesn't work. I get:
>>>
>>> HTTP ERROR: 404
>>>
>>> ProxyServlet: /files/index.html
>>>
>>> RequestURI=/files/index.html
>>>
>>> Powered by Jetty://
>>>
>>> Here's the 'ss':
>>>
>>> osgi> ss
>>>
>>> Framework is launched.
>>>
>>> id State Bundle
>>> 0 ACTIVE
>>> org.eclipse.osgi_3.3.0.v20070530
>>> 977 ACTIVE
>>> org.mortbay.jetty_5.1.11.v200706111724
>>> 978 ACTIVE
>>> org.eclipse.equinox.http.jetty_1.0.0.v20070607
>>> 979 ACTIVE
>>> org.apache.commons.logging_1.0.4.v200706111724
>>> 980 ACTIVE
>>> org.eclipse.osgi.services_3.1.200.v20070605
>>> 981 ACTIVE
>>> org.eclipse.equinox.http.servlet_1.0.0.v20070606
>>> 982 ACTIVE
>>> javax.servlet_2.4.0.v200706111738
>>> 983 ACTIVE
>>> org.eclipse.equinox.registry_3.3.0.v20070522
>>> 984 ACTIVE
>>> org.eclipse.equinox.common_3.3.0.v20070426
>>> 986 ACTIVE
>>> org.eclipse.equinox.http.registry_1.0.0.v20070608
>>> 991 ACTIVE
>>> org.rvooz.http.testapp_0.1.0
>>>
>>> osgi>
>>>
>>>
>>> Any ideas? I'm following the directions verbatim, save for the package
>>> name
>>> of the bundle - which probably shouldn't matter.
>>>
>>> TIA,
>>> Kit
>>>
>>
>>
>
>


Re: Problem with http.jetty and static content... [message #96929 is a reply to message #96902] Mon, 10 September 2007 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Hello,
it seems that a lot of people starting with Equinox follow this Jetty
tutorial. Wouldn't it be cool to attach some ready made project directly
on that page, so everyone could download it and compare with his own
work in case of any problems?


Simon Kaegi wrote:
> Hi Kit,
>
> The web_files directory should just sit at the root of the directory instead
> of inside /src.
> I've done a quick update to a structure I would suggest.
>
> -Simon
>
>
> "Kit Plummer" <kitplummer@gmail.com> wrote in message
> news:C30A9244.579%kitplummer@gmail.com...
>
>> Attached. Thanks Simon...I'm just not seeing anything that doesn't make
>> sense. Maybe Jetty version?
>>
>> On 9/9/07 10:32 PM, in article fc2kte$vpb$1@build.eclipse.org, "Simon
>> Kaegi"
>> <simon_kaegi@ca.ibm.com> wrote:
>>
>>
>>> Hmm... that looks fine.
>>> Can you zip up your project and attach it. (e.g. export->archive).
>>>
>>> -Simon
>>>
>>> "Kit Plummer" <kitplummer@gmail.com> wrote in message
>>> news:C30A0589.565%kitplummer@gmail.com...
>>>
>>>> I'm following the instructions for embedded HTTP into Equinox for static
>>>> content here:
>>>>
>>>> http://www.eclipse.org/equinox/server/http_in_equinox.php
>>>> http://www.eclipse.org/equinox/server/http_writing_applicati on.php
>>>>
>>>> A couple of problems. Jetty by defaults tries to use port 80. I've
>>>> changed
>>>> this by setting a VM argument in the Run configuration:
>>>>
>>>> -Dorg.eclipse.equinox.http.jetty.http.port=8080
>>>>
>>>> Now, the framework seems to launch the server successfully:
>>>>
>>>> osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
>>>> INFO:
>>>> Version Jetty/5.1.x
>>>> Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
>>>> start
>>>> INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
>>>> Sep 9,
>>>> 2007 7:56:15 AM org.mortbay.util.Container start
>>>> INFO: Started
>>>> HttpContext[/,/]
>>>> Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
>>>> start
>>>> INFO: Started SocketListener on 0.0.0.0:8080
>>>> Sep 9, 2007 7:56:15 AM
>>>> org.mortbay.util.Container start
>>>> INFO: Started
>>>> org.mortbay.http.HttpServer@aca5e2
>>>>
>>>> But, my test bundle doesn't work. I get:
>>>>
>>>> HTTP ERROR: 404
>>>>
>>>> ProxyServlet: /files/index.html
>>>>
>>>> RequestURI=/files/index.html
>>>>
>>>> Powered by Jetty://
>>>>
>>>> Here's the 'ss':
>>>>
>>>> osgi> ss
>>>>
>>>> Framework is launched.
>>>>
>>>> id State Bundle
>>>> 0 ACTIVE
>>>> org.eclipse.osgi_3.3.0.v20070530
>>>> 977 ACTIVE
>>>> org.mortbay.jetty_5.1.11.v200706111724
>>>> 978 ACTIVE
>>>> org.eclipse.equinox.http.jetty_1.0.0.v20070607
>>>> 979 ACTIVE
>>>> org.apache.commons.logging_1.0.4.v200706111724
>>>> 980 ACTIVE
>>>> org.eclipse.osgi.services_3.1.200.v20070605
>>>> 981 ACTIVE
>>>> org.eclipse.equinox.http.servlet_1.0.0.v20070606
>>>> 982 ACTIVE
>>>> javax.servlet_2.4.0.v200706111738
>>>> 983 ACTIVE
>>>> org.eclipse.equinox.registry_3.3.0.v20070522
>>>> 984 ACTIVE
>>>> org.eclipse.equinox.common_3.3.0.v20070426
>>>> 986 ACTIVE
>>>> org.eclipse.equinox.http.registry_1.0.0.v20070608
>>>> 991 ACTIVE
>>>> org.rvooz.http.testapp_0.1.0
>>>>
>>>> osgi>
>>>>
>>>>
>>>> Any ideas? I'm following the directions verbatim, save for the package
>>>> name
>>>> of the bundle - which probably shouldn't matter.
>>>>
>>>> TIA,
>>>> Kit
>>>>
>>>>
>>>
>>
>
>
>
Re: Problem with http.jetty and static content... [message #97023 is a reply to message #96929] Mon, 10 September 2007 17:38 Go to previous message
Eclipse UserFriend
Originally posted by: kitplummer.gmail.com

I think some basic updating to the "Writing a bundle-based server
application" page would probably help. But, you might be right - having the
directory structure/project to look at and start with would be useful.

Kit

On 9/10/07 9:37 AM, in article fc3rv7$hdb$1@build.eclipse.org, "Jacek
Pospychala" <jacek.pospychala@pl.ibm.com> wrote:

> Hello,
> it seems that a lot of people starting with Equinox follow this Jetty
> tutorial. Wouldn't it be cool to attach some ready made project directly
> on that page, so everyone could download it and compare with his own
> work in case of any problems?
>
>
> Simon Kaegi wrote:
>> Hi Kit,
>>
>> The web_files directory should just sit at the root of the directory instead
>> of inside /src.
>> I've done a quick update to a structure I would suggest.
>>
>> -Simon
>>
>>
>> "Kit Plummer" <kitplummer@gmail.com> wrote in message
>> news:C30A9244.579%kitplummer@gmail.com...
>>
>>> Attached. Thanks Simon...I'm just not seeing anything that doesn't make
>>> sense. Maybe Jetty version?
>>>
>>> On 9/9/07 10:32 PM, in article fc2kte$vpb$1@build.eclipse.org, "Simon
>>> Kaegi"
>>> <simon_kaegi@ca.ibm.com> wrote:
>>>
>>>
>>>> Hmm... that looks fine.
>>>> Can you zip up your project and attach it. (e.g. export->archive).
>>>>
>>>> -Simon
>>>>
>>>> "Kit Plummer" <kitplummer@gmail.com> wrote in message
>>>> news:C30A0589.565%kitplummer@gmail.com...
>>>>
>>>>> I'm following the instructions for embedded HTTP into Equinox for static
>>>>> content here:
>>>>>
>>>>> http://www.eclipse.org/equinox/server/http_in_equinox.php
>>>>> http://www.eclipse.org/equinox/server/http_writing_applicati on.php
>>>>>
>>>>> A couple of problems. Jetty by defaults tries to use port 80. I've
>>>>> changed
>>>>> this by setting a VM argument in the Run configuration:
>>>>>
>>>>> -Dorg.eclipse.equinox.http.jetty.http.port=8080
>>>>>
>>>>> Now, the framework seems to launch the server successfully:
>>>>>
>>>>> osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
>>>>> INFO:
>>>>> Version Jetty/5.1.x
>>>>> Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
>>>>> start
>>>>> INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
>>>>> Sep 9,
>>>>> 2007 7:56:15 AM org.mortbay.util.Container start
>>>>> INFO: Started
>>>>> HttpContext[/,/]
>>>>> Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
>>>>> start
>>>>> INFO: Started SocketListener on 0.0.0.0:8080
>>>>> Sep 9, 2007 7:56:15 AM
>>>>> org.mortbay.util.Container start
>>>>> INFO: Started
>>>>> org.mortbay.http.HttpServer@aca5e2
>>>>>
>>>>> But, my test bundle doesn't work. I get:
>>>>>
>>>>> HTTP ERROR: 404
>>>>>
>>>>> ProxyServlet: /files/index.html
>>>>>
>>>>> RequestURI=/files/index.html
>>>>>
>>>>> Powered by Jetty://
>>>>>
>>>>> Here's the 'ss':
>>>>>
>>>>> osgi> ss
>>>>>
>>>>> Framework is launched.
>>>>>
>>>>> id State Bundle
>>>>> 0 ACTIVE
>>>>> org.eclipse.osgi_3.3.0.v20070530
>>>>> 977 ACTIVE
>>>>> org.mortbay.jetty_5.1.11.v200706111724
>>>>> 978 ACTIVE
>>>>> org.eclipse.equinox.http.jetty_1.0.0.v20070607
>>>>> 979 ACTIVE
>>>>> org.apache.commons.logging_1.0.4.v200706111724
>>>>> 980 ACTIVE
>>>>> org.eclipse.osgi.services_3.1.200.v20070605
>>>>> 981 ACTIVE
>>>>> org.eclipse.equinox.http.servlet_1.0.0.v20070606
>>>>> 982 ACTIVE
>>>>> javax.servlet_2.4.0.v200706111738
>>>>> 983 ACTIVE
>>>>> org.eclipse.equinox.registry_3.3.0.v20070522
>>>>> 984 ACTIVE
>>>>> org.eclipse.equinox.common_3.3.0.v20070426
>>>>> 986 ACTIVE
>>>>> org.eclipse.equinox.http.registry_1.0.0.v20070608
>>>>> 991 ACTIVE
>>>>> org.rvooz.http.testapp_0.1.0
>>>>>
>>>>> osgi>
>>>>>
>>>>>
>>>>> Any ideas? I'm following the directions verbatim, save for the package
>>>>> name
>>>>> of the bundle - which probably shouldn't matter.
>>>>>
>>>>> TIA,
>>>>> Kit
>>>>>
>>>>>
>>>>
>>>
>>
>>
>>
Previous Topic:Need to find out if Equinox is launched from Eclipse
Next Topic:Using Log4j in Equinox
Goto Forum:
  


Current Time: Wed Sep 25 22:35:34 GMT 2024

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

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

Back to the top