Posts

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.

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

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

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


<p>
<cruisecontrol:artifactsLink>
<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>
</cruisecontrol:artifactsLink>


</p>


Step-3
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.

STEP-1
Add the below plugin configuration in ur pom.xml
<build>
<plugins>
 <plugin>
       <groupId>org.codehaus.mojo</groupId>
         <artifactId>cobertura-maven-plugin</artifactId>
         <version>2.5.1</version>
         <configuration>
           <formats>
             <format>xml</format>
             <format>html</format>
           </formats>
         </configuration>
         <executions>
           <execution>
             <id>cobertura-check</id>
             <phase>verify</phase>
             <goals>
               <goal>cobertura…

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/${project.name}/status.txt"/> </listeners> <bootstrappers> <!-- <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="clean" />--> </bootstrappers> <modificationset quietperiod="30"> <!-- touch any file in connectfour project to trigger a build --> <filesystem folder="projects/${project.name}"/> </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 http://justcompiled.blogspot.in/2010/09/building-web-service-with-spring-ws.html.
  on jboss5.1ga,my jdk  1.6.
The client--- http://justcompiled.blogspot.in/2010/11/web-service-client-with-spring-ws.html
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-http://download.java.net/maven/1/com.sun.xml.messaging.saaj/jars/ 
Download the  saaj-iml-1.3.jar and add to your lib folder.
edit your  spring-ws-servlet.xml file and edit
<bean class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" 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
•jbossws-native-saaj.jar

•jbossws-native-jaxrpc.jar
•jbossws-native-jaxws.jar
•jbossws-native-jaxws-ext.jar

to lib/endorsed folder