JBoss.orgCommunity Documentation

JBoss Tools User Guide

Information about using the plug-ins comprising JBoss Tools

Abstract

This document details how to use and customize the individual plug-ins comprising JBoss Tools.


Preface
1. Document Conventions
1.1. Typographic Conventions
1.2. Pull-quote Conventions
1.3. Notes and Warnings
2. Getting Help and Giving Feedback
1. Introduction to Red Hat JBoss Developer Studio
1.1. About Red Hat JBoss Developer Studio
1.2. Use Cases of JBoss Developer Studio
I. Tools for Every Project
2. JBoss Central and the JBoss Perspective
2.1. Overview of JBoss Central and the JBoss Perspective
2.1.1. About JBoss Central
2.1.2. About the JBoss Perspective
2.2. Features of JBoss Central and the JBoss Perspective
2.2.1. Features Overview
2.2.2. View JBoss Central
2.2.3. Access Project Wizards in JBoss Central
2.2.4. Access Information in JBoss Central
2.2.5. Update Software in JBoss Central
2.2.6. Open the JBoss Perspective
2.2.7. Manage JBoss Perspective
2.2.8. View Cheat Sheets
2.3. Customizing JBoss Central and the JBoss Perspective
2.3.1. Customizing Overview
2.3.2. Change the Behavior of JBoss Central on IDE Start
2.3.3. Customize the Default Tabs, Menus and Toolbars of the JBoss Perspective
2.3.4. Use Project Examples when Working Offline
2.3.5. Set Cheat Sheet Behavior
3. JBoss Server Tools
3.1. Overview of JBoss Server Tools
3.1.1. About JBoss Server Tools
3.2. Features of JBoss Server Tools
3.2.1. Features Overview
3.2.2. Download a JBoss Community Application Server
3.2.3. Define a Local Server with Runtime Detection
3.2.4. Create an Additional Server Runtime Environment
3.2.5. Define an Additional Local Server
3.2.6. Define a Remote Server
3.2.7. Manage Server Settings
3.2.8. Manage Server Settings in Overview Mode
3.2.9. Manage Server Settings in Deployment Mode
3.3. Customizing JBoss Server Tools
3.3.1. Customizing Overview
3.3.2. Enable Runtime Detection on IDE Start
3.3.3. Set a Default Server
3.3.4. Default Filesets
3.3.5. Default Classpath Entries
4. Forge Tools
4.1. Overview of Forge Tools
4.1.1. About Forge
4.1.2. About Forge Tools
4.2. Features of Forge Tools
4.2.1. Features Overview
4.2.2. Manage the Forge Console
4.2.3. Manage the Forge Runtime Server
4.2.4. Navigate to Project Resources on the Forge Command Line
4.2.5. Background Actions Invoked by Forge Commands
4.2.6. Access a List of Forge Commands
4.2.7. Use Forge Wizards
4.3. Customizing Forge Tools
4.3.1. Customizing Overview
4.3.2. Customize the Forge Start
4.3.3. Manage Forge Runtime Servers
II. Tools for Creating Web Interfaces
5. LiveReload Tools
5.1. Overview of LiveReload Tools
5.1.1. About LiveReload
5.1.2. About LiveReload Tools
5.2. Features of LiveReload Tools
5.2.1. Features Overview
5.2.2. Create a LiveReload Server
5.2.3. Configure the LiveReload Server
5.2.4. View Resources in LiveReload-enabled Browsers
5.2.5. View Resources in LiveReload-enabled BrowserSim
III. Tools for Creating Mobile Applications
6. Mobile Web Tools
6.1. Overview of Mobile Web Tools
6.1.1. About Mobile Web Tools
6.2. Features of Mobile Web Tools
6.2.1. Features Overview
6.2.2. Create a Mobile Web Project
6.2.3. Use a HTML5 jQuery Mobile File Template
6.2.4. Access the jQuery Mobile Palette
6.2.5. Insert a jQuery Mobile Palette Widget into a HTML5 File
6.2.6. Get Assistance with jQuery Mobile Programming
6.2.7. View jQuery Mobile Pages in a Browser
6.3. Customizing Mobile Web Tools
6.3.1. Customizing Overview
6.3.2. Customize jQuery Mobile File Templates
7. BrowserSim
7.1. Overview of BrowserSim
7.1.1. About BrowserSim
7.1.2. System Requirements
7.2. Features of BrowserSim
7.2.1. Features Overview
7.2.2. View a Web Application on BrowserSim
7.2.3. Manage Web Applications on BrowserSim
7.2.4. Change the Appearance of a Simulated Device
7.2.5. View a Web Page in Different Browsers and Simulated Devices
7.2.6. Generate a Screen Capture of a Simulated Device
7.2.7. Activate LiveReload for BrowserSim
7.2.8. View the Source of a Web Page
7.3. Customizing BrowserSim
7.3.1. Customizing Overview
7.3.2. Make BrowserSim the Default Browser
7.3.3. Add BrowserSim to the Global Toolbar
7.3.4. Set a Shortcut for the Run BrowserSim Action
7.3.5. Add or Modify Devices in BrowserSim
7.3.6. Change the Default Behavior when a Device does not Fit the Display
7.3.7. Change the Default LiveReload Port
7.3.8. Change the Default Location for Saved Screen Captures
7.3.9. Change the Default Settings for Weinre
IV. Tools for Deployment and Maintenance
8. OpenShift Tools
8.1. Overview of OpenShift Tools
8.1.1. About OpenShift
8.1.2. About OpenShift Tools
8.2. Features of OpenShift Tools
8.2.1. Features Overview
8.2.2. Create an OpenShift User Account
8.2.3. Connect to OpenShift
8.2.4. Manage a Connection
8.2.5. Generate and Upload SSH keys to OpenShift
8.2.6. Manage SSH Keys
8.2.7. Create a Domain
8.2.8. Manage a Domain
8.2.9. Create and Deploy an Application on OpenShift
8.2.10. Deploy an Existing Application on OpenShift
8.2.11. Import a Deployed OpenShift Application into the IDE
8.2.12. Generate a server adapter for an application
8.2.13. View a Deployed Application and Associated Information
8.2.14. Manage a Deployed Application
A. Revision History

This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information.

In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later include the Liberation Fonts set by default.

Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows.

Mono-spaced Bold

Used to highlight system input, including shell commands, file names and paths. Also used to highlight keys and key combinations. For example:

The above includes a file name, a shell command and a key, all presented in mono-spaced bold and all distinguishable thanks to context.

Key combinations can be distinguished from an individual key by the plus sign that connects each part of a key combination. For example:

The first example highlights a particular key to press. The second example highlights a key combination: a set of three keys pressed simultaneously.

If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in mono-spaced bold. For example:

Proportional Bold

This denotes words or phrases encountered on a system, including application names; dialog box text; labeled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example:

The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context.

Mono-spaced Bold Italic or Proportional Bold Italic

Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example:

Note the words in bold italics above — username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system.

Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example:

Do You Need Help?

If you experience difficulty with a procedure described in this documentation, visit the JBoss Tools website at http://www.jboss.org/tools. Through the JBoss Tools website, you can:

  • search or browse through a knowledgebase of technical support articles in the wiki.

  • view video tutorials on how to use the tools.

  • participate in discussions in the user forum.

  • keep up to date with changes via the blog, mailing list and News and Noteworthy web page.

Give us Feedback

If you find a typographical error or have a suggestion for improving this documentation, we would love to hear from you. Submit a report in JIRA at https://issues.jboss.org against the project Documentation for JBoss Tools and Developer Studio (TOOLSDOC).

Fill out the template below in JIRA's Description field. Be as specific as possible when describing the issue; this will help ensure that we can fix it quickly.

Document URL:

Section Number and Name:

Describe the issue:

Suggestions for improvement:

Additional information:

Be sure to give us your name so that you can receive full credit for reporting the issue.

Red Hat JBoss Developer Studio is a set of Eclipse-based development tools. It contains plug-ins that integrate with Eclipse to extend the existing functionality of the integrated development environment (IDE).

JBoss Developer Studio is designed to increase your productivity when developing applications. You can focus on building, testing and deploying your applications because JBoss application development tools are integrated in one IDE. Furthermore, JBoss Developer Studio has many unique features to assist your application development:

JBoss Developer Studio comes built around Eclipse and packaged with all of the necessary dependencies and third-party plug-ins for simplified installing. For developers already running Eclipse, JBoss Developer Studio can also be installed through Eclipse Marketplace. For distinction, this latter JBoss Developer Studio installation is called JBoss Developer Studio BYOE (Bring Your Own Eclipse).

JBoss Developer Studio assists JEE developers by integrating JBoss technology and APIs in a single development environment. Here are a few ways that JBoss Developer Studio makes the work of a developer easier:

Web applications

JBoss Central provides wizards that generate skeleton and sample projects, enabling you to focus on developing the functionality of your applications. The wizards create web applications based on different APIs and technologies, showing the usage and advantages of each. JBoss Developer Studio also offers project file templates in a range of popular programming languages, including HTML, XHTML, and JSF.

Palettes in JBoss Developer Studio give access to the core elements of the JSF, Richfaces and Seam APIs, for use in developing the user interfaces of your applications. Elements of these APIs can be dragged and dropped directly into your project so that you can create richer user interfaces quickly. Visual Web Tools offers graphical and source viewing of files and defaults to dedicated editors for different file types. JBoss Developer Studio supports the Java EE 6 specification and provides tools for JAX-RS, Hibernate, and CDI APIs so you can develop the server-side components of your application effortlessly.

LiveReload Tools automatically refreshes browsers of local or deployed applications as you modify project resources to save you from needing to manually refresh. You can even experience automatic refreshing when viewing applications in browsers on external and mobile devices, with application web addresses easy to navigate to with QR codes.

Web applications optimized for mobile devices

Mobile Web Tools provides support for HTML5 and jQuery Mobile to enable you to create web applications optimized across desktop and mobile clients. The HTML5 Project wizard in JBoss Central generates a sample application using HTML5 and jQuery Mobile technologies and, together with HTML5 and jQuery Mobile project file templates, helps you to get up and running with these APIs and technologies quickly. HTML5 and jQuery Mobile widgets can be dragged from the Mobile Web palette into your project files and, in conjunction with the widget wizards, enable you to effortlessly develop customized user interfaces for your mobile web applications.

BrowserSim allows you to view your web applications on a variety of simulated mobile devices so that you can ensure they will be correctly formatted. LiveReload also extends to BrowserSim allowing you to experience automatic browser refreshing as you develop your mobile web applications. The integration of Firebug Lite and Weinre capabilities with BrowserSim assists you to inspect the page source of web pages with familiar tools.

Applications for cloud deployment

OpenShift Tools deploys your applications directly to the cloud on the Red Hat OpenShift platform. You can create and manage your OpenShift account and manage the deployment of applications in your OpenShift domain from within the IDE. In addition to using the OpenShift Application wizard to create new applications for deployment to OpenShift, OpenShift Tools can import applications already deployed on OpenShift so that you can further develop them and manage their deployment from the comfort of the IDE.

Table of Contents

2. JBoss Central and the JBoss Perspective
2.1. Overview of JBoss Central and the JBoss Perspective
2.1.1. About JBoss Central
2.1.2. About the JBoss Perspective
2.2. Features of JBoss Central and the JBoss Perspective
2.2.1. Features Overview
2.2.2. View JBoss Central
2.2.3. Access Project Wizards in JBoss Central
2.2.4. Access Information in JBoss Central
2.2.5. Update Software in JBoss Central
2.2.6. Open the JBoss Perspective
2.2.7. Manage JBoss Perspective
2.2.8. View Cheat Sheets
2.3. Customizing JBoss Central and the JBoss Perspective
2.3.1. Customizing Overview
2.3.2. Change the Behavior of JBoss Central on IDE Start
2.3.3. Customize the Default Tabs, Menus and Toolbars of the JBoss Perspective
2.3.4. Use Project Examples when Working Offline
2.3.5. Set Cheat Sheet Behavior
3. JBoss Server Tools
3.1. Overview of JBoss Server Tools
3.1.1. About JBoss Server Tools
3.2. Features of JBoss Server Tools
3.2.1. Features Overview
3.2.2. Download a JBoss Community Application Server
3.2.3. Define a Local Server with Runtime Detection
3.2.4. Create an Additional Server Runtime Environment
3.2.5. Define an Additional Local Server
3.2.6. Define a Remote Server
3.2.7. Manage Server Settings
3.2.8. Manage Server Settings in Overview Mode
3.2.9. Manage Server Settings in Deployment Mode
3.3. Customizing JBoss Server Tools
3.3.1. Customizing Overview
3.3.2. Enable Runtime Detection on IDE Start
3.3.3. Set a Default Server
3.3.4. Default Filesets
3.3.5. Default Classpath Entries
4. Forge Tools
4.1. Overview of Forge Tools
4.1.1. About Forge
4.1.2. About Forge Tools
4.2. Features of Forge Tools
4.2.1. Features Overview
4.2.2. Manage the Forge Console
4.2.3. Manage the Forge Runtime Server
4.2.4. Navigate to Project Resources on the Forge Command Line
4.2.5. Background Actions Invoked by Forge Commands
4.2.6. Access a List of Forge Commands
4.2.7. Use Forge Wizards
4.3. Customizing Forge Tools
4.3.1. Customizing Overview
4.3.2. Customize the Forge Start
4.3.3. Manage Forge Runtime Servers

JBoss Central provides access to wizards for generating projects. There are two types of project wizards available in JBoss Central:

To create a project from one of the wizards, in the JBoss Central tab select the Getting Started page. Click on one of the links below Start from scratch or Start from a sample. Alternatively, click FileNew and select a project from the list. A wizard opens to guide you through the process of creating the project.

Additionally, access is provided to the comprehensive TicketMonster tutorial, part of JBoss Developer Framework, that guides you through developing a complex web application utilizing JBoss technologies from within the IDE. To view the tutorial, in the JBoss Central tab select the Getting Started page and click the Open the Ticket Monster tutorial button. The JBoss Developer Framework website will open in the default browser of the IDE.


JBoss Central enables you to install and update a range of IDE plug-ins. The available plug-ins comprise JBoss and third party plug-ins that have been specifically tested for use with the IDE. These plug-ins include ones for web and mobile development, source control management, testing and Maven.

For all actions listed below, open the JBoss Central tab and select the Software/Update page.

View available software

The available software is listed in the table. To refresh the list of available plug-ins, click the Refresh icon .

View installed plug-ins

Select the Show Installed check box. The installed plug-ins are listed in the table as disabled.


Install available software

In the Find field, type the name of the software or scroll through the list to locate it. Select the check box corresponding to the software you want to install and click Install or click the Install icon .


In the Install wizard, ensure the check boxes are selected for the software you want to install and click Next.


Review the details of the items listed for install and click Next. After reading and agreeing to the license(s), click I accept the terms of the license agreement(s) and click Finish. The Installing Software window opens and reports the progress of the installation.

During the installation process you may receive warnings about installing unsigned content. If this is the case, check the details of the content and if satisfied click OK to continue with the installation.


Once installing is complete, you are prompted to restart the IDE. Click Yes to restart now and No if you need to save any unsaved changes to open projects. Note that changes do not take effect until the IDE is restarted.

Check for software updates

Click the Check for Updates icon . The Contacting Software Sites window opens and reports the progress of checking. Once checking is complete, a prompt informs you of any new software found. Click OK to close the prompt.


You can customize the menus and toolbars displayed by the JBoss perspective, as with any perspective.

To customize the JBoss perspective, ensure it is the current perspective and click WindowCustomize Perspective. In the Tool Bar Visibility tab, select or clear the check boxes corresponding to the individual toolbars and icons visible in the global toolbar of the JBoss perspective as appropriate. In the Menu Visibility tab, select or clear the check boxes corresponding to the menus and menu items visible in the JBoss perspective as appropriate. Disabled items in the Tool Bar Visibility or Menu Visibility tab can be activated in the Command Groups Availability tab. Click OK to close the window.



You can reorder the individual toolbars comprising the global toolbar in the JBoss perspective. To reorder, click the vertical line indicating the beginning of a toolbar and drag the toolbar to its new location in the global toolbar.


Additionally, you can customize which tabs are part of the JBoss perspective. To customize the tabs, ensure the JBoss perspective is the current perspective. Open or close tabs as desired and click WindowSave Perspective As. From the Existing Perspectives list, select JBoss and click OK. At the prompt asking if you want to overwrite the existing JBoss perspective, click Yes.


To revert all customization of the JBoss perspective, ensure it is the current perspective and click WindowReset Perspective. At the prompt asking if you want to reset the JBoss perspective to its saved state, select the Also discard perspective's customization check box and click Yes.


When a project wizard in JBoss Central is used, the IDE searches online respositories for the most recent versions of project dependencies. JBoss Central provides a feature that enables you to create a cache of the necessary project dependencies when you are online so that you can still use the project wizards offline. As detailed below, this is achieved by first creating the cache and then informing the IDE to use that cache.

Important

Maven must be correctly configured for all of the project wizards before the cache script is run. Red Hat JBoss Enterprise Application Platform and Red Hat JBoss Web Framework Kit Maven repositories must be specified in settings.xml.

To create the cache, click WindowPreferences. Expand JBoss ToolsProject Examples and select Offline Support. To run the cache generating script, click Copy to Clipboard and paste the selected text on a command line outside the IDE. The script will download and build all of the project examples in a new directory offline. The script may take some time to complete.

Once the cache is generated, copy offline/.jbosstools/cache to the directory where you want to keep the project examples. Copy the contents of offline/.m2/repository to your local maven repository.

To inform the IDE to use the cache for the project example wizards, click WindowPreferences. Expand JBoss ToolsProject Examples and select Offline Support. Select the Enable offline mode for project examples check box. Ensure the correct cache location is specified in the Offline directory field. Click Apply and click OK to close the Preferences window.

Application servers must be installed on your system in order to deploy applications to local and remote instances of them. Many application servers must be downloaded from outside the IDE. But JBoss Server Tools can assist you to download JBoss community application servers from within the IDE, as detailed in the procedure below.

Once downloading is complete, the application server archive is extracted and several automated actions occur:

You must define a server in the IDE before you can use it. A complete server definition is composed of two elements:

JBoss Server Tools provides runtime detection that automatically generates a complete default server definition for any installed application servers found in a given local system search path, as detailed in the procedure below. Complete server definitions are automatically generated for JBoss community servers downloaded with JBoss Server Tools.

Generated server runtime environments are listed in Preferences under ServerRuntime Environments. A default server adapter is automatically created for each generated server runtime environment to complete the server definition. Server adapters are listed in the Servers tab.


Note

Alternatively, you can manually define servers by using the IDE server functions to create a server runtime environment and then to create a server adapter.

Runtime detection defines a local server for each application server it discovers in given search paths on your system. But you may want to create additional server runtime environments with different configurations for an installed application server. The procedure below details the process for creating new server runtime environments. For older versions of application servers, you can also create a new runtime server by cloning an existing one.

Procedure 3.3. Create a Server Runtime Environment

  1. Click WindowPreferences, expand Server and select Runtime Environments.


  2. Click Add.

  3. From the Select the type of runtime environment list, select a JBoss community application server.

  4. To create a complete local server definition, select the Create a new local server check box.


  5. Click Next.

  6. In the Name field, type a name by which to identify the server runtime environment within the IDE.

  7. In the Home Directory field, type the path of the installed application server or click Browse to navigate to the location.Alternatively, to use a JBoss community application server that is not already installed on the system, click Download and install runtime and follow the instructions.

  8. From the JRE list, select the JRE to use with the application server.

  9. In the Configuration file field, type the path of the application server configuration file or click Browse to navigate to the location. Note that the path of the application server configuration file is relative to Home Directory/standalone/configuration/, where Home Directory is specified in the Home Directory field.


    Note

    For older application servers, the Configuration file field is replaced with the Directory field. In this field, type the path where the application server configurations are installed and then select a listed configuration. To clone from an existing server runtime environment, after selecting a listed configuration click Copy. Complete the name for the new configuration and the location where the configuration should be stored and click OK.

  10. Click Next if the button is enabled, otherwise click Finish. The Next button is only enabled if you selected the Create a new local server check box earlier. On the presented page, complete the appropriate information and click Finish.


Runtime detection defines a local server for each application server it discovers in given search paths on your system. But you may want to create additional server adapters with different configurations to define multiple servers. To create a new server adapter to define a local server, you must use the new server wizard as detailed in the procedure below.

Procedure 3.4. Define a Local Server

  1. Click the Servers tab. If the Servers tab is not visible, click WindowShow ViewServers.

  2. Depending on the number of existing servers, follow the appropriate step:

    • If there are no existing servers, click Click this link to create a new server.

    • If there are one or more existing servers, right-click an existing server and click NewServer.

  3. From the Select the server type list, select a JBoss community application server.

  4. The Server's host name and Server name fields are completed by default. In the Server name field, type a name by which to identify the server definition.

  5. From the Server runtime environment list, select the specific server runtime environment for the application server type to use. Alternatively, to create a new runtime environment click Add and complete the fields as appropriate.


    Note

    If the Server runtime environment field is not shown, no server runtime environments exist for the selected application server type. A server runtime environment must be selected before you can successfully create a server adapter and complete the server definition. To create a new server runtime environment without canceling the wizard, click Next and complete the fields as appropriate.

  6. Click Next.

  7. The server behavior options displayed vary depending on the selected application server type.


    Complete the options as appropriate:

    • To specify that the server life cycle will be managed from outside the IDE, select the Server is externally managed check box.

    • To specify that the server should be launched to respond to requests on all hostnames, select the Listen on all interfaces to allow remote web connections check box. This option adds the -b 0.0.0.0 argument to the server launch command.

    • To enable management commands sent by the IDE to be successfully received by the server, select the Expose your management port as the server's hostname check box. This option is useful for remote servers but bypassed for local servers.

      Note

      To make use of this facility, a management user must exist for the remote server and you must provide the management user credentials to the IDE.

  8. From the location list, select Local.

  9. Click Next.

  10. To select applications to deploy with this server, from the Available list select the applications and click Add. Applications to be deployed are detailed in the Configured list.


  11. Click Finish to create the server. The server is listed in the Servers tab, with the information in brackets detailing the server status.

You can define remote servers for JBoss community application servers. To complete a server definition, you must create a server adapter, or server, that informs the IDE how to communicate and manage the remote server, as detailed in the procedure below.

Procedure 3.5. Define a Remote Server

  1. Click the Servers tab. If the Servers tab is not visible, click WindowShow ViewServers.

  2. Depending on the number of existing servers, follow the appropriate step:

    • If there are no existing servers, click Click this link to create a new server.

    • If there are one or more existing servers, right-click an existing server and click NewServer.

  3. From the Select the server type list, select a JBoss community application server.

  4. The Server's host name and Server name fields are completed by default. In the Server name field, type a name by which to identify the server definition.

  5. From the Server runtime environment list, select the specific server runtime environment for the application server type to use. Alternatively, to create a new runtime environment click Add and complete the fields as appropriate.


    Note

    If the Server runtime environment field is not shown, no server runtime environments exist for the selected application server type. A server runtime environment must be selected before you can successfully create a server adapter and complete the server definition. To create a new server runtime environment without canceling the wizard, click Next and complete the fields as appropriate.

  6. Click Next.

  7. The server behavior options displayed vary depending on the selected application server type. Complete the options as appropriate:

  8. From the location list, select Remote System Deployment.


  9. From the Host list, select the host. Alternatively, to specify a new host, click New Host and follow the instructions.

  10. In the Remote Server Home field, type the path of the application server or click Browse to navigate to the location.

  11. In the Remote Server Configuration File field, type the path of the configuration file or click Browse to navigate to the location.

  12. Click Next.

  13. To select applications to deploy with this server, from the Available list select the applications and click Add. Applications to be deployed are detailed in the Configured list.


  14. Click Finish to create the server. The server is listed in the Servers tab, with the information in brackets detailing the server status.

The Overview mode of the JBoss Server Editor enables you to vary the management and behavior settings of an individual server. Each section of the Overview mode is outlined below. All changes to server settings must be saved before the results will take effect. To save, press Ctrl+S.

General information

This section details essential information comprising the server definition: the name by which the server is identified in the IDE, the hostname of the server and the server runtime environment.


To change the server runtime environment, from the Runtime Environment list select a server runtime environment. Alternatively, to create and assign a new server runtime environment click Runtime Environment and follow the instructions.

To view or edit the server launch configuration, click Open launch configuration.

Management login credentials

This section holds credentials, specifically username and password, necessary for the IDE to successfully communicate management commands with the server. The password is obscured and stored in Eclipse Secure Storage for security. Incorrect management credentials can cause the IDE to not detect when a server is started.


Server behavior

This section enables you to customize server behavior that encompasses how the IDE communicates with the server.


To specify that the server life cycle will be managed from outside the IDE, select the Server is externally managed check box.

To specify that the server should be launched to respond to requests on all hostnames, select the Listen on all interfaces to allow remote web connections check box. This option is most useful for remote servers and adds the -b 0.0.0.0 argument to the server launch command.

To enable management commands sent by the IDE to be successfully received by the server, select the Expose your management port as the server's hostname check box. This option is useful for remote servers and unnecessary for local servers.

Warning

The Expose your management port as the server's hostname feature should be used carefully for servers on production as it leaves the server open for anyone to access.

To specify the location of the server, from the list select Local or Remote System Deployment. For remote systems, there are further details that must be specified: the host, the path of the remote application server, and the remote application server configuration file.


Publishing

This section details the publishing action the IDE should take in response to modifications to local resources of deployed applications. Publishing involves replacing changed project resources in the dedicated deployment location of a server and the IDE action options are Never publish automatically, Automatically publish when resources change, and Automatically publish after a build event. Additionally, you can specify a minimum time interval that must occur between consecutive automated publish actions by the IDE to control the frequency of publishing.


Timeouts

This section specifies the maximum length of time, in seconds, the IDE should wait for server actions to complete before aborting. The server actions are specifically starting and stopping.


Deployment scanner

This section enables you to customize the behavior of deployment scanners, which detect the applications deployed to a server. You can manage deployment scanners or allow the IDE to do it for you. The management options available are Add missing deployment scanners after server startup and Remove added deployment scanners before shutdown.


Application reload behavior

This section details the application reload action the IDE should take in response to changed published resources of deployed applications. Application reload involves undeploying and redeploying an application and this action is necessary when you make changes to project resources that will not be detected by the server. By default, the application reload behavior is set to invoke application redeployment when .jar files are changed.


To customize which changes invoke application redeployment, select the Customize application reload behavior on changes to project resources check box. In the Force module restart on following regex pattern field, type a regex pattern indicating the changed resources that you want to trigger redeployment.

To disable application reload, select the Customize application reload behavior on changes to project resources check box and ensure the Force module restart on following regex pattern field is empty.

Server state detectors

This section specifies which method the IDE should use to verify the started and stopped status of the server.


There are four methods from which to choose:

  • Web Port, which pings the web port on the host to see if the server responds

  • Timeout, which waits for a specified time duration and then declares the start or stop operation a success without any actual verification

  • Process Terminated (available for Shutdown Poller of local servers only), which checks if a server process is still alive and sets the server status to stopped when it is terminated

  • JMX, which polls JMX, the JBoss Management service

Server ports

This section details the ports and port offset that the IDE should use for communication with the server.


Port offset is typically offered by newer application servers and it enables multiple servers to run on the same system without port conflicts. JBoss Server Tools uses information in the server configuration file, typically XPath values, to automatically detect the correct ports and port offset for communicating with the server but you can perform further customization.

To view the configuration file information used by JBoss Server Tools for automatic port detection, click Configure corresponding to the appropriate tool. The information used is displayed in the Current Value field. To change this value, click Edit XPath. Click OK to close the window.


To manually specify the server ports or port offset, clear the Detect from Local Runtime check box corresponding to the appropriate tool and edit the value.

The Deployment mode of the JBoss Server Editor enables you to vary the deployment settings of an individual server. Each section of the Deployment mode is outlined below. All changes to server settings must be saved before the results will take effect. To save, press Ctrl+S.

Default settings for the server

This section specifies where deployments are kept and how they are packaged.


You can customize the deployment location and packaging type:

  • To select the workspace deployment folder for the server, click Use workspace metadata.

  • To select the deployment folder of the application server, click Use the JBoss deploy folder.

  • To select a folder of your choice, click Use a custom deploy folder. With this option, you should complete the Deploy directories and Temporary Deploy Directory fields. The temporary folder must be on the same file system as the final deploy location otherwise publishing often fails.

  • For all modules to be archived for deployment, select the Deploy projects as compressed archives check box. This avoids exploded deployments and reduces the amount of memory deployments occupy but may result in slower deployments.

Settings per module

This section shows deployment settings for all modules in the workspace regardless of whether they are deployed on the server under consideration.


To filter the module list in the case that you have lots of modules, from the Filter by list select the criteria for the filter. If you select By Module Name, in the text field enter the part or whole name of the module.

To change the Deployment Location and Temporary Deploy Directory on a per module basis, in the table click the value to be changed and enter an alternative value. Ensure the values for these variables are specified use absolute paths or paths relative to the default deploy directory.

Forge Tools invokes background actions in the IDE in response to commands issued on the command line in the Forge Console. For example, if you create a project file or directory on the Forge command line, the Project Explorer tab is automatically refreshed to show the newly created project resource. A list of Forge commands that result in additional background actions is given below.

cd

The command navigates to the project directory and selects it in the Project Explorer and Package Explorer tabs.

pick-up

The command navigates to the project resource and in the case that the resource is a file it is opened in an editor within the IDE. The project resource is selected and expanded in the Project Explorer and Package Explorer tabs. If the resource resides outside the workspace, it is selected and expanded in the Remote Systems Explorer tab, providing this is installed.

open

The command opens a file in an editor within the IDE. The project resource is selected and expanded in the Project Explorer and Package Explorer tabs. If the resource resides outside the workspace, it is selected and expanded in the Remote Systems Explorer tab, providing this is installed.

new-project

The command creates a new project. The project is automatically imported into the workspace and it is visible in the Project Explorer and Package Explorer tabs.

persistence setup

The command creates a persistence.xml file. This file is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in an editor within the IDE.

entity

The command creates a new entity and associated Java file. This file is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in the Java editor within the IDE.

field

The command creates a new field for an entity. The Java file associated with the entity is selected in the Project Explorer and Package Explorer tabs and it is automatically opened in an editor within the IDE and the field selected. The field is also selected in the Outline tab.

Forge Tools is distributed with a Forge runtime server but you may want to use different versions of Forge runtime servers. Forge Tools provides the ability to manage the Forge runtime servers that are available in the IDE, as detailed below.

To manage the available Forge runtime servers, click WindowPreferences, expand Forge and select Installed Forge Runtimes.


Click OK to close the Preferences window.

A LiveReload client must be inserted into HTML files in order for it to receive the LiveReload server notifications about changed resources. LiveReload Tools provides additional configuration options so that the LiveReload server can inject the necessary <script> element into the HTML resources. Furthermore, the LiveReload server can be configured to allow access from external devices, enabling LiveReload to function in browsers of remote devices.

The details below outline how to set the configuration options using the Server Editor. To open the Server Editor for a LiveReload server, in the Servers tab double-click the LiveReload server. Alternatively, right-click the LiveReload server and click Open or press F3.


Insert JavaScript code snippet to resources

In the Server Editor under LiveReload Server Configuration, select the Inject the livereload.js script in HTML pages check box.

Enable LiveReload in external device browsers

In the Server Editor under LiveReload Server Configuration, select the Allow Remote Connections check box. This option is disabled by default when a LiveReload server is created as it exposes your workspace files, which may not always be desirable.

All changes to the settings of a LiveReload server must be saved and the server restarted before the results will take effect. To save setting changes, press Ctrl+S or click FileSave or click the Save icon. To restart the server, in the Servers tab right-click the LiveReload server and click Restart.

You can use the actions of LiveReload Tools to open resources in browsers with LiveReload enabled, as detailed below. Note that if the requisite LiveReload server does not exist or is not correctly configured, you are prompted by LiveReload Tools, which can complete the necessary requirements for you.

View workspace resources on an external device

In the Project Explorer tab, right-click the HTML file and click Open WithWeb Browser via LiveReload Server.


This requires the server to be configured to Inject the livereload.js script in HTML pages and, if the server is not correctly configured, you are prompted to enable this option.


The IDE-specified external web browser opens, with LiveReload activated, and displays the workspace resource.

View deployed resources in a system browser

Ensure the server and application of the deployed resources are started. In the Servers tab, right-click the application and click Show InWeb Browser via LiveReload Server.


This requires the server to be configured to Inject the livereload.js script in HTML pages and, if the server is not correctly configured, you are prompted to enable this option.


The IDE-specified external web browser opens, with LiveReload activated, and displays the deployed resource.

Note

To change the IDE-specified external web browser, click WindowPreferences and expand GeneralWeb Browser. From the External web browsers list, select the browser to use for actions involving external web browsers. Click Apply and click OK to close the window.

View deployed resources on an external device

Ensure the server and application of the deployed resources are started. In the Servers tab, right-click the application and click Show InWeb Browser on External Device.


This requires the server to be configured to Inject the livereload.js script in HTML pages and Allow Remote Connections and, if the server is not correctly configured, you are prompted to enable these options.


A QR code and LiveReload server port URL corresponding to the deployed application are displayed and these can be input into external device browsers.


The LiveReload server can be used in conjunction with BrowserSim. In this case, the server sends notifications about changed resources and BrowserSim inserts the JavaScript code, which invokes the simulated device browser window to refresh. The procedure below outlines how to enable LiveReload in BrowserSim for workspace and deployed resources.

Project wizards are available to assist you in generating new mobile web applications. The project wizards are listed in the JBoss Central tab:

The jQuery Mobile palette contains wizards for the HTML5 and jQuery Mobile user interface widgets commonly used in mobile web applications. The widgets are grouped in the palette by functionality, with tooltips providing widget descriptions.

To insert a palette widget into a file open in the JBoss Tools HTML Editor, drag the widget icon to the appropriate place in the file. Alternatively, ensure the text cursor is located at the desired insertion point in the file and click the widget icon. For widgets with no attributes that can be customized, such as JS/CSS and Field Container, the code snippets are immediately inserted into the file. For widgets with attributes that can be customized, a widget wizard opens allowing you to input attribute information. Once complete, click Finish and the code snippet is inserted into the file.


The widget wizards have three common aspects:

Design fields

These fields are unique to each widget. They allow you to customize the attributes of the widget by providing names, actions, numbers of elements, and styling themes. All widget wizards assign automatically generated values to the ID attribute in the case that you do not specify a value. Content assist is available for the URL (href) field by placing the text cursor in the field and pressing Ctrl+Space.

Add references to JS/CSS

This check box provides the ability to automatically add any missing library references to the HTML5 file that are required by the widget.

Preview Panes

These panes show previews of the code snippet for the widget and of the rendered widget. The preview panes can be shown and hidden by clicking the Show Preview and Hide Preview button, respectively.

The overall system requirements of JBoss Tools are applicable for BrowserSim and can be viewed at https://community.jboss.org/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS on the JBoss Tools website. But, as reiterated below, there are additional system requirements and restrictions when using BrowserSim on Microsoft Windows operating systems.

BrowserSim depends on WebKit and, consequently, requires Apple Safari to be installed on Microsoft Windows operating systems. Only a 32-bit version of Apple Safari is available for Microsoft Windows operating systems. To work around this restriction for 64-bit Microsoft Windows operating systems, you must set BrowserSim to use a 32-bit JVM when running in 64-bit versions of Eclipse. Note that 32-bit JVM choice is limited to Oracle 32-bit JRE 1.6, JDK 1.6, or JDK 1.7 on Microsoft Windows operating systems because Oracle 32-bit JRE 1.7 is incompatible with Apple Safari.

To set BrowserSim to use a 32-bit JVM, click WindowPreferences. Expand JBoss Tools and select BrowserSim/CordovaSim. Under Select JRE to run BrowserSim, click Select and from the list select a 32-bit JRE or Java developer kit. Click Apply and click OK to close the window.

LiveReload for BrowserSim refreshes web pages open in simulated device browser windows as the source is edited. A LiveReload server sends notifications as resources are changed in the IDE and BrowserSim inserts the JavaScript code, which invokes the simulated device browser window to refresh. The procedures below outline how to create a LiveReload server and how to enable LiveReload in BrowserSim for workspace and deployed resources.

You may wish to preview a web application on a simulated mobile device that is not predefined in BrowserSim. You can add more devices to BrowserSim and modify the existing devices, as detailed below.

To modify existing devices in BrowserSim, right-click the simulated device and click Preferences. In the Devices table, select a device and click Edit. Once you have finished editing the fields, click OK. Click OK to close the Devices window.

OpenShift is Red Hat's Platform as a Service (PaaS) for applications. It consists of an application platform in the cloud, enabling you to build, test and run applications in a cloud architecture. OpenShift provides disk space, CPU resources, network connectivity, and a runtime environment.

OpenShift has a number of key features to assist you in developing and deploying applications:

OpenShift can be accessed via the web interface at https://www.openshift.com/ on the OpenShift website or via the OpenShift command line interface.

Once you have an OpenShift user account, you can connect to OpenShift and then create a domain and applications. The procedure below guides you through setting up a connection to OpenShift using your user account information.

Procedure 8.1. Connect to OpenShift

  1. Click the OpenShift Explorer tab and click the Connect to OpenShift icon .

  2. From the Connection list, select New Connection.


  3. If you want to use a server other than the default at https://openshift.redhat.com, clear the Use default server check box and in the Server field type the address of the server.

    Note

    There are a number of OpenShift servers from which you can choose:

  4. In the Username and Password fields, type your OpenShift user account authentication information.

  5. If you want the Password field to automatically populate for this connection in future, select the Save password check box.

    Note

    The password is retained in secure storage provided by the IDE. To manage the settings for secure storage, click WindowPreferences, expand GeneralSecurity and select Secure Storage.

  6. Click Finish for OpenShift Tools to connect to OpenShift.

    1. If your credentials are incorrect, the Sign in to OpenShift wizard remains open for you to change your authentication information.

    2. If you selected for your password to be saved, you are prompted to enter your secure storage password or, if this is your first use of secure storage, you are prompted to set a secure storage password.

    Once your credentials are verified as correct, the wizard closes and a live OpenShift connection is listed in the OpenShift Explorer tab.


When you close the IDE, any live OpenShift connections will be disconnected but they can be easily reestablished. OpenShift Tools lists previous connections in the OpenShift Explorer tab until cleared by you. In the OpenShift Explorer tab, double-click or expand the appropriate connection to open an automatically completed connection wizard. Type your password or the master password, if using the saved password facility, and click Finish.

SSH keys are essential when working with OpenShift. They enable you to develop and access deployed applications. SSH keys are also used to control access of other contributors to your OpenShift applications. SSH keys must be uploaded to the OpenShift server and, as detailed in the procedure below, OpenShift Tools can assist with both the generation and uploading of SSH keys to OpenShift.

Procedure 8.2. Generate and Upload SSH Keys to OpenShift

  1. In the OpenShift Explorer tab, right-click the connection and click Manage SSH Keys.

  2. To create a new SSH private-public key pair, click New.

  3. In the Name field, type a name for the key pair that will be used by OpenShift to distinguish the key pair from others associated with your account.


  4. From the Key Type list, select SSH_RSA.

  5. Ensure the SSH2 Home field contains the location where you want to create the files associated with the key pair. To change the location, clear the Default check box and type the location in the SSH2 Home field or click Browse to navigate to the desired location.

  6. In the Private Key File Name field, type a name for the private key file.

  7. In the Private Key Passphrase field, type a passphrase for use in accessing the private key. This field is not mandatory and can be left empty if you want.

  8. In the Public Key File Name field, type a name for the public key file. Typically the file name of the public key is that of the private key with .pub appended.

  9. Click Finish. The SSH key pair will be generated and the public key automatically uploaded to OpenShift.

  10. Click OK to close the Manage SSH Keys window.

OpenShift Tools provides actions for managing the SSH keys of your OpenShift account.

OpenShift Tools provides the OpenShift Application wizard to assist you in creating new applications and deploying them on OpenShift. OpenShift uses Git, a free and open source version control system. The wizard will also assist you in setting up linked remote and local Git repositories containing the original and clone of your project, respectively. To create an application, you must have a domain and, in the case that you do not have a domain already set up, the wizard will prompt and guide you in creating one first. The procedure below guides you through using the OpenShift Application wizard.

Procedure 8.4. Create and Deploy an Application on OpenShift

  1. In the OpenShift Explorer tab, right-click the connection and click New OpenShift Application. Alternatively, in JBoss Central click OpenShift Application, after which you are prompted to select an OpenShift connection and provide your user authentication information.


  2. In the Name field, type a name for the new OpenShift application.


  3. From the Type list, select a runtime server. This will ensure the necessary core programming or technology cartridge is added to your application.

  4. From the Gear profile list, select the gear size. This is RAM and disk space required by your applications and its cartridges. If you are using OpenShift Online with Free Plan, you have access to small gears only.

  5. If you want OpenShift to automatically increase the instances of your application and enable clustering as usage increases, select the Enable scaling check box.

  6. From the Embedded Cartridges list, select the functionality you want to enable in your application. This will add associated capabilities and support to your application.

  7. To specify that the new application is to be based on source code from an existing Git repository, click Advanced and clear the Use default source code check box. In the Source code field, type the URL of the source code location. OpenShift clones the source code to the OpenShift git repository for your application, instead of using the default template.

  8. Click Next.

  9. Ensure the Create a new project and Create and set up a server for easy publishing check boxes are selected. The latter will automatically create an OpenShift server adapter for the application, enabling you to easily upload changes to the OpenShift server.

  10. To disable Maven builds, check the Disable automatic Maven builds when pushing to OpenShift check box. This informs OpenShift not to launch the Maven build process when the Maven project is pushed to OpenShift but to put the deployment straight into the deployments folder. It is useful when you want to push applications already built for deployment rather than source code.

  11. Click Next.

  12. The Location field shows the location that will be used for the local Git repository. The location must already exist to be able to proceed with the wizard. To change the location, clear the Use default location check box and type the location in the Location field or click Browse to navigate to the desired location.


  13. Click Finish. If you are prompted that the authenticity of the host cannot be established and asked whether you want to continue connecting, check that the host name matches that of your application and domain and click Yes.

  14. At the prompt asking if you want to publish committed changes to OpenShift, click Yes. The progress of the application creation process is visible in the Console tab.

Once created, the application is listed under the connection in the OpenShift Explorer tab. The application type proceeds the application name. The project is also listed in the Project Explorer and Git Repositories tabs, where the details proceeding the application name indicate the current Git branch and status compared to the remote repository. Additionally, the server adapter for the application is visible in the Servers tab.

OpenShift Tools can assist you to deploy existing workspace applications to OpenShift, as detailed in the procedure below. The procedure uses the OpenShift Application wizard, with the latter merging the existing project contents with the key metadata files from a new OpenShift application so that the application can be deployed on OpenShift. The wizard also enables git for the existing project, so that you can push project changes to OpenShift via git or allow the OpenShift Server Adapter do it for you.

Procedure 8.5. Deploy an Existing Application on OpenShift

  1. In the OpenShift Explorer tab, right-click the connection and click New OpenShift Application. Alternatively, in JBoss Central click OpenShift Application, after which you are prompted to select an OpenShift connection and provide your user authentication information.

  2. In the Name field, type a name for the new OpenShift application. For simplicity, you may choose this to be the same as the name of the workspace project.

    Note

    There are restrictions on the name you can use for an application. Names must consist only of letters and digits.

  3. From the Type list, select a runtime server. This will ensure the necessary core programming or technology cartridge is added to your application.

  4. From the Gear profile list, select the gear size. This is RAM and disk space required by your applications and its cartridges. If you are using OpenShift Online with Free Plan, you have access to small gears only.

  5. If you want OpenShift to automatically increase the instances of your application and enable clustering as usage increases, select the Enable scaling check box.

  6. From the Embedded Cartridges list, select the functionality you want to enable in your application. This will add associated capabilities and support to your application.

  7. To specify that the new application is to be based on source code from an existing Git repository, click Advanced and clear the Use default source code check box. In the Source code field, type the URL of the source code location. OpenShift clones the source code to the OpenShift git repository for your application, instead of using the default template.

  8. Click Next.

  9. Clear the Create a new project check box and in the Use existing project field type the name of the project or click Browse to locate the project.

  10. Ensure the Create and set up a server for easy publishing check box is selected. This option automatically creates an OpenShift server adapter for the application, enabling you to easily upload changes to the OpenShift server.

  11. To disable Maven builds, check the Disable automatic Maven builds when pushing to OpenShift check box. This informs OpenShift not to launch the Maven build process when the Maven project is pushed to OpenShift but to put the deployment straight into the deployments folder. It is useful when you want to push applications already built for deployment rather than source code.

  12. Click Next.

  13. The Location field shows the location that will be used for the local Git repository. The location must already exist to be able to proceed with the wizard. To change the location, clear the Use default location check box and type the location in the Location field or click Browse to navigate to the desired location.

  14. Click Finish. If you are prompted that the authenticity of the host cannot be established and asked whether you want to continue connecting, check that the host name matches that of your application and domain and click Yes.

  15. At the prompt asking if you want to publish committed changes to OpenShift, click Yes. The progress of the application creation process is visible in the Console tab.

All applications deployed on OpenShift are listed under live connections in the OpenShift Explorer tab. But only the project files of OpenShift applications created through the IDE will be immediately available in the Project Explorer and Git Repositories tabs. If you want to work on the project files associated with an application, you must first import the application. OpenShift Tools can assist you to import your deployed OpenShift applications into the IDE, as detailed in the procedure below.

Procedure 8.6. Import an OpenShift Application

  1. Click FileImport, expand OpenShift, select Existing OpenShift Application and click Next. Alternatively, in the OpenShift Explorer tab, right-click the application and click Import Application.

  2. Ensure the Use existing application check box is selected and type the name of the application in the text field. This field has an auto-completion feature to assist you in typing the application name or click Browse to see a list of all of your applications associated with the connection.

    Important

    Project names in the IDE workspace must be unique. If the name of the application you want to import is identical to an existing project in the workspace, the OpenShift Tools will not complete the import. To work around this constraint, you can import the OpenShift application to another workspace or change the name of one of the conflicting projects and applications.


  3. Click Next.

  4. Ensure the Create a new project and Create and set up a server for easy publishing check boxes are selected. The latter will automatically create an OpenShift server adapter for the application, enabling you to easily upload changes to the OpenShift server.

  5. To disable Maven builds, check the Disable automatic Maven builds when pushing to OpenShift check box. This informs OpenShift not to launch the Maven build process when the Maven project is pushed to OpenShift but to put the deployment straight into the deployments folder. It is useful when you want to push applications already built for deployment rather than source code.

  6. Click Next.

  7. The Location field shows the location that will be used for the local Git repository. The location must already exist to be able to proceed with the wizard. To change the location, clear the Use default location check box and type the location in the Location field or click Browse to navigate to the desired location.

  8. Click Finish. If you are prompted that the authenticity of the host cannot be established and asked whether you want to continue connecting, check that the host name matches that of your application and domain and click Yes.

  9. OpenShift Tools modified the .gitignore file on importing the application. At the prompt asking if you want to publish committed changes to OpenShift, click Yes. The progress of the import process is visible in the Console tab.

Once imported, the project is listed in the Project Explorer and Git Repositories tabs, where the details proceeding the application name indicate the current Git branch and status compared to the remote repository. Additionally, the server adapter for the application is visible in the Servers tab.

In order to easily publish changes to a deployed OpenShift application, each application needs a server adapter. The OpenShift Application wizard can automatically generate server adapters for new or imported OpenShift applications if you select the Create and set up a server for easy publishing check box. But OpenShift also provides an action to assist you in generating server adapters for OpenShift application that already exist in the IDE, as detailed in the procedure below. You can use this action if you need to regenerate a deleted server adapter for an OpenShift application or if you create or import an OpenShift application and do not select the Create and set up a server for easy publishing check box.

Procedure 8.7. Generate a server adapter for an application

  1. In the OpenShift Explorer tab, expand the connection.

  2. Right-click the application name and click Create a Server Adapter.

  3. From the list of server types, expand OpenShift and select OpenShift Server.


  4. The Server's host name and Server name field are automatically completed but you can change the contents of both as you need. The Server's host name field contains the host name of the server and the Server name field contains the name by which the server adapter is know in the Servers tab.

  5. Once the fields are complete, click Next.

  6. Ensure the Connection, Application Name and Deploy Project fields contain the correct information relating to the application for which you want to generate the server adapter.


  7. In the Remote field, type the alias for the remote Git repository. For OpenShift applications created and imported by OpenShift Tools this is origin.

  8. In the Output Directory field, type the location where archived projects for deployment should be stored or click Browse to navigate to the desired location.

  9. Click Next.

  10. From the Available list, select the project for which the server adapter is being generated and click Add. The application is now listed under Configured.

  11. Click Finish for OpenShift Tools to generate the server adapter. Once generated, the server adapter is listed in the Servers tab.


OpenShift Tools provides actions for viewing deployed OpenShift applications and information about them.

View a deployed application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Web Browser. A browser tab will open displaying your deployed application. Alternatively, in the Servers tab, right-click the server adapter for the application and click Show InWeb Browser.

View information about an application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Details. The displayed information includes the public URL of the application, application type, and remote Git repository location. Click OK to close the Details window.


View output from the OpenShift server

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Tail files. Alternatively, right-click the server adapter of the application in the Servers tab and click OpenShiftTail files. The Tail Log Files window opens, with the default retrieval syntax in the Tail options field. To change the retrieval command, in the Tail options field type the appropriate syntax. Click Finish for OpenShift to retrieve the output, which is displayed in the Console tab.


View values of variables associated with an application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Environment Variables. Variable names and values are listed in the Console tab. Alternatively, in the Servers tab, right-click the server adapter of the application and click OpenShiftEnvironment Variables.


View information about the server of an application

In the Servers tab, double-click the server adapter for the application. A Server Editor tab opens, enabling viewing and editing of server details. To save any changes, press Ctrl+S or click FileSave or click the Save icon.

Refresh information about an application

In the OpenShift Explorer tab, right-click the connection and click Refresh. Information is retrieved from OpenShift and the OpenShift Explorer tab updated as appropriate. This action is useful if you are simultaneously making changes in the IDE and the OpenShift web interface or command line interface to your domain and applications. Additionally, it may be used to recover from errors.

OpenShift Tools provides actions for developing and managing deployed OpenShift applications.

Upload modifications to a deployed application

In the Severs tab, right-click the server adapter for the application and click Publish. At the prompt asking if you want to publish to OpenShift by committing changes to Git, click OK. The commit message Commit from JBoss Tools is automatically generated and changes are pushed to the remote Git repository. Additionally, the application is automatically updated on the OpenShift server and the Console tab displays OpenShift server output.

Add or remove markers associated with an application

In the Project Explorer tab, right-click the application and click OpenShiftConfigure Markers. Select or clear the check boxes of markers as desired. Information about markers is given in the Marker Description section of the Configure OpenShift Markers Window. Click OK for your marker choice to be applied to the application.


Add or remove cartridges associated with an application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Edit Embedded Cartridges. Select or clear the check boxes of cartridges as desired. Click Finish for your cartridge choice to be applied to the application. You are prompted if the cartridges you have chosen to add or remove require further action, such as the addition of prerequisite cartridges or removal of conflicting cartridges. You can choose to ignore or apply the suggestions of the prompt.


View properties of cartridges associated with an application

In the OpenShift Explorer tab, expand the connection and the application. Right-click the cartridge and click properties. The Properties tab opens and lists information about the cartridge.

Restart an application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Restart. Alternatively, right-click the server adapter of the application in the Servers tab and click OpenShiftRestart Application.

Forward remote ports

You can forward the remote ports of the OpenShift server to your workstation to enable access to various services, such as MySQL. Port forwarding is available for all OpenShift applications, including scalable ones.

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Port forwarding. Alternatively, right-click the server adapter of the application in the Servers tab and click OpenShiftPort forwarding.


After checking the authenticity of SSH keys, the Application port forward window opens. Before commencing port forwarding, there are a number of options you can set:

  • By default, the local address is 127.0.0.1. If this is unavailable, a random available address will be allocated. To set the local address to be the same as the remote address, clear the Use '127.0.0.1' as the local address for all Services check box.

  • By default, the local port numbers are the same as the remote port numbers. To set independent local port numbers, select the Find free ports for all Services check box.

To commence port forwarding, click Start All. Click OK to close the Application port forward window.

Delete a server adapter for an OpenShift application

In the Servers tab, right-click the server adapter for the application and click Delete. At the prompt asking if you are sure you want to delete the server adapter, click OK. The progress of the deleting process is shown in the activity bar in the lower right of the IDE window. To open the Progress tab and view more detailed progress information or cancel the deleting process, double-click on the activity bar.

Delete an application

In the OpenShift Explorer tab, expand the connection. Right-click the application name and click Delete Application(s). At the prompt asking if you are sure you want to destroy the application, select OK.

Revision History
Revision 1.0.0-1Wed Oct 09 2013Michelle Murray
Built from Content Specification: 22477, Revision: 544056 by mmurray