JBPM Hibernate cache

Applies to: JBPM 3.1.2, JBoss 4.0.5-GA Everything starts with a beautiful concept but has to pass past those nasty errors. The same applies to this JBPM project, everything was nice, I have seen it running and then I was supposed to take the sources, clean, organize and enhance. Everything ok until now. The only problem is that when deploying the JBPM (sar) service there was this error: 16:09:17,402 ERROR [CommandExecutorThread] org....

<span title='2007-01-04 18:53:29 +0000 UTC'>January 4, 2007</span>&nbsp;·&nbsp;len

Ubuntu Edgy on Latitude D820

With great surprise I found out that my long awaited laptop arrived the next day after Christmas! Of course, for a few days I did not get much sleep and I played with my new toy. The alternatives It was a hard choice to find a replacement for the Inspiron 8000, which I used for 5 years with great joy. I was tempted by the new MacBook Pro, but adding the cost for 3 years of warranty, and all taxes in Romania, and Leopard needing a few more months of wait, I chose Dell Latitude D820 with an extra bonus: better screen resolution....

<span title='2006-12-31 01:04:27 +0000 UTC'>December 31, 2006</span>&nbsp;·&nbsp;len

From Gentoo to Ubuntu on a Dell I8600

## Start Taking advantage of the the holiday spirit and the free time that comes with the package I could not resist the urge to update my 3 years gentoo linux system. It seems like an invisible bad force which pushes people to update things which work good such that they don’t work at all after. So, pushed by this force started a emerge -u world which I usually do twice a year....

<span title='2006-12-30 17:14:37 +0000 UTC'>December 30, 2006</span>&nbsp;·&nbsp;len

Gentoo: upgrading to udev-103

If you are upgrading to udev-103 as I did and you have several network interfaces then you might end up with them swaped randomly upon reboot. This is what happend to me and it costed at least 30 mins to find out the solution: started with eth0 – b44, eth1 – ipw2001 tryied to upgrade to udev-103 during a regular upgrade this required to unmerge coldplug (emerge -C coldplug) everything ok, I rebooted after merging the config files at reboot received a lot of network errors as it seemed that eth0 was now the wireless card and eth1 not even activated searching google and the gentoo forums for a while did not gave me much info in the end I found out this interesting thread: http://archives....

<span title='2006-12-22 01:12:18 +0000 UTC'>December 22, 2006</span>&nbsp;·&nbsp;len

Import existing photo album as external resources

The goal After migrating my website to plone I found it difficult to also import the ~ 1G of photos organized into JAlbum photo albums. The first approach was to create a separate mapping for the photo albums using: ProxyPass /photo ! ProxyPassReverse /photo ! in the apache configuration. This approach is not ok for the following reasons: photos are not managed into the CMS thus I will have the same problems as before for adding comments and modifying albums there is a different layout for the photo and other part of the site One initial approach I thought about is to just dump all the photos in CMS but this also presents another problems:...

<span title='2006-12-08 23:21:55 +0000 UTC'>December 8, 2006</span>&nbsp;·&nbsp;len

Please wait, tapestry component

This is the description of a tapestry component which can be used to display a please wait message for pages which take some time to load. The concept is simple. You have 2 pages. The one from which you go and the one which is supposed to follow which is rather slow. The first page contains a hidden div which gets visible when the user submits the form. This div is the one which you see with the animated gif and some explanatory text....

<span title='2006-12-07 13:59:30 +0000 UTC'>December 7, 2006</span>&nbsp;·&nbsp;len

Webapp logging

Applies to: JBoss 4.0.5 GA Everything started with a web application which worked perfectly inside a Tomcat 5 container and had to be migrated to JBoss. At the first deployment got this error: 14:45:56,496 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by 14:45:56,496 ERROR [STDERR] log4j:ERROR [WebappClassLoader delegate: false repositories: /WEB-INF/classes/----------> Parent Classloader:java.net.FactoryURLClassLoader@172bab9] whereas object of type 14:45:56,497 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@19616c7].14:45:56,542 ERROR [STDERR] log4j:ERROR Could not create an Appender....

<span title='2006-12-03 16:07:23 +0000 UTC'>December 3, 2006</span>&nbsp;·&nbsp;len

CD/DVD writing

Notice If you are searching for nice looking menus and buttons, the windoze way, you will not find this here. It’s only about command line options, what the buttons and menus hide. Count your files du -ch --max-depth=1 /data/ --exclude=poze Create the .iso file Everything starts with an .iso file which represents the image of the CD/DVD to be written: mkisofs -r -l -allow-leading-dots -J -hide-rr-moved -x /data/poze -o /tmp/data.iso /data This creates a /tmp/data....

<span title='2006-12-03 13:35:08 +0000 UTC'>December 3, 2006</span>&nbsp;·&nbsp;len

Limit recent portlet entries

This is a very short modification to the portlet_recent.pt template in order to limit the number of displayed entries from 5 to 3. The original template: ...<br></br><tal:recentlist tal:define="view context/@@recent_view;<br></br> results view/results;"><br></br><dl class="portlet" id="portlet-recent"><br></br><br></br> <dt class="portletHeader"><br></br> <span class="portletTopLeft"></span><br></br> <a href="http://www.len.ro/work/cms/limit-recent-portlet-entries" <br></br> tal:attributes="href string:${portal_url}/recently_modified"<br></br> i18n:translate="box_recent_changes">Recent Changes</a><br></br> <span class="portletTopRight"></span><br></br> </dt><br></br> <tal:items tal:repeat="obj results"><br></br> <dd class="portletItem"<br></br>...<br></br> The modified template: ...<br></br><tal:recentlist tal:define="view context/@@recent_view;<br></br> results view/results;<br></br> subresults python:results[:3]"><br></br><dl class="portlet" id="portlet-recent"><br></br><br></br> <dt class="portletHeader"><br></br> <span class="portletTopLeft"></span><br></br> <a href="http://www.len.ro/work/cms/limit-recent-portlet-entries" <br></br> tal:attributes="href string:${portal_url}/recently_modified"<br></br> i18n:translate="box_recent_changes">Recent Changes</a><br></br> <span class="portletTopRight"></span><br></br> </dt><br></br> <tal:items tal:repeat="obj subresults"><br></br> <dd class="portletItem"<br></br>....

<span title='2006-12-01 17:43:49 +0000 UTC'>December 1, 2006</span>&nbsp;·&nbsp;len

JMX invocation with secured console

Applies to: JBoss 4.0.5 GA As I am working on a rather complex application with a lot of dependancy bounded MBeans I found it necessary to have a small application, in a different JVM, invoke a MBean method for administrative purposes. Even if this sounded easy at the begining it seemed that I had to face 2 problems: JBoss JMX implementation JAAS access to the secured console Since I both googled and searched JBoss forums without much help I decided, upon succeding, to write this article as it might help someone futher....

<span title='2006-12-01 12:49:39 +0000 UTC'>December 1, 2006</span>&nbsp;·&nbsp;len