jboss 3.2.3為何取不到資料來源?
deploy中已部署了oracle的資料來源.(oracle-ds.xml)
<datasources>
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection-url>jdbc:oracle:thin:@<host>:1521:<sid></connection-url>
<!--
Here are a couple of the possible OCI configurations.
For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm
<connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
or
<connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>
Clearly, its better to have TNS set up properly.
-->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>jboss</user-name>
<password>password</password>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>select sysdate from dual</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>select sysdate from dual</check-valid-connection-sql>
-->
<check-valid-connection-sql>select sysdate from dual</check-valid-connection-sql>
</local-tx-datasource>
</datasources>
在客戶端lookup資料來源的時候出現錯誤:
javax.naming.NameNotFoundException: No object bound for java:/DefaultDS
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
除了在deploy下配置oracle-ds.xml外還需要其他的設定的嗎?
<datasources>
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection-url>jdbc:oracle:thin:@<host>:1521:<sid></connection-url>
<!--
Here are a couple of the possible OCI configurations.
For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm
<connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
or
<connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>
Clearly, its better to have TNS set up properly.
-->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>jboss</user-name>
<password>password</password>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>select sysdate from dual</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>select sysdate from dual</check-valid-connection-sql>
-->
<check-valid-connection-sql>select sysdate from dual</check-valid-connection-sql>
</local-tx-datasource>
</datasources>
在客戶端lookup資料來源的時候出現錯誤:
javax.naming.NameNotFoundException: No object bound for java:/DefaultDS
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
除了在deploy下配置oracle-ds.xml外還需要其他的設定的嗎?
相關文章
- 在jboss中為何SessionBean不能獲得資料來源?SessionBean
- JBoss下配置資料來源問題
- 為何我用spring mvc獲取不到表單提交資料?SpringMVC
- 使用Maven配置JBoss、Wildfly資料來源Maven
- 看看我的jboss查詢資料來源的問題
- 各位大哥,jboss配置資料來源的問題,幫幫忙!
- Spring多資料來源獲取Spring
- 近期由於JBoss網站慢,本站提供JBoss .3.2.3下載網站
- 使用RxJava從多個資料來源獲取資料RxJava
- 獲取v$latch資料來源實驗
- 解密JBoss和Weblogic資料來源連線字串和控制檯密碼解密Web字串密碼
- 請問:jboss怎樣配置在bmp和web中使用的資料來源Web
- nginx代理出現靜態資源讀取不到Nginx
- GridView用資料來源控制元件和用DataTable作為資料來源的不同View控制元件
- jboss環境安裝jivejdon的時候,怎麼樣設定資料來源?
- BIRT 怎麼呼叫 Webservice 作為資料來源Web
- 潤乾填報時資料來源為nullNull
- 怎麼能接聽來電?獲取不到不到元素
- jndi資料來源
- AngularJS中獲取資料來源的幾種方式AngularJS
- jboss不支援client利用資料來源取得資料庫連線?有沒有好的解決辦法?client資料庫
- 多資料來源與動態資料來源的權衡
- 為何打通業務資料,實現資料流通?
- Xamarin.Forms中為WebView指定資料來源SourceORMWebView
- 利用聚寬(Joinquant)資料來源為vnpy新增期貨行情資料
- CDGA|資料監管越來越嚴,資料治理髮展何去何從?
- tp3.2.3開發網站導航案例+非同步獲取資料網站非同步
- 自己找不到資源?不妨來試試這4個資源網站,各種資源一鍵到手!網站
- 資料來源連線資料庫資料庫
- SparkSQL外部資料來源SparkSQL
- TongWeb資料來源原理Web
- jndi配置資料來源
- 多資料來源配置
- 為什麼要建資料倉儲,而不是直連資料來源?
- 為什麼要透過API介面來獲取資料API
- 為VNPY 2版本加入聚寬資料來源
- Spring Boot 動態資料來源(Spring 註解資料來源)Spring Boot
- thinkphp.3.2.3開源部落格PHP