I have a bit different issue and quite a basic one. I want to use my deployed JCA resrouce adapter rar file in my war file. when I get the jca connection factory from jndi via @Resource using the same jar(rar) file as my WAR dependency it gives me the class cast exception. How can I use the server rar file as a dependency in my war file. I appreciate your guidance.