In the code that you posted, you never declare t2 and you're redeclaring n from a Node to a TaskNode. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021343#4021343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021343