Java | What is the default location for maven repository and how we can modify it

| By Webner

To print maven default configurations, run following command: Command: mvn -X This will show you maven default configurations similar to following: Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-i386/jre Default locale: en_IN, platform

PHP | How to call SOAP based web services from php

| By Webner

We were working on codeigniter website project. We had wsdl web services available to access our backend functionality. We had configured a WSDL Client in our php code but it was not working. Sample Code: try { $testSoapClient = new

Mysql | Maximum execution time of 360 seconds exceeded at data import time

| By Webner

In one of the project we had to import some .csv files into Mysql database. Files were of size 80mb and more. When we tried to upload the files through phpmyadmin it was resulting in timeout error – Maximum execution

Joomla- Database Error: Unable to connect to the database

| By Webner

While working with Joomla if you get an error – “Database Error: Unable to connect to the database:Could not connect to databaseā€, check following properties in Joomla’s configuration.php file : //given values are sample data only. var $dbtype = ‘mysql’;

Hibernate | javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction

| By Webner

You may face following exception while trying to update data in a database table using hibernate: javax.persistence.OptimisticLockException : Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.abc.pkg.db.entities.customer.CustomerOfferScheduledTask#2504849] The reason is optimistic lock is applied on

Mysql | Forgot root password in Mysql

| By Webner

If you forget mysql root password these are few easy steps to regain access: 1. shell> mysqld_safe –skip-grant-tables 2.Open another terminal shell> mysql -u root -p (hit enter and use blank password) 3. mysql>UPDATE mysql.user SET Password=PASSWORD(‘NewPassword’)WHERE User=’root’; 4. mysql>FLUSH

Secure Apache Webserver

| By Webner

By default Apache web server does not come with all the securities enabled. We have to enable enhanced securities before making it live & accessible to the outside world. Remove Server Version Banner : Modify httpd.conf and add following directives