using servletbridge with RCP application and PDE [message #81799] |
Wed, 24 January 2007 17:43 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
I am using the servlet bridge with an RCP application and have put my
target servlet in my RCP application.
I have two issues:
1) The servlet bridge calls EclipseStarter.start() which starts up
Eclipse, but does not seem to start an application, even though I
specify eclipse.application in the launch.ini file (and see that it gets
set correctly in the EclipseStarter.setInitialPropertiesCall()). I
think it is correct that the application is not started, because if you
want the application started, you should call EclipseStarter.run().
When I run the servlet bridge, Eclipse starts correctly when the 'cat
starts.
How do I start an application using the servlet bridge? My plan is to
have a special application which does the registration of my servlet
with the servlet bridge. Is this workable?
2) Running in the PDE - I have packaged the servlet bridge as a plugin
and a web application so that I can test it using the (wonderful) web
tools. In order to have the servlet bridge stuff correctly find
everything maintained by the PDE, I put this code in my launch.ini.
This works just fine (except for the problem #1), but I wonder if there
is a better way?
#osgi.*=@null
#org.osgi.*=@null
#eclipse.*=@null
osgi.install.area=file:/usr/local/eclipse_deploy/eclipse
osgi.configuration.area=file:/home/francis/d/.metadata/.plug ins/org.eclipse.pde.core/transform.product
(0, 1devel repos)/
osgi.dev=file:/home/francis/d/.metadata/.plugins/org.eclipse .pde.core/transform.product
(0, 1devel repos)/dev.properties
osgi.framework=file:/usr/local/eclipse_deploy/eclipse/plugin s/org.eclipse.osgi_3.2.1.R32x_v20060919.jar
# note that this line has no effect
eclipse.application=com.oaklandsw.transform.runtime.servleta pplication
osgi.parentClassloader=ext
osgi.contextClassLoaderParent=ext
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Powered by
FUDForum. Page generated in 0.01854 seconds