Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Servlets with Equinox
Servlets with Equinox [message #69131] Thu, 29 June 2006 00:39 Go to next message
Eclipse UserFriend
Originally posted by: ksshams.gmail.com

Hello,
We are trying to move some of our RCP client's functionality to
servlets. However, we want to have the Eclipse plugins and API at our
disposal from the servlet.
I have checked out code for the following two projects:
org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I have
also completed the Quick Start Guide. However, I am unsure what to do
next. Is there any other documentation/tutorial/sample code that can
help me get started on this? I would sincerely appreciate any help or
guidance.

Khawaja
Re: Servlets with Equinox [message #69152 is a reply to message #69131] Thu, 29 June 2006 03:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Hello Khawaja,

To get a better understanding of the OSGi http service, go to the
OSGi site and download the R4 service compendium.

URL -

http://osgi.org/osgi_technology/download_specs2.asp?section= 2

The file your are looking for is OSG_ R4.cmpn.pdf. This document
describes how to register a servlet, with some example code.

-Ken


news.eclipse.org wrote:
> Hello,
> We are trying to move some of our RCP client's functionality to
> servlets. However, we want to have the Eclipse plugins and API at our
> disposal from the servlet.
> I have checked out code for the following two projects:
> org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I have
> also completed the Quick Start Guide. However, I am unsure what to do
> next. Is there any other documentation/tutorial/sample code that can
> help me get started on this? I would sincerely appreciate any help or
> guidance.
>
> Khawaja
Re: Servlets with Equinox [message #69258 is a reply to message #69152] Thu, 29 June 2006 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ksshams.gmail.com

Thank you for the response. I have read through the Http Service
Specification part of the document. The sample code clears up some
details. However, I am still not sure how to get the http service up.
Here is my configuration file:


osgi.bundles= servlet.jar@start, http.jar@start
eclipse.ignoreApp=true

The servlet.jar and http.jar are obtained using the following steps:
1) download org.eclipse.equinox.http_1.0.0.v20060601a.jar and
org.eclipse.equinox.servlet.api_1.0.0.v20060601.jar
2) create a new plugin project (from a jar file) for each of them
3) Export each plugin as a jar file (http.jar and servlet.jar)


However, when I start osgi console, the http service does not start. If
I go on firefox and type in http://localhost, I get no response.

Here are my questions:
1) How do I start the HTTP service?
2) Is the registering of a servlet done through a plugin that also
contains the servlet?
3) Is there an application server, like tomcat, involved in this?


I would sincerely appreciate any guidance on the matter.

Regards,
Khawaja
Ken Gilmer wrote:
>
> Hello Khawaja,
>
> To get a better understanding of the OSGi http service, go to the OSGi
> site and download the R4 service compendium.
>
> URL -
>
> http://osgi.org/osgi_technology/download_specs2.asp?section= 2
>
> The file your are looking for is OSG_ R4.cmpn.pdf. This document
> describes how to register a servlet, with some example code.
>
> -Ken
>
>
> news.eclipse.org wrote:
>
>> Hello,
>> We are trying to move some of our RCP client's functionality to
>> servlets. However, we want to have the Eclipse plugins and API at our
>> disposal from the servlet.
>> I have checked out code for the following two projects:
>> org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I have
>> also completed the Quick Start Guide. However, I am unsure what to do
>> next. Is there any other documentation/tutorial/sample code that can
>> help me get started on this? I would sincerely appreciate any help or
>> guidance.
>>
>> Khawaja
Re: Servlets with Equinox [message #69279 is a reply to message #69258] Thu, 29 June 2006 21:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Khawaja, a few things:

#1 If you are using Eclipse 3.2, you should be able to run the http
plugins inside of eclipse with the Equinox runtime profile. Have you
tried that?
#2 From the OSGi console, typing "ss" will give you a list of bundles
your OSGi runtime knows about. What do you see when you type "ss"?
#3 I think your problem may be in naming the jar files. I have a
working runtime with http bundle, and the directory looks like this:

rapsilla:~/Documents/temp/vbug ken$ ls
org.eclipse.equinox.common_3.2.0.200606251213.jar
org.eclipse.equinox.event_1.0.0.200606261442.jar
org.eclipse.equinox.http_1.0.0.200606261905.jar
org.eclipse.equinox.log_1.0.0.200606261442.jar
org.eclipse.equinox.servlet.api_1.0.0.200606261442.jar
org.eclipse.osgi.services_3.1.100.200606251246.jar
org.eclipse.osgi_3.2.100.200606251215.jar
configuration

-Ken



Khawaja Shams wrote:
> Thank you for the response. I have read through the Http Service
> Specification part of the document. The sample code clears up some
> details. However, I am still not sure how to get the http service up.
> Here is my configuration file:
>
>
> osgi.bundles= servlet.jar@start, http.jar@start
> eclipse.ignoreApp=true
>
> The servlet.jar and http.jar are obtained using the following steps:
> 1) download org.eclipse.equinox.http_1.0.0.v20060601a.jar and
> org.eclipse.equinox.servlet.api_1.0.0.v20060601.jar
> 2) create a new plugin project (from a jar file) for each of them
> 3) Export each plugin as a jar file (http.jar and servlet.jar)
>
>
> However, when I start osgi console, the http service does not start. If
> I go on firefox and type in http://localhost, I get no response.
>
> Here are my questions:
> 1) How do I start the HTTP service?
> 2) Is the registering of a servlet done through a plugin that also
> contains the servlet?
> 3) Is there an application server, like tomcat, involved in this?
>
>
> I would sincerely appreciate any guidance on the matter.
>
> Regards,
> Khawaja
> Ken Gilmer wrote:
>>
>> Hello Khawaja,
>>
>> To get a better understanding of the OSGi http service, go to the
>> OSGi site and download the R4 service compendium.
>>
>> URL -
>>
>> http://osgi.org/osgi_technology/download_specs2.asp?section= 2
>>
>> The file your are looking for is OSG_ R4.cmpn.pdf. This document
>> describes how to register a servlet, with some example code.
>>
>> -Ken
>>
>>
>> news.eclipse.org wrote:
>>
>>> Hello,
>>> We are trying to move some of our RCP client's functionality to
>>> servlets. However, we want to have the Eclipse plugins and API at
>>> our disposal from the servlet.
>>> I have checked out code for the following two projects:
>>> org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I have
>>> also completed the Quick Start Guide. However, I am unsure what to
>>> do next. Is there any other documentation/tutorial/sample code that
>>> can help me get started on this? I would sincerely appreciate any
>>> help or guidance.
>>>
>>> Khawaja
Re: Servlets with Equinox [message #69299 is a reply to message #69279] Thu, 29 June 2006 23:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ksshams.gmail.com

# 2) After I type in ss, I get the following output:

C:\jpl>java -jar org.eclipse.osgi_3.1.1.jar -console

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.1.1
1 ACTIVE initial@reference:file:servlet.jar/ [1]
2 ACTIVE initial@reference:file:http.jar/ [2]

osgi>


# 3) Do I need all the files that are in your bundle?
I changed the names to match yours:


C:\jpl>java -jar org.eclipse.osgi_3.1.1.jar -console

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.1.1
1 ACTIVE
initial@reference :file:org.eclipse.equinox.servlet.api_1.0.0.200606261442.jar /
[1]
2 ACTIVE
initial@reference:file:org.eclipse.equinox.http_1.0.0.200606261905.jar/ [2]

osgi>

However, http://localhost still gives me no response.

Thank you so much for your guidance.

Regards,
Khawaja


Ken Gilmer wrote:
>
> Khawaja, a few things:
>
> #1 If you are using Eclipse 3.2, you should be able to run the http
> plugins inside of eclipse with the Equinox runtime profile. Have you
> tried that?
> #2 From the OSGi console, typing "ss" will give you a list of bundles
> your OSGi runtime knows about. What do you see when you type "ss"?
> #3 I think your problem may be in naming the jar files. I have a
> working runtime with http bundle, and the directory looks like this:
>
> rapsilla:~/Documents/temp/vbug ken$ ls
> org.eclipse.equinox.common_3.2.0.200606251213.jar
> org.eclipse.equinox.event_1.0.0.200606261442.jar
> org.eclipse.equinox.http_1.0.0.200606261905.jar
> org.eclipse.equinox.log_1.0.0.200606261442.jar
> org.eclipse.equinox.servlet.api_1.0.0.200606261442.jar
> org.eclipse.osgi.services_3.1.100.200606251246.jar
> org.eclipse.osgi_3.2.100.200606251215.jar
> configuration
>
> -Ken
>
>
>
> Khawaja Shams wrote:
>
>> Thank you for the response. I have read through the Http Service
>> Specification part of the document. The sample code clears up some
>> details. However, I am still not sure how to get the http service up.
>> Here is my configuration file:
>>
>>
>> osgi.bundles= servlet.jar@start, http.jar@start
>> eclipse.ignoreApp=true
>>
>> The servlet.jar and http.jar are obtained using the following steps:
>> 1) download org.eclipse.equinox.http_1.0.0.v20060601a.jar and
>> org.eclipse.equinox.servlet.api_1.0.0.v20060601.jar
>> 2) create a new plugin project (from a jar file) for each of them
>> 3) Export each plugin as a jar file (http.jar and servlet.jar)
>>
>>
>> However, when I start osgi console, the http service does not start.
>> If I go on firefox and type in http://localhost, I get no response.
>>
>> Here are my questions:
>> 1) How do I start the HTTP service?
>> 2) Is the registering of a servlet done through a plugin that also
>> contains the servlet?
>> 3) Is there an application server, like tomcat, involved in this?
>>
>>
>> I would sincerely appreciate any guidance on the matter.
>>
>> Regards,
>> Khawaja
>> Ken Gilmer wrote:
>>
>>>
>>> Hello Khawaja,
>>>
>>> To get a better understanding of the OSGi http service, go to the
>>> OSGi site and download the R4 service compendium.
>>>
>>> URL -
>>>
>>> http://osgi.org/osgi_technology/download_specs2.asp?section= 2
>>>
>>> The file your are looking for is OSG_ R4.cmpn.pdf. This document
>>> describes how to register a servlet, with some example code.
>>>
>>> -Ken
>>>
>>>
>>> news.eclipse.org wrote:
>>>
>>>> Hello,
>>>> We are trying to move some of our RCP client's functionality to
>>>> servlets. However, we want to have the Eclipse plugins and API at
>>>> our disposal from the servlet.
>>>> I have checked out code for the following two projects:
>>>> org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I
>>>> have also completed the Quick Start Guide. However, I am unsure
>>>> what to do next. Is there any other documentation/tutorial/sample
>>>> code that can help me get started on this? I would sincerely
>>>> appreciate any help or guidance.
>>>>
>>>> Khawaja
Re: Servlets with Equinox [message #69318 is a reply to message #69279] Thu, 29 June 2006 23:58 Go to previous message
Eclipse UserFriend
Originally posted by: ksshams.gmail.com

I will go ahead and try running with Eclipse in the meantime. However,
we would like to eventually run the http service without eclipse.

Regards,
Khawaja
Ken Gilmer wrote:
>
> Khawaja, a few things:
>
> #1 If you are using Eclipse 3.2, you should be able to run the http
> plugins inside of eclipse with the Equinox runtime profile. Have you
> tried that?
> #2 From the OSGi console, typing "ss" will give you a list of bundles
> your OSGi runtime knows about. What do you see when you type "ss"?
> #3 I think your problem may be in naming the jar files. I have a
> working runtime with http bundle, and the directory looks like this:
>
> rapsilla:~/Documents/temp/vbug ken$ ls
> org.eclipse.equinox.common_3.2.0.200606251213.jar
> org.eclipse.equinox.event_1.0.0.200606261442.jar
> org.eclipse.equinox.http_1.0.0.200606261905.jar
> org.eclipse.equinox.log_1.0.0.200606261442.jar
> org.eclipse.equinox.servlet.api_1.0.0.200606261442.jar
> org.eclipse.osgi.services_3.1.100.200606251246.jar
> org.eclipse.osgi_3.2.100.200606251215.jar
> configuration
>
> -Ken
>
>
>
> Khawaja Shams wrote:
>
>> Thank you for the response. I have read through the Http Service
>> Specification part of the document. The sample code clears up some
>> details. However, I am still not sure how to get the http service up.
>> Here is my configuration file:
>>
>>
>> osgi.bundles= servlet.jar@start, http.jar@start
>> eclipse.ignoreApp=true
>>
>> The servlet.jar and http.jar are obtained using the following steps:
>> 1) download org.eclipse.equinox.http_1.0.0.v20060601a.jar and
>> org.eclipse.equinox.servlet.api_1.0.0.v20060601.jar
>> 2) create a new plugin project (from a jar file) for each of them
>> 3) Export each plugin as a jar file (http.jar and servlet.jar)
>>
>>
>> However, when I start osgi console, the http service does not start.
>> If I go on firefox and type in http://localhost, I get no response.
>>
>> Here are my questions:
>> 1) How do I start the HTTP service?
>> 2) Is the registering of a servlet done through a plugin that also
>> contains the servlet?
>> 3) Is there an application server, like tomcat, involved in this?
>>
>>
>> I would sincerely appreciate any guidance on the matter.
>>
>> Regards,
>> Khawaja
>> Ken Gilmer wrote:
>>
>>>
>>> Hello Khawaja,
>>>
>>> To get a better understanding of the OSGi http service, go to the
>>> OSGi site and download the R4 service compendium.
>>>
>>> URL -
>>>
>>> http://osgi.org/osgi_technology/download_specs2.asp?section= 2
>>>
>>> The file your are looking for is OSG_ R4.cmpn.pdf. This document
>>> describes how to register a servlet, with some example code.
>>>
>>> -Ken
>>>
>>>
>>> news.eclipse.org wrote:
>>>
>>>> Hello,
>>>> We are trying to move some of our RCP client's functionality to
>>>> servlets. However, we want to have the Eclipse plugins and API at
>>>> our disposal from the servlet.
>>>> I have checked out code for the following two projects:
>>>> org.eclipse.equinox.http and org.eclipse.equinox.servlet.api. I
>>>> have also completed the Quick Start Guide. However, I am unsure
>>>> what to do next. Is there any other documentation/tutorial/sample
>>>> code that can help me get started on this? I would sincerely
>>>> appreciate any help or guidance.
>>>>
>>>> Khawaja
Previous Topic:http service questions
Next Topic:How to debug plugins in application server (bea weblogic)
Goto Forum:
  


Current Time: Thu Apr 25 09:46:41 GMT 2024

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

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

Back to the top