Archive for May, 2011


Axis2M is a utility projects that simplify Axis2 web service development along with Maven. axis2M provide set of Maven artifacts and promote usage of j2ee web application project layout for axis2 development:

Axis2mhas following features.

  • quickstart archetype
    • provide easy start for Hello world axis2 web service only using few number of Maven commands . Also this genarate standred j2ee project layout for axis 2 peoject, and provide WAR pacakgeing option for both services and modules.
  • axis2m:run goal to to run Axis2 simple Http server
    • This Maven plug-in facilitates to run Axis2’s simple Http server with Maven, those who familiar with axis2 standard distribution can use same server.
  • axis2m:WSDL2Java goal to simplfy code genaration under Maven project
    • This is a customized version of Axis2 WSDL2Code maven plug-in; this will generate java codes with minimum number of configuration options and garneted code are compatible with Maven project structure.
  • Pre-configuration of axis2 ARR, MAR plug-ins for quickstart archetype.
    • Once the project is created using axis2m quickstart archetype axis2 AAR and axis2 MAR maven plug-ins are configured with project layout so that users not required configure POM file again.

This tutorial briefs the steps involved for Hello world axis2 web service only using few number of Maven command. Before running the below steps, it is assumed that maven is available on your path, if not set up maven on your environmental path.

1. Run maven archetype generate

mvn archetype:generate -DarchetypeCatalog=

2. Choose options

3. From eclipse, select IMPORT EXISTINGECTS -> MAVEN -> Exiting Maven Projects

4.Click next, select quickstart:1.0:war




thats it…it was a breeze to get started and see Axis2 in action in a short time..Run the to hit the service.

Leave a comment

Storing function name in a variable and invoke that function in javascript

Problem: How to store a function name in a javascript variable and invoke that particular function. This post can be classified as a quick tip,

as these kind of scenarios are on need basis


Inside JSP:

// Create a javascript array that holds the function names. Our goal is to to use the variables stored in the array and convert them to call a

// function same as  the name stored in the variable


var myArray = new Array(2);

myArray[0] = “onefunction”;



<body onload=”demonstrate(myArray);”

Inside Javascript (.js) file

//Declare a global variable to hold function names

var fnnames;

function demonstrate(functionnames){

var myfn= functionnames;

for(var i =0; i < myfn.length; i++){

eval(myfn[i] + “Hello”); //calling function1 with a parameter “Hello1”, Similarly Calling function2 as well



//The below functions get called

function onefunction(String param){



function anotherfunction(String param){



Leave a comment


Problem: Another issue, this time with JUnit 4 and Spring3, 
Hibernate application, where in i encountered the following  
issue that 

Solution:  Add the following dependency to the pom.xml to resolve 

 <version>3.1</version> </dependency> 

, ,

1 Comment

package org.springframework.orm.hibernate3 does not exist

Problem: Recently i am working on SpringMVC REST +Hibernate application, where in i encountered the following 
issue during the integration package org.springframework.orm.hibernate3 does  not exist 

 Solution:  Add the following dependency to the pom.xml

<version>${org.springframework.version}</version> </dependency> 

Replace the above version with the actual version or specify the version as a property in pom.xml.  
Note that, when i was working on Spring 2.5 + Hibernate, the above dependency was not needed, 
 but with Spring 3 and Hibernate, to resolve the issue that package org.springframework.orm.hibernate3
 does not exist, i added the above dependency 

, ,

Leave a comment