${renderedContent}
Quick Links to:
Converting an OC4J appilication to a Tomcat 7 application
- decorators.xml
- applicationContext-config.xml - id="mitsisDataSource"
- web.xml - add
<resource-ref> <description>Oracle Datasource</description> <res-ref-name>jdbc/ssb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
- pom.xml - replace
with
<dependency> <groupId>oracle</groupId> <artifactId>ojdbc</artifactId> <version>1.4</version> <scope>test</scope> </dependency>
<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.5</version> <scope>test</scope> </dependency>
- search both Project Jar Dependencies and Project Test Jar Dependencies on ojdbc-1.4.jar and exclude the dependency
- CATALINA_HOME - Add resource definition
<Resource name="jdbc/MitsisDs" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@//earth-vault-2.mit.edu:1523/sundev2" username="XXXXXXXX" password="YYYYYYYY" maxActive="20" maxIdle="10" maxWait="-1" removeAbandoned="true" removeAbandonedTimeout="30" logAbandoned="true" /> <ResourceLink global="jdbc/MitsisDS" name="jdbc/MitsisDS" type="javax.sql.DataSource"/>