Java

Adding ant-svnlib to Net Beans

I wanted to add some additional plugins to the ant build for Netbeans to automatically do some tagging if Ivy publishes the file. Fortunately I found a related post that pushed me into the right direction.

You simply have to copy your JARs to

Themen:

Development:

Axis2 memory leak on redeploy

For quite a while I'm facing the well-known problem of memory leaks while re-deploying Axis2 Webservices on Tomcat and JBoss.

The problem is that you run out of memory, the PermGemSpace in fact, after some redeploy cycles of an Axis2 based Webservice. The only solution is to restart the server to clean up the memory. While this is not too hard on a development machine, it's more difficult on a production server. Although you most probably won't deploy on a production server too often, it's getting on my nerves.

Development:

Themen:

Internet:

Axis2 SOAP message logging

From time to time I want to read the messages that are send from Axis to the endpoint.

The solution is quite simple if you already use a logging framework for your application which you definitely should...

Set some properties in your log4j.properties file and you're done:

  1. log4j.logger.org.apache.axis2.enterprise=FATAL
  2. log4j.logger.de.hunsicker.jalopy.io=FATAL
  3. log4j.logger.httpclient.wire.header=debug
  4. log4j.logger.httpclient.wire=debug 
  5. log4j.logger.org.apache.commons.httpclient=debug

Themen:

Development:

Runtime log4j configuration using commons-logging

Since some time I run several instances of the same application on a tomcat server. This is the poor man's approach of multi-tenancy, I'd prefer to change the application to really support multiple tenants, but that'll take some time.

The main problem was that everything was logged in the same log file unless I change the log4j.properties before deploying to Tomcat. I therefore wanted to change the log file location dynamically.

The very small example below shows how to change the log file for a FileAppender while using the commons logging from Apache.

Development:

Backporting Subversion 1.6 to Debian Etch

Unfortunately I've to use a machine running Debian Etch. Yes, that's pretty old and it should definetily updated to Lenny asap, BUT I'm not the admin... *sigh*

It's getting even harder since we'd like to use Subversion 1.6 on that machine for some reason. Firstly because of the better reintegration mechanisms compared to 1.5. Therefore I'm trying to backport the current Squeeze packages to Etch.

Development:

Themen:

Linux:

Sun Java 5 on Ubuntu Karmic

Since the End of Life of Sun's Java 5 is reached and even the End of Service Life (EOSL) at 8th of October 2009 already passed the Ubuntu developers removed Sun's Java 5 from Karmic (Bug 418577).

Themen:

Development:

JEE on Ubuntu 9.04 (Jaunty) 64bit

I recently struggled with the installation of JEE on my 64bit version of Ubuntu 9.04 (Jaunty). I wanted to install the version without the JDK, but with Glassfish.

The download of java_ee_sdk-5_07-linux-nojdk.bin went as smoothly as expected, but then the trouble began...

I made the file executable with

  1. chmod 755 java_ee_sdk-5_07-linux-nojdk.bin

Themen:

Development:

Handbuch der Java-Programmierung. Studentenausgabe

Wer sich heute mit Softwareentwicklung auseinander setzt, der wird kaum an der Programmiersprache Java vorbeikommen. Gleich welche Bereiche von Software man erkundet, Java ist eine der möglichen Plattformen, mit der man ein Problem lösen kann. Von der Programmierung von Web-Applets oder Multi-Tier-Serversystemen bis hin zur Entwicklung von Applikationen für Embedded Devices reichen die Anwendungsgebiete von Java. Deshalb ist es nicht verwunderlich, dass sich viele Java-Bücher auf spezielle Themen spezialisieren.

Taxonomy upgrade extras:

Reguläre Ausdrücke

Taxonomy upgrade extras:

Subscribe to RSS - Java

Syndicate

Subscribe to Syndicate