hi guys. Thank you so much for replying. I think I am kind of close but I was trying to do this without starting the server. I think they have all three Tomcat Instances as a Windows Service, and that's how they start up. I don't know much about that, so I suspect that JAVA_HOME and CATALINA_HOME are not listed as environment or system variables.
This is Tomcat 5 (I want to upgrade this and the jre (1.4) but hopefully be able to just get this going first).
What I am trying to do is run a parallel web app (app_or.war) which uses
jdbc to integrate with Oracle. there is one in place (app_ms.war) which is integrating with SQL Server and has been running for years
1. I copied app_or.war to webapps and it seems to deploy the web app, creates the directories, etc.
2. I copied app_or.xml to conf/Catalina/localhost. The contents of app_or.xml includes the Oracle resource, including this under ResourceParams...
<parameter>
<name>driverClassName<.name>
<value>oracle.jdbc.OracleDriver</value>
</parameter>
However, I am getting SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
....full stack trace in log is cause: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
I have tried all alternatives since I read that storing jars in your web app and Tomcat's lib could be an issue. I'v received the same error deploying in these ways...
1. ojdbc14.jar located in %TOMCAT_INSTANCE%/common/lib ~AND~ deployed in the web app (WEB-INF/lib)
2. ojdbc14.jar located in %TOMCAT_INSTANCE%/common/lib BUT NOT deployed with the web app
3. ojdbc14.jar NOT in %TOMCAT_INSTANCE%/common/lib ANd DEPLOYED ONLY with the web app (WEB-INF/lib)
I'm getting the same ClassnotFoundException deploying all three ways. Would you guys know what I'm missing. I would think deploying ojdbc14.jar with the web app would preclude the need to restart Tomcat.
I configured Tomcat 6 (slight differences in the context fle format) on my local and was able to run the
servlet, but I had the ability to shutdown, restart, etc. and I had ojdbc14.jar stored in both places (in Tomcat and the web app...as it was in attempt 1 above).
I was also deploying through Tomcat Application Manager thinking there might be a difference doing it that way but it doesn't appear so. Thank you so much again.