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: Swordfish Tooling (eclipse target platform)"

(How to : Swordfish Tooling (eclipse target platform))
 
(Here is step-by-step description.)
Line 7: Line 7:
 
#General prerequisites:
 
#General prerequisites:
 
#* Eclipse Galileo
 
#* Eclipse Galileo
#* Update Site url: '''http ://<host>/target.platform'''
+
#* Update Site URL: '''http ://<host>/target.platform'''
 
#* Example project: cxf-osgi. This is modified cxf example to be PDE project.  
 
#* Example project: cxf-osgi. This is modified cxf example to be PDE project.  
 
#Install Swordfish target platform:
 
#Install Swordfish target platform:
#* ensure you have correct proxy settings in the Eclipse
+
#* check that you have correct proxy settings in the Eclipse
#* go Help - Install New Software...
+
#* select Help - Install New Software... in the top menu
#* in the 'Work with' file Update Site url
+
#* type in Update Site URI in the 'Work with' field
#* choose 'Sample Target Platform Feature' and click Next
+
#* select 'Sample Target Platform Feature' and click Next
#* in the 'Install Details' window choose 'Sample Target Platform Feature' and click Finish.
+
#* select 'Sample Target Platform Feature' in the 'Install Details' window and click Finish
#* Platform should be installed. Restart Eclipse.
+
#* after the platform is installed restart Eclipse.
 
#Configure Eclipse to use Swordfish target platform:
 
#Configure Eclipse to use Swordfish target platform:
#* go Window - Preferences - Plug-in development - Target Platform and click Add
+
#* go to Window - Preferences - Plug-in development - Target Platform and click Add
#* in the 'New Target Defenition' choose 'Template' and select 'Sample Runtime Platform'. Click Next.  
+
#* select 'Template' in the 'New Target Defenition' and then select 'Sample Runtime Platform'. Click Next.  
#* create New Target Defenition: click Finish.
+
#* create New Target Defenition and click Finish.
#* in the 'Target Platform' window select 'swordfish' and set it active: 'Set Active'.
+
#* select 'swordfish' in the 'Target Platform' window and set it active ('Set Active').
#* apply changes: Apply. And click Ok.
+
#* apply changes (Apply) and click Ok.
#* go Run - Run Configurations...
+
#* go to Run - Run Configurations...
#* create new configuration: choose OSGI Framework - New. Set name for configuration: 'swordfish'.
+
#* create new configuration: choose OSGI Framework - New. Enter the name for configuration: 'swordfish'.
 
#Create example project:
 
#Create example project:
#* import example project into workspace.
+
#* import an example project into workspace.
#* ensure there are no compile errors.
+
#* check that there are no compile errors.
 
#Run example project:
 
#Run example project:
 
#* go Run - Run Configurations...
 
#* go Run - Run Configurations...
#* choose 'swordfish' configuration to run.
+
#* select 'swordfish' configuration to run.
#* click Run. Wait untill container will start. Basicaly when in log you will see: ''INFO: Setting the server's publish address to be /HelloWorld'' you can do next steps
+
#* click Run. Wait untill container will start. Basicaly, when you will see: ''INFO: Setting the server's publish address to be /HelloWorld'' in log, you can proceed
 
#Check if example works:
 
#Check if example works:
#* ensure example project started (p.5)
+
#* while an example project is started (p.5) type in 'http://localhost:8080/cxf/' in browser url address field
#* in browser type http://localhost:8080/cxf/
+
#* click on '''''{http ://cxf.examples.servicemix.apache.org/}HelloWorldImplPort'''''.
#* You will see: '''''{http ://cxf.examples.servicemix.apache.org/}HelloWorldImplPort''''' - click on it.
+
#* you will see the WSDL document generated (also you can see WSDL using direct url: http://localhost:8080/cxf/HelloWorld?wsdl ).
#* You will see generated WSDL document (also you can see WSDL using direct url: http://localhost:8080/cxf/HelloWorld?wsdl ).
+
:
+
==== Export example project JAR. ====
+
: You can export example jar to use it in the standalone environment.
+
: There are 2 ways to do it. We recommend use first one.
+
# Deployable plug-ins and fragments
+
#* select project
+
#* File - Export - Plug-in Development - Deployable plug-ins and fragments, click Next
+
#* set Directory to export. Click Finish.
+
#* check created jar file.
+
# JAR file.
+
#* select project, File - Export - JAR file, click Next
+
#* Select resources to export - mark only: '''''src/main/java''''' and '''''META-INF'''''
+
#* Select the export destination: set file name and path. click Next twice.
+
#* in the JAR Manifest Specification: select 'Use existing manifest from workspace'. Set '''''/cxf-osgi/META-INF/MANIFEST.MF'''''. Click Finish.
+
#* check created jar file.
+

Revision as of 09:08, 19 March 2009

Main goal is show how Swordfish developer can:

  • install Swordfish target platform.
  • create/deploy/run jax-ws services in the Eclipse environment using Swordfish target platform.

Here is step-by-step description.

  1. General prerequisites:
    • Eclipse Galileo
    • Update Site URL: http ://<host>/target.platform
    • Example project: cxf-osgi. This is modified cxf example to be PDE project.
  2. Install Swordfish target platform:
    • check that you have correct proxy settings in the Eclipse
    • select Help - Install New Software... in the top menu
    • type in Update Site URI in the 'Work with' field
    • select 'Sample Target Platform Feature' and click Next
    • select 'Sample Target Platform Feature' in the 'Install Details' window and click Finish
    • after the platform is installed restart Eclipse.
  3. Configure Eclipse to use Swordfish target platform:
    • go to Window - Preferences - Plug-in development - Target Platform and click Add
    • select 'Template' in the 'New Target Defenition' and then select 'Sample Runtime Platform'. Click Next.
    • create New Target Defenition and click Finish.
    • select 'swordfish' in the 'Target Platform' window and set it active ('Set Active').
    • apply changes (Apply) and click Ok.
    • go to Run - Run Configurations...
    • create new configuration: choose OSGI Framework - New. Enter the name for configuration: 'swordfish'.
  4. Create example project:
    • import an example project into workspace.
    • check that there are no compile errors.
  5. Run example project:
    • go Run - Run Configurations...
    • select 'swordfish' configuration to run.
    • click Run. Wait untill container will start. Basicaly, when you will see: INFO: Setting the server's publish address to be /HelloWorld in log, you can proceed
  6. Check if example works:

Back to the top