Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to write plugin with HTTP Server(Our application has a lot of forms. We want to display and post those forms in eclipse browser but we need plugin that will be HTTP Server (Servlets, JSP))
How to write plugin with HTTP Server [message #667209] Wed, 27 April 2011 12:53 Go to next message
Marcin  is currently offline Marcin
Messages: 2
Registered: April 2011
Junior Member
Our application has a lot of forms. We want to display and post those forms in eclipse browser but we need plugin that will be HTTP Server (Servlets, JSP).

So we create a feature like this:

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="com.hertz.as.servlet.module"
      label="Module Feature"
      version="1.0.0"
      provider-name="HERTZ">
   <description url="http://www.example.com/description">
      [Enter Feature Description here.]
   </description>
   <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>
   <license url="http://www.example.com/license">
      [Enter License Description here.]
   </license>
   <plugin
         id="org.eclipse.equinox.http.jetty"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="org.eclipse.equinox.http.servlet"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="org.eclipse.equinox.http.registry"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="org.apache.commons.logging"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="org.mortbay.jetty"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="com.hertz.as.server"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="javax.servlet"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
   <plugin
         id="org.eclipse.osgi.services"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>
</feature>


Now we want To use this feature in our RCP Application but the we don't know how to start the JETTY Server from our RCP Application. We tried by activator. When we run this in OSGI Envioment Server is starting and working but our application can't start so how to solve this problems. How to write plugin to our application with HTTP Server inside to handle requests from eclipse browser on localhost.
Re: How to write plugin with HTTP Server [message #760957 is a reply to message #667209] Mon, 05 December 2011 17:48 Go to previous messageGo to next message
nodachi is currently offline nodachi
Messages: 2
Registered: December 2011
Location: Canada
Junior Member
I am facing the same problem. have you found a solution?
Re: How to write plugin with HTTP Server [message #761565 is a reply to message #760957] Tue, 06 December 2011 17:02 Go to previous messageGo to next message
Marcin  is currently offline Marcin
Messages: 2
Registered: April 2011
Junior Member
We solve this problem but it was some time ago. The project was cancelled by the way. I remember that this was very hard to configure. I try to post You a solution in few days. Take care.
Re: How to write plugin with HTTP Server [message #765055 is a reply to message #760957] Tue, 13 December 2011 10:29 Go to previous message
John Ormerod is currently offline John Ormerod
Messages: 39
Registered: January 2010
Member
Hi nodachi
I don't know if Jetty has a servlet engine. My only experience with this is IBM's implementation of the RCP (Lotus Expeditor). This has a built-in servlet (and portlet) engines and was easy to use. This was 2-4 years ago now. The drawback is that it's not free, and comes with a whole load of goodies, that whilst nice to have, are probably surplus to requirements.
If Jetty does support servlets, then ask again and I'll have a peep at old code to see if I can offer any clues. It might be that IBM created code to process the extensions it provided for using the servlet engine. I can't remember the details although I use it a lot on one project.
Regards, John
Previous Topic:My own translations
Next Topic:RCP View toolbar automatically shut off the line?
Goto Forum:
  


Current Time: Tue Sep 16 01:07:57 GMT 2014

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

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