This may be because the connection pool you have configured is using Oracle JDBC Driver's datasource implementation classname. Probably, in web-sphere there is a wrapper by default.
Can you post your jdbc-connection-pool configuration ("jdbc/login" resource points to a connection-pool) from domain.xml ?
BTW, WebSphere's APIs may not necessarily work in GlassFish.
What is the purpose of using WebSphere's API ? Can you provide specific use-cases ?
[Message sent by forum member 'jr158900']
http://forums.java.net/jive/thread.jspa?messageID=481343