Monday, August 12, 2019

How To: Install PHP Composer on Mac OSX

  1. Open a terminal and navigate to your user directory, ie cd /User/<USER_NAME>/
  2. Run this command shown below to download Composer. This will create a Phar (PHP Archive) file called composer.phar:
    curl -sS | php
  3. Now we move composer.phar file to a directory
    sudo mv composer.phar /usr/local/bin/
  4. We want to run Composer with having to be root al the time, so we need to change the permissions:
    sudo chmod 755 /usr/local/bin/composer.phar

  5. Next, we need to let Bash know where to execute Composer: 
    nano ~/.bash_profile
    Add this line below to bash_profile and save
    alias composer="php /usr/local/bin/composer.phar"
    Note: If you want to save the changes you've made in Nano Text Editor, press Ctrl + O . To exit Nano, type Ctrl + X . If you ask nano to exit from a modified file, it will ask you if you want to save it.

    and then run this command:
    source ~/.bash_profile

  6. Finally, run: 
    composer --version


Monday, March 11, 2019

Solution To: MyEclipse error while deploying JAX RS REST Web Service To Server

Problem: MyEclipse error while deploying JAX RS REST Web Service To Server

Error Message:
exception com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>

Add <init-param> tag
(Assuming the project package is
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
  <display-name>JAX-RS REST Servlet</display-name>
  <servlet-name>JAX-RS REST Servlet</servlet-name>
  <servlet-name>JAX-RS REST Servlet</servlet-name>

To test the REST URL, deploy the project to server, click the "Launch REST Web Services Explorer" button (the button is available in JavaEE Perspective window).
Based on the web.xml file above, the test url would be http://localhost:8080/restdemo/services/application.wadl (Assuming the project name is restdemo)


Solution To: MyEclipse "Updating indexes…" process never stops

Problem: When MyEclipse starts, it runs "Updating indexes...". This process takes a long time or never stops  (refer the status bar at bottom right of the application window).

1. Goto Menu Window/Preferences.
2. Find "Maven".
3. Untick "Download repository index updates on startup".
4. Restart MyEclipse.

Sunday, March 10, 2019

How To: Download WebSphere Message Broker

WebSphere Message Broker or IBM Integration Bus is now known as IBM APP Connect Enterprise.


How To: Download IBM APP Connect Enterprise


IBM APP Connect Enterprise

IBM APP Connect Enterprise (abbreviated as IBM ACE, formerly known as IBM Integration Bus or WebSphere Message Broker) is IBM's integration broker from the WebSphere product family that allows business information to flow between disparate applications across multiple hardware and software platforms. Rules can be applied to the data flowing through the message broker to route and transform the information. The product is an Enterprise Service Bus supplying a communication channel between applications and services in a service-oriented architecture.

Download IBM APP Connect Enterprise (IBM Integration Bus,WebSphere Message Broker):
(Note that App Connect Enterprise is the renamed version 11.0 of IIB).

 Enterprise Service Bus (ESB)

An enterprise service bus (ESB) implements a communication system between mutually interacting software applications in a service-oriented architecture (SOA). It implements a software architecture as depicted in the picture. As it implements a distributed computing architecture, it implements a special variant of the more general client-server model, wherein, in general, any application using ESB can behave as server or client in turns. ESB promotes agility and flexibility with regard to high-level protocol communication between applications. The primary goal of the high-level protocol communication is enterprise application integration (EAI) of heterogeneous and complex service or application landscapes (a view from the network level).

Service-Oriented Architecture.

Service-oriented architecture (SOA) is a style of software design where services are provided to the other components by application components, through a communication protocol over a network. The basic principles of service-oriented architecture are independent of vendors, products and technologies.[1] A service is a discrete unit of functionality that can be accessed remotely and acted upon and updated independently, such as retrieving a credit card statement online.

A service has four properties according to one of many definitions of SOA:[2]

It logically represents a business activity with a specified outcome.
It is self-contained.
It is a black box for its consumers.
It may consist of other underlying services.

Saturday, March 9, 2019

How To: Increase VirtualBox Hard Disk Size

Assuming that you are running a Virtual Windows (WinXP, Win7, ...):

  1. Export the Virtual Windows as OVA.
  2. Import the OVA and select the option "import hard drives as VDI".
  3. Exit VirtualBox Manager.
  4. Using Console Window, run command: (Assuming the disk name is disk1.vdi and you want to resize to 40GB)
    1. BoxManage modifyhd "disk1.vdi" --resize 40960
  5. Start the Virtual Windows.
  6. Using Console Window, run command:
    1. diskmgmt (Windows Disk Management Application)
  7.  Right-click the existing Allocated Space and select Extend Volume. Select the Unallocated Space as the target.

How To: Uninstall IBM Web Sphere Application Server


About this task

This task describes the steps to uninstall WebSphere Application Server Version 8.5 on the Windows XP Professional (SP2 or later) operating system.


  1. Stop the WebSphere Application Server Version 8.5 application server. Click Start > All Programs > IBM WebSphere >WebSphere Application Server V8.5 > Profiles > AppSrv01 > Stop the server, then wait for the command window to disappear.
  2. Remove WebSphere Application Server Version 8.5.
    1. Start IBM Installation Manager. Click Start > All Programs > IBM Installation Manager > IBM Installation Manager. A few seconds later, the IBM Installation Manager window is displayed.
    2. Click Uninstall
    3. In the Uninstall Packages windows, select IBM WebSphere Application Server V8.5, and then click Next.
    4. In the Prerequisite window, click Next. If the following message is displayed, stop the servers in all profiles of WebSphere Application Server V8.5, and click Recheck Status.
      Running processes have been detected that may interfere with the current operation. Stop all WebSphere and related processes before continue.
    5. Check the uninstallation summary, and then click Uninstall to start the uninstallation process. When the uninstallation process is completed successfully, a success message is displayed.
    6. Click the View Log File link to view the details of the uninstallation, and then click Finish.
  3. Remove IBM Installation Manager. Only remove this if you are not using any product of IBM that is Version 8 or later.
    1. Click Start > Control Panel > Add or Remove Programs. Wait for the list of currently installed programs to load.
    2. Select IBM Installation Manager.
    3. Click RemoveThe Uninstall Packages window is displayed.
    4. Select IBM Installation Manager, and then click Next.
    5. Check the uninstallation summary, and then click Uninstall to start the uninstallation process. When the uninstallation process is completed successfully, a success message is displayed.
    6. Click the View Log File link to view the details of the uninstallation, and then click Finish.
  4. Remove any folders that are left behind.
    1. Delete the WebSphere Application Server Version 8.5 folder, by default, it is C:\Program Files\IBM\WebSphere\AppServer1.
    2. Delete the IBM WebSphere Application Server V8.5 folder from the start menu.


WebSphere Application Server Version 8.5 is uninstalled.
If you encountered a problem when uninstalling, restart your computer then try the failing steps of the uninstallation process again.