Disabling hot deployment of assets
Starting the server
To start the server, you run the script
wso2server.bat (on Windows) or
wso2server.sh (on Linux/Solaris) from the
bin folder. Alternatively, you can install and run the server as a
To start and stop the server in the background mode of Linux, run
wso2server.sh start and
wso2server.sh stop commands.
- Open a command prompt:
- On Windows, choose Start -> Run, type
cmdat the prompt, and press Enter.
- On Linux/Solaris, establish a SSH connection to the server or log in to the text Linux console.
<G-REG_HOME>is the directory where you installed the product distribution:
- On Windows:
If you want to provide access to the production environment without allowing any user group (including admin) to log into the management console, execute one of the following commands.
- On Windows:
<G-REG_HOME>\bin\wso2server.bat --run -DworkerNode
- On Linux/Solaris:
sh <G-REG_HOME>/bin/wso2server.sh -DworkerNode
For additional options you can use with these startup commands, type
-helpafter the command, such as:
sh <PRODUCT_HOME>/bin/wso2server.sh -help
- On Windows:
The operation log appears. When the product server is running, the log displays the message "WSO2 Carbon started in 'n' seconds."
Populating sample artifacts
WSO2 G-Reg distribution pack is shipped with a collection of sample artifacts of all the supported artifact types, which you can populate and try out. Follow the steps below to populate the sample artifacts.
Run the WSO2 G-Reg server. For instructions, see Starting the server.
- Navigate to the
<G-REG_HOME>/samples/getting_started/directory using the command prompt.
- Execute the following command:
View the populated sample artifacts in the G-Reg Store. For instructions on accessing the G-Reg Store, see Running the G-Reg Store.
Execute the following command using the command prompt to remove all the populated sample artifacts:
Accessing artifacts in the G-Reg Store
Once the server has started, you can run the G-Reg Store by opening a Web browser and typing in the its URL. The URL is displayed as the last line in the start script's console and log. For example:
The URL should be in the following format:
Alternatively, you can use
https://<G-REG_HOST>:9443 or the following Go To Store button in the G-Reg Publisher to access the G-Reg Store.
You can use this URL to access the G-Reg Store on this computer from any other computer connected to the Internet or LAN. When accessing the G-Reg Store from the same server where it's installed, you can type "localhost" instead of the IP address:
At the sign-in screen, sign in to the G-Reg Store using admin as both the username and password. You view the G-Reg Store as shown below which you can use to access the published governance artifacts.
Click on any sample artifact to access and use it.
Accessing the G-Reg Publisher to manage artifacts
You can use the G-Reg Publisher to manage the published artifacts. Once the server has started, you can run the G-Reg Publisher by opening a Web browser and typing in the its URL. The URL is displayed as the last line in the start script's console and log. For example:
The URL should be in the following format:
You can use this URL to access the G-Reg Publisher on this computer from any other computer connected to the Internet or LAN. When accessing the G-Reg Publisher from the same server where it's installed, you can type "localhost" instead of the IP address:
At the sign-in screen, sign in to the G-Reg Publisher using admin as both the username and password. You view the G-Reg Publisher as shown below.
The artifact types that are enabled in the G-Reg Publisher by default are shown below.
Click on any artifact type to access artifacts of that type and manage them.
Managing the product using the Management Console
The Management console is a Web-based user interface powered by JSP and AJAX. It allows you to interact with a running product instance, without having to directly interfere with any underlying configuration files.
The Management Console makes use of the default HTTPS servlet transport, which is configured in the
<PRODUCT_HOME>/repository/conf/tomcat/catalina-server.xml file. It is essential for you to properly configure this transport in this file for to access the Management Console .
Accessing the Management Console
Run the product by executing the shell script (for Linux/Solaris) or the batch file (for Windows) as explained in the Starting the server section. With any WSO2 product properly installed, you can access its Management Console (Web interface) by opening a Web browser and typing in the Management Console's URL as it appears in the start script's log. For example,
Accessing from Internet/LAN
To connect to the product's Web Interface from any computer connected to Internet/LAN, follow the instructions below.
Open a Web browser and access the real IP of the server. Typically, it is the IP address of the computer. The URL should be in the following format:
- The product's homepage opens.
Accessing from Local Machine
You can also connect to the product's Web Interface from the computer where it is installed by typing "localhost" instead of the IP.
Once you have established a connection, the Management Console opens in the anonymous mode.
When the product's homepage opens, it is possible that the Internet browser will display an "insecure connection" message, requiring your confirmation of being aware of the risks.
The Management Console is based on HTTPS protocol, which is a combination of HTTP and SSL protocols. This protocol is generally used to encrypt the traffic from the client to server for security reasons. The certificate it works with is used for encryption only, and does not prove the server identity. So when the users try to access the Management Console, a warning of untrusted connection is usually displayed. In order to continue working with this certificate, some steps should be taken to "accept" the certificate before access to the site is permitted. In case Mozilla Firefox browser is used, this usually occurs only on the first access to the server. Then the certificate is stored in the browser database marked as trusted. In case of some other browsers are used, insecure connection warning may be displayed every time server is accessed.
This scenario is suitable for testing purposes, or for running the program on the company's internal networks. But in case there is a need to provide an interface to the outside world, a company should obtain a certificate signed by a well-known CA. The role of a CA is to verify that the server accessed actually has the name it is accessed by, and that this server actually belongs to the given organization.
The homepage of the Management Console typically has the following sections:
Anonymous users can access some menu items including the "Home" menu displayed on the left-hand-side panel.
Links to Resources
The panel at the center provides links to several resources as follows:
- The product's online documentation.
- The product's forum
- Link to the product's issue tracking system.
- The mailing lists at .
To access more controls, you need to log-in to the Management Console using the log-in panel at the right-hand-side. Type in admin as the default Username and admin as the default Password. Click on "Sign-in".
You will be logged in to the product's Management Console.
The controls in the Management Console are usually self-explanatory. However, the context-sensitive help tips, accessible by clicking the 'Help' link at the top right corner of any page, are a fast and easy way to get more information, if required. The product documentation provides further information about the technology and configurations.
The console's menu items appear in the left hand side. Usually they are divided as Main, Monitor, Configure and Extensions although additional menus may appear depending on the availability of features. Each of these menus carries a list of sub menus. A product's menus and sub menus may vary depending on the product version and any additional feature you have installed to provision the server.
Stopping the server
To stop the server, press Ctrl+C in the command window, or click the Shutdown/Restart link in the navigation pane in the Management Console.
Use the following URL to access the Management Console of the product: https://<G-REG_HOST>:9443/carbon