Showing posts from April, 2012

Integrating cobertura maven with Cruise control.

Integrating cobertura maven with Cruise control.
After integrating cobertura with maven.I started integrating it with cruise control for a reason that the user should be able to see the
cobertura report on a dashboard.

We need to tell the cruise control to locate the reports.

Create a jsp file and name it as "cobertura-coverage.jsp"  in-cruisecontrol-bin-2.8.4\webapps\cruisecontrol

Add the below content to ur "cobertura-coverage.jsp"

<%@ taglib uri="/WEB-INF/cruisecontrol-jsp11.tld" prefix="cruisecontrol"%>

<iframe name="CoberturaFrame" id="cloverFrame" style="width:95%; height:700;"
marginheight="10" frameborder="0" marginwidth="10"
src="<%= artifacts_url %>/cobertura/index.html" width="600"></iframe>


open main.jsp file.It is present in cr…

Integrating cobertura with Maven 3.0.3

Integrating cobertura with  Maven 3.0.3
Cobertura is a Java code coverage analysis tool. You can use it to determine what percentage of your source code is exercised by your unit tests.

Good tool to  evaluate   any outsourced projects,also for clients to ask for code coverage tool report before the project closure.

Add the below plugin configuration in ur pom.xml

Best Links to Learn JAAS

Integarting Maven with Cruise control

Cruise control can be integrated with Maven . Download cruise control move your maven project to projects folderset maven home and java homeupdate the config.xml filerun the cruise control.bat fileconfig.xml is shown below: <cruisecontrol> <project name="sample-spring-ws"> <listeners> <currentbuildstatuslistener file="logs/${}/status.txt"/> </listeners> <bootstrappers> <!-- <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${}/build.xml" target="clean" />--> </bootstrappers> <modificationset quietperiod="30"> <!-- touch any file in connectfour project to trigger a build --> <filesystem folder="projects/${}"/> </modificationset> <schedule interval="300"> <!--<ant anthome="apache-ant-1.…

how to make spring-ws service running on jboss5.1 to send response to client

I was  running the application given on
  on jboss5.1ga,my jdk  1.6.
The client---
application was not getting the response.
The response was null.After doing some work around found the solution.
We need to add a messageFactory bean to the spring-ws-servlet.xml file.
This should point to a class-com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
It can be downloaded from- 
Download the  saaj-iml-1.3.jar and add to your lib folder.
edit your  spring-ws-servlet.xml file and edit
<bean class="" id="messageFactory"> <property name="messageFactory"> < bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"> </bean…

JBOSS5.1 -setProperty must be overridden by all subclasses of SOAPMessage

If you are getting the above error while accessing the wsdl that is running on JBOSS5.1
do the following:
go jboss installation dir
click on client folder

copy the following jars


to lib/endorsed folder