代码链接数据库问题报错问题

为什么我的plsql sqlplus都能登录我本机数据库,代码也能连远程数据库,但是代码连不到我数据库,报错
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection))
Caused by: org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)搜了好久 都不行嘛

http://jingyan.baidu.com/article/455a9950a3aca5a167277850.html