Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Swordfish Documentation: Running Target Platform"

Line 10: Line 10:
  
 
#<p>Create a new Target Platform definition by selecting '''File &gt; New &gt; Other... &gt; Target Definition''' and add location of built Swordfish plugins to the list of locations presented by definition.<br/>[[Image:Target_definition_site.png]]<br/></p>
 
#<p>Create a new Target Platform definition by selecting '''File &gt; New &gt; Other... &gt; Target Definition''' and add location of built Swordfish plugins to the list of locations presented by definition.<br/>[[Image:Target_definition_site.png]]<br/></p>
#<p>Add to the platform definition location of Equinox bundles necessary to run target platform.<br/>
+
#<p>Add to the platform definition location of Equinox bundles necessary to run target platform.<br/>After the headless build these bundles can be found under the "platform" directory of org.eclipse.swordfish.build project.<br/>[[Image:Target_definition.png]]<br/><br/>Go to the "Content" tab and select bundles showed below<br/>[[Image:Target_content.png]]<br/></p>
After the headless build these bundles can be found under the "platform" directory of org.eclipse.swordfish.build project.
+
#<p>Configure Eclipse to use Swordfish target platform. To accomplish this step go to the '''Window &gt; Preferences &gt; Target Platform''' and set newly created definition as active target platform.<br/>[[Image:Target_platform.png]]<br/></p>
</li>
+
#<p>Go to the '''Run Configurations...''' dialog and create a new OSGi configuration based on Swordfish target platform.<br/>[[Image:Launch_configuration.png]]<br/></p>
[[Image:Target_definition.png]]
+
#<p>Switch to the '''Arguments''' tab and enter the following VM arguments necessary to start Swordfish runtime.<br/>Note that value of org.osgi.service.http.port should be set to '''9001''' - default port the remote resolver uses to connect to the Swordfish registry.
<br/><br/>
+
[[Image:Target_content.png]]<br/>
+
<li>
+
Configure Eclipse to use Swordfish target platform. To accomplish this step go to the '''Window &gt; Preferences &gt; Target Platform''' and set newly created definition as active target platform.
+
</li>
+
[[Image:Target_platform.png]]<br/>
+
<li>
+
Go to the '''Run Configurations...''' dialog and create a new OSGi configuration based on Swordfish target platform.
+
</li>
+
[[Image:Launch_configuration.png]]
+
<li>
+
Switch to the '''Arguments''' tab and enter the following VM arguments necessary to start Swordfish runtime.
+
Note that value of org.osgi.service.http.port should be set to '''9001''' - default port the remote resolver uses to connect to the Swordfish registry.
+
 
<pre>
 
<pre>
 
-Dorg.osgi.service.http.port=9001
 
-Dorg.osgi.service.http.port=9001
Line 46: Line 33:
 
org.omg.PortableServer, org.omg.PortableServer.POAPackage, javax.swing.border, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ranges"
 
org.omg.PortableServer, org.omg.PortableServer.POAPackage, javax.swing.border, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ranges"
 
</pre>
 
</pre>
</li>
+
[[Image:Launch_configuration_vm_params.png]]<br/>
[[Image:Launch_configuration_vm_params.png]]
+
</ol>
+
  
 
----------------
 
----------------
 
[[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
 
[[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
 
[[Swordfish | Swordfish Wiki Home]] <br/>
 
[[Swordfish | Swordfish Wiki Home]] <br/>

Revision as of 05:44, 20 May 2009

Running Swordfish Target Platform

This section contains information about setup of the Swordfish Target Platform built by the headless build.
For more information about Swordfish headless build please refer to: Creating a headless build

Prerequisites

The samples below are based on Eclipse Galileo M7 build or later.

Setting up Swordfish target platform

In order to run Swordfish Target Platform it is necessary to perfom the following actions:

  1. Create a new Target Platform definition by selecting File > New > Other... > Target Definition and add location of built Swordfish plugins to the list of locations presented by definition.
    Target definition site.png

  2. Add to the platform definition location of Equinox bundles necessary to run target platform.
    After the headless build these bundles can be found under the "platform" directory of org.eclipse.swordfish.build project.
    Target definition.png

    Go to the "Content" tab and select bundles showed below
    Target content.png

  3. Configure Eclipse to use Swordfish target platform. To accomplish this step go to the Window > Preferences > Target Platform and set newly created definition as active target platform.
    Target platform.png

  4. Go to the Run Configurations... dialog and create a new OSGi configuration based on Swordfish target platform.
    Launch configuration.png

  5. Switch to the Arguments tab and enter the following VM arguments necessary to start Swordfish runtime.
    Note that value of org.osgi.service.http.port should be set to 9001 - default port the remote resolver uses to connect to the Swordfish registry.

-Dorg.osgi.service.http.port=9001
-Dorg.eclipse.swordfish.registry.fileLocation="C:\swordfish\repository"
-Dosgi.noShutdown=true
-Dservicemix.base=.
-Dorg.osgi.framework.system.packages="com.sun.jimi.core, com.sun.net.ssl, com.sun.net.ssl.internal.ssl, com.sun.org.apache.xalan.internal,
com.sun.org.apache.xalan.internal.res, com.sun.org.apache.xalan.internal.xsltc.trax, com.sun.org.apache.xerces.internal.dom,
com.sun.org.apache.xerces.internal.jaxp, com.sun.org.apache.xerces.internal.xni, com.sun.org.apache.xml.internal, com.sun.org.apache.xml.internal.utils,
com.sun.org.apache.xpath.internal, com.sun.org.apache.xpath.internal.jaxp, com.sun.org.apache.xpath.internal.objects, com.sun.xml.fastinfoset.dom,
com.sun.xml.fastinfoset.sax, com.sun.xml.fastinfoset.stax, javax.annotation, javax.annotation.security, javax.crypto, javax.crypto.interfaces,
javax.crypto.spec, javax.imageio, javax.imageio.metadata, javax.imageio.stream, javax.jms, javax.management, javax.management.loading,
javax.management.modelmbean, javax.management.remote, javax.naming, javax.naming.directory, javax.naming.spi, javax.net, javax.net.ssl, javax.rmi,
javax.security.auth, javax.security.auth.callback, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert,
javax.security.sasl, javax.sql, javax.swing, javax.swing.event, javax.xml.datatype,  javax.xml.parsers, javax.xml.namespace,javax.xml.transform,
javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stream, javax.xml.validation, javax.xml.xpath, org.jvnet.fastinfoset,
org.jvnet.staxex, org.omg.CORBA, org.omg.CosNaming, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.ls, org.w3c.dom.traversal, org.xml.sax,
org.xml.sax.ext, org.xml.sax.helpers, sun.misc, sun.security.provider,javax.activation, org.omg.CORBA.TypeCodePackage, org.omg.CORBA.portable,
org.omg.PortableServer, org.omg.PortableServer.POAPackage, javax.swing.border, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ranges"

Launch configuration vm params.png


Swordfish Documentation Home

Swordfish Wiki Home

Back to the top