Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

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>

Solution:
Add <init-param> tag
(Assuming the project package is com.myeclipseide.ws)
.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  <servlet>
  <display-name>JAX-RS REST Servlet</display-name>
  <servlet-name>JAX-RS REST Servlet</servlet-name>
  <servlet-class>
  com.sun.jersey.spi.container.servlet.ServletContainer
  </servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>com.myeclipseide.ws</param-value> 
</init-param> 
  <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
  <servlet-name>JAX-RS REST Servlet</servlet-name>
  <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
.

Addition:
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)

Reference:
https://www.genuitec.com/docs/web-services/developing-rest-web-service

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).

Solution:
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.

Read: https://setup-steps.blogspot.com/2019/03/how-to-download-ibm-app-connect.html

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):
https://www-01.ibm.com/marketing/iwm/iwm/web/pickUrxNew.do?source=swg-wmbfd&transactionid=452368858
(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.

Procedure

  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.

Results

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.

.

https://www.ibm.com/support/knowledgecenter/en/prodconn_1.0.0/com.ibm.scenarios.wmqwasmig2v85.doc/topics/mig_unins_wasV7.htm?cp=SSFKSJ_8.0.0

Friday, March 8, 2019

How To: Create ISO From Folders


.

  1. Download ISO Creator application.
  2. Run.
    1. Select the source folder in ISO Details section.
    2. Select the destination folder in Folder Path section.
    3. Click the Start button.

Wednesday, March 6, 2019

Solution To: "Content is not allowed in trailing section" in XML File




Check if your XML is properly build
<? ?>
<root>
.....

1. Check encoding, if you are using text editor encoding must be same us system encoding. If you use XML editor encoding should set proper encoding of binary data.
2. Check if there is no content between XML declaration (<?xml ?>) and root ie no plain texts. Bad encoding can make parser to treat XML declaration as the text.
3. Try open file in XML editor and validate it.
4. Is the XML empty?

How To: Install IBM Web Sphere Application Server (WAS) For Developers



  1. Go to Download Page: https://developer.ibm.com/wasdev/downloads/#asset/WAS_traditional_for_Developers
  2. Download IBM Installation Manager and Packaging Utility.
  3. After Installation Manager is installed, configure the IBM-hosted repository.
After Installation Manager is installed, configure the IBM-hosted repository.
  1. In Installation Manager, go to File > Preferences.
  2. In the Repositories panel, click the Add Repository button. Enter the repository URL for the version of WebSphere Application Server that you want to install:
    • Version 9.0: https://www.ibm.com/software/repositorymanager/V9WASILAN
    • Version 8.5: https://www.ibm.com/software/repositorymanager/V85WASDeveloperILAN
    If prompted, authenticate with the IBM-hosted repository using your My IBM id credentials.
    When Installation Manager connects to the repository URL, the connection status icon turns green. 
    Note: these URLs do not work if entered into a browser, they are only for use with Installation Manager.
  3. If you want to install IBM HTTP Server, Web Server Plug-ins for WebSphere Application Server, the WebSphere Customization Toolbox which includes the Web Server Plug-ins Configuration Tool, or the WebSphere Application Client, then also add the following composite repository:
    • WebSphere Application Server Supplements V9.0: https://www.ibm.com/software/repositorymanager/V9WASSupplements
    • WebSphere Application Server Supplements V8.5: https://www.ibm.com/software/repositorymanager/V85WASSupplementsILAN
  4. Click OK to save the settings and close the Preferences window.


After you configure the repository, use Installation Manager to install WebSphere Application Server and other supplemental software packages.


During "Configure New Server" process, If Eclipse (or MyEclipse) reports "No config file specified", run IBM Profile Management Tool (Click WINDOWS START Button and type "Profile Management")  

REFERENCE:
https://developer.ibm.com/wasdev/downloads/#asset/WAS_traditional_for_Developers