Configuring log4j for development and production

For a while now I have used Log4j as the primary logging implementation. There was always a battle of what to do when a application moves from development into the various other environments. Should the ops guys manualy have to edit the log4j.properties files to turn the logging level from DEBUG to INFO for every […]

Read More »

Code coverage results reporting 100%

I turned off the debug option on the ant task javac and my code coverage went upto 100%. This is because the debug option is to do with the javac –g option which compiles the code with debugging information such as line numbers etc. My code coverage couldn’t identify any debug information in my class […]

Read More »

javac target option and runtime exceptions

When compiling code to another version other than the used javac sdk, you need to also set the -bootclasspath, otherwise you will still end up binging your .class files to the sdk version API classes of your javac. You wont get any issues at compile time, but you could at runtime. To set this up […]

Read More »

Self signed certificate not working

Because self signed certificates are not signed by what is known as a Trusted Certificate Authority like Verisign, Java will reject any connection to it .The Java SE comes with a set of Trusted Certificate Authorities which is in $JAVA_HOMEjrelibsecuritycacerts file and you have to add yourself to this if you want it to work […]

Read More »

Cannot set header. Response already committed

I found this to be happening in alot of the log files. Further investigation I found out that it happens because, part of the response is already sent to the client, including the header information, and then we were trying to manipulate that header information in some some jsp include files. Basically you cannot set/change […]

Read More »