Posts

How to install Maven on CentOS

Image
Steps to install and configure Maven on CentOS Download the tar.gz file from Apache Maven site Untar the file at some location (Eg: /opt/maven) tar x z f <filename> Add the environment variable to ~/.bash_profile file cd $HOME vi ~/.bash_ profile Append PATH variable with maven path Add M2_HOME variable export M2_HOME Save and restart your system Verify maven installation mvn --version

How to install and configure Apache Tomcat 7 on Cent OS

Image
Here are the steps to install and configure Apache Tomcat 7 on Cent OS : Make sure you have JAVA 6 or later version installed on your machine. Java --version Download Tomcat7 Archive wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz Untar it at some location (eg: /opt/tomcat7) tar xzf apache-tomcat-7.0.64.tar.gz Start the tomcat (bydefault it will start at port 8080) sh /opt/tomcat7/bin/startup.sh Verify Apache Tomcat Server Goto your browser and check http:// localhost: 8080 or http://127.0.0.1:8080 Stop the tomcat sh /opt/tomcat7/bin/shutdown.sh [Optional] To access admin|manager pages, you need to create user accounts. Add below lines inside <tomcat-users></tomcat-users> tags in ${tomcat7}/conf/tomcat-users.xml file. <role rolename="manager-gui"/> <user username="manager...

How to install and Configure Apache Http Server on Cent OS

Image
Here are the steps to install and configure Apache WebServer on Cent OS : Install Apache HTTP Server (By default Cent OS comes with Apache) yum install httpd Set to Chkconfig to start on boot chkconfig --level 235 httpd on Uncomment below line from configuration( /etc/httpd/conf/httpd.conf ) file NameVirtualHost *:80 Restart Apache Http Server service httpd restart Verify Apache Server Goto your browser and check localhost or localhost.localdomain It will display Apache Test Page

How to install and configure MySQL on Cent OS

Here are the steps to install and configure MySQL on Cent OS : Install MySql Server yum install mysql-server mysql php-mysql Set to Chkconfig to start on boot chkconfig –level 235 mysqld on Start the MySQL service service mysqld start Set the password for all domains myql -u root SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new-password'); SET PASSWORD FOR 'root'@'localhost.localdomain' = PASSWORD('new-password'); SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('new-password'); Exit and verify the MySQL version exit mysql --version mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1

How to install GIT on CentOS

It is quite easy to install GIT using YUM command line manage utility on CENT OS 6. Install : # yum clean all # yum install git Verify Subversion  :  # git --version Thanks..!!!

How to add MySQL component in the Tivoli Directory Intregator (TDI).

To support MySQL database in the TDI, You first need to add mysql driver into the TDI Here are the steps : Download and copy mysql (mysql-connector-java-5.1.23-bin.jar ) jar to the location "${IBM}\TDI\V7.1\jars\3rdparty\others" where IBM is your installation directory Restart TDI if it's running. Click on Add component under AssemblyLines and choose JDBC connector In JDBC URL,  add “ jdbc:mysql://<IP>:<PORT>/<DATABASE_NAME> ”. in JDBC Driver, add com.mysql.jdbc.Driver Provider correct Username and Password of your database. Select table Name from select button. Click Finish to connect to the MySQL Database.

org.hibernate.HibernateException: No Session found for current thread

I am working one Spring MVC project in which I have integrated Spring with hibernate and most of the time, I use to get this error message while performing database operation .. org.hibernate.HibernateException: No Session found for current thread Reason : This is happening because I have missed declaring the transaction in my Spring Application. sessionFacory needs transaction to work. Solution : Define transaction manager in your Spring configuration file. Here is my spring-config.xml file : < bean id = "dataSource" class = "com.mchange.v2.c3p0.ComboPooledDataSource" > < property name = "driverClass" value = "${db.driverClassName}" /> < property name = "jdbcUrl" value = "jdbc:mysql://${db.host}:${db.port}/${db.name}" /> < property name = "user" value = "${db.username}" /> < property name = "password" valu...