Silly question but, is ant supposed to see the jndi datasource? Even if you would set the java.naming.factory.initial. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120721#4120721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120721