Total Pageviews

Friday, June 30, 2006

How to tie a Bandana

If you ever wanted to know how to tie a bandana then you have to check out this link. It's that simple.

Saturday, June 24, 2006

Garmin GPS Trainers (305 series)

The Garmin Edge 305, a GPS Trainer and cycle computer, seems to be a great choice for cyclers or triathletes. The corresponding model for runners, the Garmin Forerunner 305, can also be used for cycling.
The GPS signal is strong even under thick forests or narrow street canyons. Check out this article (sorry, only in german) to see, what the Forerunner 305 is all about.
English pages:
http://www.garmin.com/products/forerunner305/
http://www.garmin.com/products/edge305/


Thursday, June 22, 2006

Missing index.html when generating site with Maven2

For those of you who are using selected individual reports when generating the project site with Maven, there is a slight change in the behaviour of Maven since Maven Site plugin 2.0-beta-5:
You have to specify the index report if you would like to have the index.html files generated. This is necessary for those modules, who don't have a index page written in xdoc, or apt..
Make sure to update the project-info-report Plugin to version 2.0.1!
Here is a sample configuration:
 <plugin>   
 <groupId>org.apache.maven.plugins</groupId>   
 <artifactId>maven-project-info-reports-plugin</artifactId>   
  <reportSets>     
  <reportSet>      
  <reports>       
  <report>dependencies</report>       
  <report>project-team</report>        
  <report>mailing-list</report>        
  <report>cim</report>        
  <report>issue-tracking</report>        
  <report>license</report>        
  <report>scm</report>  
  <report>index</report>  
  </reports>     
  </reportSet>   
  </reportSets>  
  </plugin>  

Wednesday, June 21, 2006

Introducing groups in Maven2 Idea Plugin

I think there is a need that the Maven 2 Idea plugin supports groups of modules. A friend of mine patched the following two files of the maven-idea-plugin:
  1. IdeaMojo.java
  2. IdeaProjectMojo.java
I will try to convince him filing this issue into the Maven Jira system, so everybody can benefit from this great patch. Maybe some day this patch will be included into the next Idea plugin version.

Saturday, June 17, 2006

Maven2 and surefire plugin issues with TestNG test cases

I was facing problems executing my TestNG unit tests under Maven 2.0.4 with the maven-surefire-plugin 2.2. The tests were not started and I got the following result from the plugin:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running de.rquebbemann.jgig.util.SqlUtilsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running de.rquebbemann.jgig.entity.impl.EntityBaseImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running de.rquebbemann.jgig.entity.music.impl.PerformanceImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running de.rquebbemann.jgig.entity.person.artist.impl.MemberImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.music.impl.GigImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running de.rquebbemann.jgig.entity.music.impl.SongImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.common.sql.DefaultSqlFormatterTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running de.rquebbemann.jgig.util.ExceptionUtilsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.music.impl.TrackImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running de.rquebbemann.jgig.common.sql.StatementFactoryTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running de.rquebbemann.jgig.util.DateUtilsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.person.impl.PersonImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.impl.ModifiableEntityImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.person.impl.UserImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running de.rquebbemann.jgig.dao.customizing.HibernateCustomizingDaoTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.test.TestUtils
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.util.StringUtilsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.customizing.impl.CustomizingImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.entity.music.impl.RecordingImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running de.rquebbemann.jgig.entity.person.artist.impl.ArtistImplTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running de.rquebbemann.jgig.common.sql.DebuggableStatementTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec

Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

I did not specify a testng.xml file because the surefire plugin docs say it is not necessary. And exactly that is the problem! If I provide a testng.xml file my unit tests are executed! Hm, so I digged a little bit further and found
the Issue http://jira.codehaus.org/browse/MSUREFIRE-117 in Jira.



I tried the fix and it solves the problem. Now my TestNG unit tests are executed even if I do not specify a testng.xml file.
Maybe this will help others. I hope the bug will be fixed very soon (I voted for it).

Thursday, June 15, 2006

Moving towards JBoss 4.0.4.GA

I decided to upgrade my JBoss 4.0.3.SP1 to the newest version 4.0.4.GA. I am only interested in the EJB3 container so I have chosen to use the installer package to download.
The installation is quiet easy using the installer. Just simply choose the EJB3 container and everything gets installed. But the hardest part is still in front of us.
My client application fails with different exceptions communicating with the server. Argh!! Yes of course, I had to update my jboss client libraries. So here is the list of necessary libraries to update:
  • jboss-j2ee
  • jboss-ejb3x
  • jboss-ejb3
  • jboss-annotations-ejb3
  • jboss-aspect-library-jdk50
  • jbossall-client
  • jboss-aop-jdk50-client
After this I tried to deploy my application to the server, but it failed because of a missing class. I don't have the stacktrace anymore, sorry. But it stated something about a missing class with a package name like org.apache.commons.discovery, so I decided to put the commons-discovery in version 0.2 - which I had from my previous JBoss installation - and put it into the directory $jboss_home\server\default\deploy\ejb3.deployer. That was the trick. Now it's working!

Tuesday, June 13, 2006

Updating to Hibernate Core 3.2.0.cr2

After updating from Hibernate Core 3.1.2 and Hibernate Annotation 3.1beta8 to Hibernate Core 3.2.0.cr2 and Hibernate Annotations 3.2.0.cr1 I was facing two problems:
  1. Caused by: javax.persistence.PersistenceException:
    org.hibernate.cache.CacheException:
    Attempt to restart an already started EhCacheProvider.
    Use sessionFactory.close() between repeated calls to
    buildSessionFactory.
    Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider.
    Error from ehcache was: Cannot parseConfiguration
    CacheManager. Attempt to create a new instance of
    CacheManager using the diskStorePath "/tmp" which
    is already used by an existing CacheManager.

    Solution:

    Setting the hibernate property:

    hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider


    Setting the property to net.sf.ehcache.hibernate.SingletonEhCacheProvider may work as well,
    but I haven't test yet.
  2. org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class:...

    I had a property annotated with @OneToMany targeting an @Embedabble @MappedSuperclass.

    I found the solution in the Hibernate Forum:

    http://forum.hibernate.org/viewtopic.php?t=959542&highlight=onetomany+
    manytomany+targeting+unmapped+class

    To summarize:

    You should use @CollectionOfElements instead of @*ToMany, if your association is not pointing to an entity.

Wednesday, June 07, 2006

Problem with USB WLAN Adapter Netgear WG111t solved

This USB adapter was causing problems on my nearly fresh installed Windows XP SP2 Professional system. I am using the "Fritz Box WLAN7050" as Access Point.
After I had installed the latest drivers (Version 5.0.2102) the adapter disconnects itself after a short time (5-25 minutes). I was using the Netgear configuration utility to setup my WLAN connection.
After digging the internet for similar problems (I found a few hits) I decided to go back to my previous driver (originally supplied with the adapter) and deactivated the netgear WLAN configuration utility. I now use the Windows WLAN network configuration and it works perfectly.

Monday, June 05, 2006

Serendipity Installation Problem solved (MySQL Database Setup)

I was trying to install Serendipity 1.0-beta3 and was facing problems with my MySQL database setup. The installer complained about a missing database module.
On my Debian system the debian package of the PHP Mysql module "php4-mysql" was installed into the directory
/usr/lib/php4/20050606
My "php.ini" file had the "extension_dir" set to "./"
So the Mysql module could not be found.
Solution:
  1. I created a new directory /usr/local/share/php/extensions and switched into it.
  2. I linked the mysql.so to the original location using the command:
    1. ln -s /usr/lib/php4/20050606/mysql.so mysql.so
  3. I set the "extension_dir" variable in the file "php.ini" to "/usr/local/share/php/extensions"
  4. Restart of my Apache2 webserver.
Yep, it's working now

Yipeee, I started my Blog

Today, June 5th 2006
I started my blog hosted on my server located in my rooms
I had a few difficulties setting up Serendipity as described in another blog entry.