OK, I have found a workaround from this post:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=9102&watch=topic&start=0 When I added the line | Thread.currentThread().setContextClassLoader(FooHome.class.getClassLoader()); | before my lookup, the code started working. Is this a bug with JBoss? It seems like an excessive hack to have to put a line like this before every JNDI lookup. Does anyone know a better solution for this problem? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822570#3822570 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822570 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user