Home Navigation

Thursday, 16 February 2017

Maven's Non-Resolvable Parent POM Problem

Problem: [FATAL] Non-resolvable parent POM: Failure to find com.mycompany.samples:biometrics-samples:pom:4.2.0.0

Solution: Check if the maven installation is correct. Go to eclipse Window->Preference->Maven ->installations

Locate your external Maven installation directory

Then go to Maven->User settings and add the global settings.xml to {MAVEN_INSTALLATION}\conf\settings.xml and update and rebuild index.

Last step, right click on project -> mavne -> update projects and make sure to select force update option as well and click the button OK

It should resolve the issue.

Tuesday, 24 January 2017

DB2, SQLState: 56038, Error Code -4743, -4700

Functions that this release of DB2 introduces cannot be used before new function mode has been enabled. An attempt was made to execute one of these functions. In addition, support for extending the length of a VARCHAR (supported in V7) is restricted in V8 until new function mode has been enabled.


This error you might get when your project was compiled, configured and deployed using webshpere version 7 and you are trying to compile and deploy in websphere 8.5

To solve the issue, create and map new jdbc connection from ear deployment descriptor.

Ear project->Deployment descriptor->deployment tab-> remove all the existing jdbc configuration and configure the jdbc and jndi mapping again with DB2.

Thursday, 12 January 2017

A Resource reference binding could not be found for the jdbc/mydb resource CWNEN0044E

You need to add the binding in ibm-web-bnd.xml:

<resource-ref name="jdbc/mydb" binding-name="jdbc/jndi" />

jdbc/jndi: You will configure jndi in websphere admin console,
Reference name: resource-ref name should match with res-ref-name

<resource-ref>
    <res-ref-name>jdbc/mydb</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
 </resource-ref>

You should also make sure that <web-app version of web.xml file should be 2.5 or up and use schema not dtd. If you use older version of J2EE you have to use ibm-web-bnd.xmi file instead of xml.

Tuesday, 27 December 2016

Challenges with Microservices


  • Complexity has moved out of the application, but into the operations layer
  • Services may be unavailable: Much more monitoring needed.
  • Remote calls more expensive than in-process calls
  • Transactions: Must rely on eventual consistency over ACID
  • Features span multiple services
  • Change management becomes a different challenge, need to consider the interaction of services, Dependency management / versions
  • Refactoring module boundaries
Fallacies of distributed computing:
  • The network is reliable
  • Latency is zero
  • Bandwidth is infinite
  • The network is secure
  • Topology doesn't change
  • There is one administrator
  • Transport cost is zero
  • The network is homogeneous

Thursday, 22 December 2016

Configure Auto Deploy option Websphere 8 application server

- Login to websphere application server admin console, then go to the application->Global deployment settings


- Make sure to check mark the option "Monitor directory to automatically deploy application
- Give a directory path as your wish, or you may keep the default one which is reside in the Installation_root directory.
- Set the polling interval


I have set the below options


- Save and apply the settings and restart your server

make sure the directory you set is exists



Now drop EAR, WAR, JAR file to C:\RSA\monitoredDeployableApps\servers\server1, the application will be installed automatically. Monitor directory to automatically deploy applications.

To uninstall an application file that was previously installed using monitored directory

You can also install, update, or uninstall an application file by dragging or copying an application properties file to a monitored directory. The properties file must specify the deployment actions to be performed.

By default, monitored directory deployment is disabled.

Monitored directory
Specifies the directory to use for monitored directory deployment. The default monitored directory is monitoredDeployableApps. Using this setting, you can specify a different default monitored directory.

For deployment by dragging or copying an enterprise application file to a monitored directory, the directory to which you add enterprise application files depends upon the product profile:

•For base (stand-alone) application servers, the default monitored directory is the monitoredDeployableApps/servers/server_name directory of the application server profile.

•For deployment managers, the default monitored directories are the monitoredDeployableApps/servers/server_name, monitoredDeployableApps/nodes/node_name/servers/server_name, and monitoredDeployableApps/clusters/cluster_name directories of the deployment manager profile.

For deployment using properties files, the monitored directory is a subdirectory named deploymentProperties of the directory specified by this setting; for example, monitoredDeployableApps/deploymentProperties.

To change the default monitored directory, specify a different directory path for this setting. List the entire value for the directory, including the environment variable. Monitor directory to automatically deploy applications must be enabled to change this setting.

REF: http://www.webspheretools.com/sites/webspheretools.nsf/docs/WebSphere%208%20Auto%20Deploy

Wednesday, 21 December 2016

application.xml file is not created when created EAR project in RSA

This might happen when you create EAR project and don't check the option to generate application.xml file.

If the application.xml file is missing, you can try by this way

Project -> Right click -> Java EE -> Open Application Server Deployment Descriptor Or

Project -> Right click -> Java EE -> Generate Deployment Descriptor

Could not find a valid parent module to add to the server when try to run a web application in webshpere RSA

Problem: When try to run a webapplication using RSA, right click project -> Run as -> Server, then it shows an error message that Could not find a valid parent module to add to the server

Solutions: There are two possible solutions
Option - 1:
                 Create the project project from the scratch and make sure to select the option "Add project to an                  EAR" in create dynamic webproject window

Option - 2:
                Create an EAR project and then add the web application project as a web module in EAR                     project