piątek, 30 października 2009

tapestry5 - @SessionState - ClassCastException

I've created a simple enum and used it as a session state object but after few calls to that object tapestry was throwing me a ClassCastException, sth like:
my.project.pages.MyEnum cannot be cast to my.project.pages.MyEnum

I was trying to create POJO and put my new enum inside but it didn't help.

Finally it turns out that it was because my enum was inside pages package (http://tapestry.formos.com/nightly/tapestry5/faq/general.html#classcastexception). After moving my new enum to different package everything seemed to work correctly

poniedziałek, 27 lipca 2009

środa, 25 lutego 2009

Xenode Browser Sandbox

Idealne rozwiązanie dla każdego kto zajmuje się projektowaniem stron internetowych. Po wejściu na stronę http://www.xenocode.com/browsers/ mamy możliwość pobrania każdej z wiodących przeglądarek internetowych a następnie uruchomienia ich bezpośrednio na naszym komputerze bez potrzeby instalacji.

Xenocode WebApp technology allows Internet Explorer 8, 7, 6, Firefox, Safari, Opera, and Chrome to run simultaneously on any version of Windows, directly from the web.

sobota, 21 lutego 2009

igoogle - pajacyk

Jeżeli ktoś korzysta igoogle to polecam gadżet przpominający o kliknięciu w pajacyka znajdujący się pod tym linkiem http://www.google.com/ig/adde?moduleurl=http://adamwtw.googlepages.com/pajacyk.xml&source=imag
Miłego klikania.

wtorek, 17 lutego 2009

tapestry 5 - run-jetty-run - NoClassDefFoundError

When I tried to run tapestry 5 tutorial application under Eclipse using run-jetty-run plugin I had following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServletRequest
at runjettyrun.Bootstrap.main(Bootstrap.java:60)

This is because of the version of run-jetty-run plugin I'm using doesn't have servlet-api jar included. There is a patchto fix this issue. In my case I haven't used the patch but I've added following dependecy to pom.xml:
<dependency>
   <groupId>jetty</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5-6.0.2</version>
</dependency>

and now I works fine.

sobota, 31 stycznia 2009

Ammyy Admin

Ammyy Admin - is a complete system for remote computer access. It's reliable and accessible way of providing remote computer assistance and remote teaching for your clients, employees, friends or family from anywhere in the world. Ammyy Admin connects remote computers within some seconds and without any installation or configuration. You can view the systems of your clients, and remotely control their keyboard and mouse.

Super program jak chcemy komuś szybko pomóc w obsłudze komputera.