You haven't posted your code, but i guess you are trying to cast the object return from a datasource.getConnection() method to something specific to oracle. Instead do this http://www.jboss.org/index.html?module=bb&op=viewtopic&t=132443#4139037
P.S: Please do not copy paste the question from some other place. If you are running into issues please form your own question with the details while posting. Also while posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.