Hi AN

We use Oracle 11g with Jetspeed portal on Tomcat.

1. The resource definition goes in conf/context.xml just like for any web application. The portal does not change this. 2. You need to put Oracle's ojdbc6.jar into the /lib directory of Tomcat so that the driver class can be loaded by Tomcat 3. If you are using XMLType fields in your database, add Oracle's xdb.jar and xmlparserv2.jar to the same directory 4. Make sure that the web application does NOT include any of these Oracle jars in the .war file.

The Oracle jars are included in the Oracle client pack that you probably have, or can download from oracle.com. Make sure you use all three from the same release.

If there is a problem, the logs should contain enough info to sort it out. I don't have a copy of our resorce definition at home, but if you are still having problems reply to this and I will send a copy.

Regards

Ron


----- Original Message ----- From: "AN" <daraii.t...@gmail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Sunday, July 31, 2011 8:34 AM
Subject: Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?


That was only a typo. The thing is that if I remove it from any of the two
places it doesn't work. I don't see anything in
$CATALINA_BASE/conf/[enginename]/[hostname]/ besides the ROOT.xml but I'm
using Liferay (the application is a portlet).

On Mon, Jul 25, 2011 at 11:18 AM, Ognjen Blagojevic <
ognjen.d.blagoje...@gmail.com> wrote:

On 25.7.2011 16:57, AN wrote:

I don't understand why do I have to place the Resource element in both
files.


You don't. It seems that you misconfigured something.



     <<Resource auth="Container" driverClassName="oracle.jdbc.**
OracleDriver"


Could "<<" be the source of the problem?

If you deploy as WAR file, check if context.xml is indeed copied to
$CATALINA_BASE/conf/[**enginename]/[hostname]/[**appname].xml, and that it
contains correct resource definition.

Also, check for errors in log files and console.

-Ognjen

------------------------------**------------------------------**---------
To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org>
For additional commands, e-mail: users-h...@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to