Thursday, October 3, 2013
java.sql.SQLException: No suitable driver found for jdbc:mysql on Hibernate
java.sql.SQLException: No suitable driver found for jdbc:mysql
To fix this issue add property
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
in hibernate.cfg.xml file...
Monday, August 12, 2013
Confluence Publisher Plugin with Jenkins
Confluence Publisher Plugin with Jenkins
1) First I installed the confluence publisher plugin in jenkins.
2) Created a account in confluence (on demand service).
3) Get the Server Base Url,
Wiki Url will be like,
4) Configure this Confluence Url in jenkins global...
Tuesday, August 6, 2013
Error extracting plugin descriptor: 'Goal: * already exists in the plugin descriptor for prefix: *
Do you face this issue ?
Error extracting plugin descriptor: 'Goal: * already exists in the plugin descriptor for prefix: *
[ERROR] Existing implementation is: *.*Mojo
[ERROR] Conflicting implementation is: *.*Mojo'
[ERROR] -> [Help 1]
Solution :
You may encounter...
Monday, June 17, 2013
Jquery combine two objects values into a single object
Jquery is having inbuilt function called extend,
which can be used to merge two objects values in a single object.
var data1 = {
duration: 100
};
var data2 = {
duration: 110
};
console.log("Before Data1 " + JSON.stringify(data1));
console.log("Before Data2...
Tuesday, May 7, 2013
W3C DOM Parser
W3C DOM Parser
We can use both jdom as well as w3c dom. In this I am going to explain about w3c dom.
Getting the document on w3c dom.
Some common function for Dom processing
We can specify the xpath value to get the specific tag/ Node.
From other resource example...
Saturday, May 4, 2013
Struts2 Application developemnt with Jquery
Struts2 Application developemnt with JqueryIt is very easy to integrate Struts2 applicaiton with Jqery. There are many existing solution that can be used to solve it. No need to start from scratch. http://struts.jgeppert.com/struts2-jquery-showcaseWhich is popular among the jquery plugin. This site is having nice tutorial.Other Sites : http://malsup.com/jquery/form/#fieldshttp://struts.jgeppert.com...
Thursday, April 18, 2013
Send JSON data to struts2
Send JSON data to struts2
I found a nice article which points out how the struts2 receives json data from UI and returns the json data as response.
The links is:
http://anton-solovyev.livejournal.com/172056.html
We need to add a dependency in pom.xml
...
Wednesday, April 17, 2013
Confluence Publisher Plugin with Jenkins

Confluence Publisher Plugin with Jenkins
I integrated confluence publisher plugin with Jenkins. Here are the steps, it may be helpful to some one.
I followed the doxumentation at
https://wiki.jenkins-ci.org/display/JENKINS/Confluence+Publisher+Plugin
1) First I installed the...
Tuesday, April 16, 2013
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure on Mysql, MAMP and MAC OS

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure on Mysql, MAMP and MAC OS
I just created the a new user in phpmyadmin with all the privileges to all the databases.
and
I used the dependency
<!-- MySQL database...
Wednesday, April 10, 2013
package javax.servlet does not exist
package javax.servlet does not exist
Add a dependency
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> ...
html5 chart library

HTML5 chart library
HTML5 and JS library rocks on graphs. Earlier it was little difficult to implement. Now it is very easy.
Highcharts
http://www.highcharts.com/demo/line-time-series/grid
Rgraph
I have used the RGraph, it is very easy to implement. Refer the doc. There...
Tuesday, April 9, 2013
JSON generator on JAVA
JSON generator on JAVA,
http://java.dzone.com/articles/java-api-json-processing-jsr
--
Thank you.
Regards,
Kaleeswaran...
Interact with Jenkins through Jenkins.jar
Interact with Jenkins through Jenkins.jar
To get the help commands from Jenkins,
java -jar /Users/users/Downloads/jenkins-cli.jar -s http://localhost:8080/jenkins/ help
Results will be like
Ref :
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI...
Monday, April 8, 2013
Online Free Jenkins
Online Free Jenkins Available @ https://grandcentral.cloudbees.com/services/plans/dev-at-cloudUse it and Enjoy. Happy coding.-- Thank you.Regards,Kaleeswaran.S ...
Wednesday, March 27, 2013
Maven Options
There are many options that can be passes as parameter to maven, those useful options are,
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
-am,--also-make ...
Jenkins Environment variables
Jenkins is having many environment variables, Each environment variable is very important one or other way. Lets see how can we use these variables efficiently in jenkins.
E.g : BUILD_NUMBER
While archiving each build on a job. We can name the build such as MyJob_1.
Goal:...
Eclipse Remote Debugging
Eclipse Remote Debugging
In earlier posts, I wrote about remote debugging with eclipse. Today i found some interesting eclipse debugging blogs, http://javarevisited.blogspot.in/2011/02/how-to-setup-remote-debugging-in.htmlhttp://javarevisited.blogspot.in/2011/07/java-debugging-tutorial-example-tips.html
...
Wednesday, March 13, 2013
Jenkins CLI commands
Jenkins CLI commands
build: Builds a job, and optionally waits until its completion.
cancel-quiet-down: Cancel the effect of the "quiet-down" command.
clear-queue: Clears the build queue
connect-node: Reconnect to a node
copy-job: Copies a job.
create-job: Creates a...
Monday, March 11, 2013
XMLPropertyListConfiguration / Plist Parser example
XMLPropertyListConfiguration / Plist Parser example
XMLPropertyListConfiguration is having a fantastic API to work with plist files. But there is no much example for this library. After some googling and library analysis, it came to know that it is very very easy to parse the files...
Wednesday, January 23, 2013
How to print base64 image in jasper report pdf ?
How to print base64 image in jasper report pdf ?1) import base64 class in jrxml file <import value="org.apache.commons.codec.binary.Base64"/> 2) Create two parameters logo and base64Img in jasper report.3) logo parameter class as String (java.lang.String) and 4) base64Img parameter class as InputStream (java.io.InputStream) and 5) base64Img parameter Default Value...
How to apply dynamic colors to jasper report ?
How to apply dynamic colors to jasper report ?After some googling, i found the way to apply colors dynamically to jasper report. My working code is,We can access all the jasper files styles and everything with the help of JasperDesign class. Just create some styles like header, body and footer and set colors for those style from java file. The code "styleList[j].setBackcolor(userBackGRDColor);"...
How to image stream to jasper report ?
How to image stream to jasper report ?It is very easy to pass image stream to jasper report pdf.Steps are, 1) Convert the image to stream and set it in parameter ("logo") 2) In jrxml file , create a parameter with parameter class as "java.io.InputStream"3) Place a image on the jrxml design, set "Image Expression" to $P{logo} and "Expression class" to java.lang.String ...
Subscribe to:
Posts (Atom)