Programmable Christmas wishes and carol, how cool is this?

Christmas is a special time for everyone: for regular people but even for us, nerds and geeks that feel really strange sitting at the table far away from our computers, our natural environment.

And in this special time I have a special message for you, my Dear Readers:

Fully digitalized, computer-generated Christmas wishes and “Silent Night” carol written completely in Java

Let this Christmas be a really special time for You
Spent with your families and friends
With computer and phones turned off.
Merry Christmas and all the best in 2015!

For those interested, source code is available on Github.

  • Philipp Oppermann

    I get an error when I try to view the LocationsPage… I get an Unexpected Runtime Exception with message:


    WicketMessage: Can’t instantiate page using constructor public pl.tomaszdziurko.itemdirectory.web.view.locations.LocationsPage()
    Root cause:java.lang.ClassNotFoundException: pl.tomaszdziurko.itemdirectory.service.items.LocationService
    […]
    “I’ve done all exactly like you in this changeset (https://bitbucket.org/tdziurko/item-directory/changeset/cfca7dbd3ad2). Do you have any idea?

    • Philipp Oppermann

      ok now everything works fine… but I don’t understand why 😉

      • Tomasz Dziurko

        Hmm, so what was wrong and what did you fix to make it work? 🙂 Maybe I will be able to explain it a little bit.

        • Philipp Oppermann

          Maybe something was wrong with eclipse… I just downloaded the final Version and replaced the Service and the serviceImpl and then it worked. But after replacing it again with the old ones it still worked … Maybe I didn’t noticed something … it’s not logical. But now it works and I’m happy 😉 thank you for your great tutorial!
          Am 31.03.2012 20:56 schrieb “Disqus” :

          • Tomasz Dziurko

            I am glad you like it. Maybe I will be more motivated to write some new episodes 🙂 
            With regard to your problem: That as well might be my mistake and a commit that is not working but was fixed in some later commits 🙂 Anyways, it’s working so no need worry too much, we have a weekend now 🙂 Grab a beer and relax.

      • Alex

        Hi Philipp,

        I’m following this tutorial and I’m facing the same problem,  WicketMessage: Can’t instantiate page using constructor public pl.tomaszdziurko.itemdirectory.web.view.LocationsPage()

        Root cause:

        java.lang.ClassNotFoundException: pl.tomaszdziurko.itemdirectory.service.locations.LocationService
             at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
             at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
             at java.security.AccessController.doPrivileged(Native Method)

        But the Class LocationService is there.. any idea?
        Thanks in advance!

      • moxim

        I would guess that you did not install the domain / service jar, but simply tried mvn jetty:run in the web directory. Having simply added a class does not make it automatically visible to maven peer projects (like the webapplication one), you need to “export” it.