Sunday, July 19, 2009

Maven Instrumentation for EJB project

mvn compile -Doutput.directory=target/classes cobertura:instrument install -Dwas-ejb

Wednesday, May 27, 2009

Useful mvn commands

mvn eclipse:eclipse -DdownloadSources=true

This will set up the eclipse environment and also download the source for the jar files.

mvn clean install war:inplace

This will create a open war inside the target directory. This is very useful to modify non-java resources.

mvn clean install -Dmaven.test.skip=true

This will skip the unit tests . It helps to speed up the install but it is a bad practice.

mvn clean compile install -Dwas-ejb

This will create stub and skeleton for EJB projects.

mvn clean compile install -Dwas6.wasHome="D:\My-Projects\Pack-group\runtimes\base_v61

This will help to deploy EJB projects into WAS.

Thursday, May 21, 2009

ERROR: invalid console appender config detected, console stream is looping

set JAVA_OPTS=-Dorg.jboss.logging.Log4jService.catchSystemOut=false
bin\run.bat

Or, do as
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -Dorg.jboss.logging.Log4jService.catchSystemOut=false

Tuesday, December 9, 2008

How to clear Browser caching?

response.setHeader("Cache-Control", "no-store"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0); //prevents caching at the proxy server