Hardy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 4:33 PM
Subject: Re: setup of global resources, dbcp, mail, etc.
Here's what I do:
!-- Global JNDI resources --
GlobalNamingResources
Resource name=jdbc/GlobalRealmDB
has anyone been successful setting up a global resource under Tomcat 4.1, jdk 1.4 that
is accessible to all webapps? If so, please describe how you configured tomcat.
thanks, paul lomack
The tricky bit is to remember to put a reference to the global-resource
in the contexts which want to use it:
ResourceLink name=jdbc/RealmDB
global=jdbc/GlobalRealmDB
type=javax.sql.DataSource/
Adam
On 09/15/2003 07:03 PM Paul wrote:
has anyone been successful
PROTECTED]
Sent: Monday, September 15, 2003 1:36 PM
Subject: Re: setup of global resources, dbcp, mail, etc.
The tricky bit is to remember to put a reference to the global-resource
in the contexts which want to use it:
ResourceLink name=jdbc/RealmDB
global=jdbc/GlobalRealmDB
, 2003 1:36 PM
Subject: Re: setup of global resources, dbcp, mail, etc.
The tricky bit is to remember to put a reference to the global-resource
in the contexts which want to use it:
ResourceLink name=jdbc/RealmDB
global=jdbc/GlobalRealmDB
type=javax.sql.DataSource
I can't seem to get my classes as global.
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
Well... when I do that, either two things happen: it doesn't find the classes and
nothing works, or it gives me a crazy error
You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib
-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources
I can't seem to get my classes as global.
I want
-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources
I can't seem to get my classes as global.
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME
-
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources
I can't seem to get my classes as global.
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME/classes
. Dechery [ mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources
I can't seem to get my classes as global.
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME/classes and $CATALINA_HOME/lib right
-Original Message-
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources
I can't seem to get my classes as global.
I want them to be acessed by all applications... so I placed it under
According to Tomcat's config, I should places classes and packages in /classes and
/lib, not /common/classes and /common/lib.
Altough neither is working for me... :/
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
.:| Christian J. Dechery
.:| FINEP - Depto. de
Hello Christian,
By chance, are the libraries that you put in TOMCAT_HOME/lib refer to
libraries that you put in your webapp's WEB-INF/lib? If so, this just
isn't going to work. The WEB-INF/lib libraries can see libraries in
TOMCAT_HOME/lib, but not the other way around.
For instance, the
Ha!
Looks like i had it backwards...
Thank goodness for documentation ;)
fillup
On 5/29/02 11:51 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:
According to Tomcat's config, I should places classes and packages in /classes
and /lib, not /common/classes and /common/lib.
Altough
but I just have some beans acessing a an Oracle database...
the only thing NOT working is the oracle drivers (classes12.jar, which I tried placing
both in /common/lib and /lib)... and all the other classes (now in /common/lib) are
working fine.
.:| Christian J. Dechery
.:| FINEP - Depto. de
I have a set of beans, the package names are finep and christian.
both are in $CATALINA_HOME/classes
calls to these classes occur normally... the problem is, that among these classes,
some of them makes calls to the oracle driver... the oracle drivers (classes12.jar)
are in
pay attention to the order of classloaders -- i would jar your classes and
put them with the oracle classes, to ensure they're loaded in the same
space. I have said this till I'm blue in the face, but so many problems
mysteriously go away when you use jars instead of just throwing class
files in
17 matches
Mail list logo