and it's good
becauce in jsp files of lookup("java:/OracleDS") is success
<?xml version="1.0" encoding="UTF-8"?>
Are you trying to do the lookup from a separate process client (Client.java) or from within the session bean?
A lookup from a separate process client can't access the private 'java:comp/env' namespace.
this Client(.java) is a test programm.still is a stand process.
but used (jdbc/OracleDS) is error.
How to get datasource in client?
We don't export datasources to the global namespace, only under the in-VM name space (java:/something), so you can't lookup a DS from client. Instead use a stateless session, servlet or MBean as a server side component and hook your client to that.
thank you very much.
my session bean of using lookup("java:/OracleDS") is successful.