It could be a problem of the wrong user/password... presuming there is a ash1orclwlee11g machine visible from there, with a DBMS listener listening on that port...with an SID of 'test'.
Username/Password are correct there is no problem in it......"ash1orclwlee11g" its a VM name...."test" is database name..
Its in cloud environment having two Virtual Machine 's are in two different domains/Clouds......no ping or telnet will not work in this environment.
it's a driver-level issue, not a WebLogic issue. If you can get a JDBC connection from a HelloWorld-level
java program, then WebLogic will be able to also.