Find the violate constraint rows in your Oracle DB.
2013-01-04 13:44
288 查看
Tomcat JNDI configuration
通常我们 web 项目都需要连DB,都会有 META-INF 下 context.xml 文件:
<?xml version='1.0' encoding='utf-8'?>
<Context crossContext="true" path="/test" docBase="test" debug="0" reloadable="false">
</Context>
另外 Catalina .base/conf 下有 server.xml 中配置 JNDI Resource:
<Resource name="jdbc/test"
auth="Container" type="javax.sql.DataSource"
username="test" password="pass"
driverClassName="com.inet.ora.OraDriver"
url="jdbc:inetora:localhost:testdb"
initialSize="10" maxActive="50" maxIdle="10" maxWait="10000"
connectionProperties="streamstolob=true"
testOnBorrow="true" timeBetweenEvictionRunsMillis="300000"
removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
validationQuery="select 1 from dual"/>
Catalina .base/conf/context.xml 中也可以添加 Resource ,以及 ResourceLink :
<Resource name="jdbc/test"
auth="Container" type="javax.sql.DataSource"
username="test" password="pass"
driverClassName="com.inet.ora.OraDriver"
url="jdbc:inetora:localhost:testdb"
initialSize="10" maxActive="50" maxIdle="10" maxWait="10000"
connectionProperties="streamstolob=true"
testOnBorrow="true" timeBetweenEvictionRunsMillis="300000"
removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
validationQuery="select 1 from dual"/>
<ResourceLink global="jdbc/test" name="jdbc/test" type="javax.sql.DataSource"/>
web application deployment on tomcat:
删除 META -INF/context.xml, 在 Catalina .base/conf/context.xml 中添加 JNDI Resource and ResourceLink ( 推荐使用 )
删除 META-INF/context.xml, 在 Catalina.base/conf/server.xml 中配置 JNDI Resource, 在 Catalina.base/conf/context.xml 中添加 ResourceLink
保留项目里 META -INF/context.xml ,在 Catalina .base/conf/ 中的 server.xml 或 context.xml 中添加 JNDI Resource.
移动 META -INF/context.xml 到 Catalina .base/conf/ Catalina / localhost 中,并改名为项目名 .xml, 如 test.xml, 在 Catalina .base/conf/server.xml or context.xml 中配置 JNDI Resource
相关文章推荐
- Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfil
- Automate the Sizing of your SGA in Oracle 10g
- How-to find the SQL that using lots of temp tablespace in Oracle
- 解决“could not find gem 'turn <>=0 ' in any of the gem sources listed in your gemfile”错误
- 184 You are in the process of creating a Virtual Private Catalog (VPC) in your Oracle Database 11g d
- Matrix and linear algebra in F#, Part IV: profile your program, find the bottleneck and speed it up: using matrix multiplication as an example[z]
- 51 You have not configured Oracle Managed Files (OMF) in your database. You do not want to scan the
- 【Winform】Find out the changed rows in DataGridView
- Tomcat上配置连接池{ connect error=Name [jdbc/OracleDB] is not bound in this Context. Unable to find [jdbc]}
- Find the Top 10 commands in your linux box!
- Find the BADI related to your transaction in minutes
- What or Why is the dual table in Oracle?
- The entitlements specified in your application’s Code Signing Entitlements file do not match those s
- (Reprint)Simulating the sequence of Oracle in Sql Server by leveraging the identity
- Use find the search an element in deque
- 【原】Cannot find entry file index.ios.js [index.android.js] in any of the roots
- the centos disc was not found in any of your drives
- 错误 "Unable to find manifest signing certificate in the certificat"
- Errors while building APK. You can find the errors in the 'Messages' view.
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version